|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.util.ProxyManagerImpl
public class ProxyManagerImpl
Default implementation of the ProxyManager interface.
| Field Summary | |
|---|---|
protected OpenJPAConfiguration |
conf
|
| Constructor Summary | |
|---|---|
ProxyManagerImpl()
|
|
| Method Summary | |
|---|---|
Object |
copyArray(Object orig)
Return a new array of the same component type as the given array and containing the same elements. |
Calendar |
copyCalendar(Calendar orig)
Return a copy of the given Calendar with the same information. |
Collection |
copyCollection(Collection orig)
Return a new collection of the same type as the given one with a copy of all contained elements. |
Object |
copyCustom(Object orig)
Return a copy of the given object with the same information. |
Date |
copyDate(Date orig)
Return a copy of the given date with the same information. |
Map |
copyMap(Map orig)
Return a new map of the same type as the given one with a copy of all contained key/value pairs. |
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
boolean |
getAssertAllowedType()
Whether to perform runtime checks to ensure that all elements added to collection and map proxies are the proper element/key/value type as defined by the metadata. |
boolean |
getTrackChanges()
Whether proxies produced by this factory will use ChangeTrackers
to try to cut down on data store operations at the cost of some extra
bookkeeping overhead. |
Proxy |
newCalendarProxy(Class type,
TimeZone timeZone)
Return a new calendar proxy. |
Proxy |
newCollectionProxy(Class type,
Class elementType,
Comparator compare)
Return a proxy for the given collection type. |
Proxy |
newCustomProxy(Object obj)
Return a proxy for the given object, or null if this manager cannot proxy the object. |
Proxy |
newDateProxy(Class type)
Return a new date proxy. |
Proxy |
newMapProxy(Class type,
Class keyType,
Class valueType,
Comparator compare)
Return a proxy for the given map type. |
void |
setAssertAllowedType(boolean assertType)
Whether to perform runtime checks to ensure that all elements added to collection and map proxies are the proper element/key/value type as defined by the metadata. |
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties. |
protected void |
setProxyTemplate(Class collType,
ProxyCollection proxy)
Add a supported proxy collection type. |
protected void |
setProxyTemplate(Class mapType,
ProxyMap proxy)
Add a supported proxy map type. |
void |
setTrackChanges(boolean track)
Whether proxies produced by this factory will use ChangeTrackers
to try to cut down on data store operations at the cost of some extra
bookkeeping overhead. |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OpenJPAConfiguration conf
| Constructor Detail |
|---|
public ProxyManagerImpl()
| Method Detail |
|---|
public boolean getTrackChanges()
ChangeTrackers
to try to cut down on data store operations at the cost of some extra
bookkeeping overhead. Defaults to true.
public void setTrackChanges(boolean track)
ChangeTrackers
to try to cut down on data store operations at the cost of some extra
bookkeeping overhead. Defaults to true.
public boolean getAssertAllowedType()
public void setAssertAllowedType(boolean assertType)
public Date copyDate(Date orig)
ProxyManager
copyDate in interface ProxyManagerpublic Calendar copyCalendar(Calendar orig)
ProxyManager
copyCalendar in interface ProxyManagerpublic Collection copyCollection(Collection orig)
ProxyManager
copyCollection in interface ProxyManagerpublic Map copyMap(Map orig)
ProxyManager
copyMap in interface ProxyManagerpublic Object copyArray(Object orig)
ProxyManager
copyArray in interface ProxyManagerpublic Object copyCustom(Object orig)
ProxyManager
copyCustom in interface ProxyManagerpublic Proxy newDateProxy(Class type)
ProxyManager
newDateProxy in interface ProxyManager
public Proxy newCalendarProxy(Class type,
TimeZone timeZone)
ProxyManager
newCalendarProxy in interface ProxyManager
public Proxy newCollectionProxy(Class type,
Class elementType,
Comparator compare)
ProxyManager
newCollectionProxy in interface ProxyManager
public Proxy newMapProxy(Class type,
Class keyType,
Class valueType,
Comparator compare)
ProxyManager
newMapProxy in interface ProxyManagerpublic Proxy newCustomProxy(Object obj)
ProxyManager
newCustomProxy in interface ProxyManager
protected void setProxyTemplate(Class collType,
ProxyCollection proxy)
protected void setProxyTemplate(Class mapType,
ProxyMap proxy)
public void setConfiguration(Configuration conf)
Configurable
setConfiguration in interface Configurablepublic void startConfiguration()
Configurable
startConfiguration in interface Configurablepublic void endConfiguration()
Configurable
endConfiguration in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||