|
||||||||||
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 | |
---|---|
java.lang.Object |
copyArray(java.lang.Object orig)
Return a new array of the same component type as the given array and containing the same elements. |
java.util.Calendar |
copyCalendar(java.util.Calendar orig)
Return a copy of the given Calendar with the same information. |
java.util.Collection |
copyCollection(java.util.Collection orig)
Return a new collection of the same type as the given one with a copy of all contained elements. |
java.lang.Object |
copyCustom(java.lang.Object orig)
Return a copy of the given object with the same information. |
java.util.Date |
copyDate(java.util.Date orig)
Return a copy of the given date with the same information. |
java.util.Map |
copyMap(java.util.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()
|
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 ChangeTracker s
to try to cut down on data store operations at the cost of some extra
bookkeeping overhead. |
Proxy |
newCalendarProxy(java.lang.Class type,
java.util.TimeZone timeZone)
Return a new calendar proxy. |
Proxy |
newCollectionProxy(java.lang.Class type,
java.lang.Class elementType,
java.util.Comparator compare)
Return a proxy for the given collection type. |
Proxy |
newCustomProxy(java.lang.Object obj)
Return a proxy for the given object, or null if this manager cannot proxy the object. |
Proxy |
newDateProxy(java.lang.Class type)
Return a new date proxy. |
Proxy |
newMapProxy(java.lang.Class type,
java.lang.Class keyType,
java.lang.Class valueType,
java.util.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(org.apache.openjpa.lib.conf.Configuration conf)
|
protected void |
setProxyTemplate(java.lang.Class collType,
ProxyCollection proxy)
Add a supported proxy collection type. |
protected void |
setProxyTemplate(java.lang.Class mapType,
ProxyMap proxy)
Add a supported proxy map type. |
void |
setTrackChanges(boolean track)
Whether proxies produced by this factory will use ChangeTracker s
to try to cut down on data store operations at the cost of some extra
bookkeeping overhead. |
void |
startConfiguration()
|
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()
ChangeTracker
s
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)
ChangeTracker
s
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 java.util.Date copyDate(java.util.Date orig)
ProxyManager
copyDate
in interface ProxyManager
public java.util.Calendar copyCalendar(java.util.Calendar orig)
ProxyManager
copyCalendar
in interface ProxyManager
public java.util.Collection copyCollection(java.util.Collection orig)
ProxyManager
copyCollection
in interface ProxyManager
public java.util.Map copyMap(java.util.Map orig)
ProxyManager
copyMap
in interface ProxyManager
public java.lang.Object copyArray(java.lang.Object orig)
ProxyManager
copyArray
in interface ProxyManager
public java.lang.Object copyCustom(java.lang.Object orig)
ProxyManager
copyCustom
in interface ProxyManager
public Proxy newDateProxy(java.lang.Class type)
ProxyManager
newDateProxy
in interface ProxyManager
public Proxy newCalendarProxy(java.lang.Class type, java.util.TimeZone timeZone)
ProxyManager
newCalendarProxy
in interface ProxyManager
public Proxy newCollectionProxy(java.lang.Class type, java.lang.Class elementType, java.util.Comparator compare)
ProxyManager
newCollectionProxy
in interface ProxyManager
public Proxy newMapProxy(java.lang.Class type, java.lang.Class keyType, java.lang.Class valueType, java.util.Comparator compare)
ProxyManager
newMapProxy
in interface ProxyManager
public Proxy newCustomProxy(java.lang.Object obj)
ProxyManager
newCustomProxy
in interface ProxyManager
protected void setProxyTemplate(java.lang.Class collType, ProxyCollection proxy)
protected void setProxyTemplate(java.lang.Class mapType, ProxyMap proxy)
public void setConfiguration(org.apache.openjpa.lib.conf.Configuration conf)
setConfiguration
in interface org.apache.openjpa.lib.conf.Configurable
public void startConfiguration()
startConfiguration
in interface org.apache.openjpa.lib.conf.Configurable
public void endConfiguration()
endConfiguration
in interface org.apache.openjpa.lib.conf.Configurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |