Create a Collection Proxy for a given query.
Parameters: brokerKey - The key of the persistence broker Parameters: query - The query Parameters: collectionClass - The class to build the proxy for The collection proxy
Returns the invocation handler object of the given proxy object.
Parameters: obj - The object The invocation handler if the object is an OJB proxy, or nullotherwise
Returns the set proxy class.
The class used for set proxies
isCollectionProxy
public boolean isCollectionProxy(Object item)(Code)
Reports if item is a CollectionProxy.
TODO: Provide handling for pluggable collection proxy implementations
isMaterialized
public boolean isMaterialized(Object object)(Code)
Determines whether the object is a materialized object, i.e. no proxy or a
proxy that has already been loaded from the database.
Parameters: object - The object to test true if the object is materialized
isNormalOjbProxy
public boolean isNormalOjbProxy(Object proxyOrObject)(Code)
Determines whether the given object is an OJB proxy.
true if the object is an OJB proxy
isProxy
public boolean isProxy(Object proxyOrObject)(Code)
public boolean isVirtualOjbProxy(Object proxyOrObject)(Code)
Determines whether the given object is an OJB virtual proxy.
true if the object is an OJB virtual proxy
setCollectionProxyClass
public void setCollectionProxyClass(Class collectionProxyClass)(Code)
Dets the proxy class to use for generic collection classes implementing the
java.util.Collection interface.
Parameters: collectionProxyClass - The proxy class
setIndirectionHandlerClass
public void setIndirectionHandlerClass(Class indirectionHandlerClass)(Code)
Sets the indirection handler class.
Parameters: indirectionHandlerClass - The class for indirection handlers
setListProxyClass
public void setListProxyClass(Class listProxyClass)(Code)
Materialization-safe version of toString. If the object is a yet-unmaterialized proxy,
then only the text "unmaterialized proxy for ..." is returned and the proxy is NOT
materialized. Otherwise, the normal toString method is called. This useful e.g. for
logging etc.
Parameters: proxy - The object for which a string representation shall be generated The string representation