getDefaultIndirectionHandlerClass() Returns the class of a default IndirectionHandler that can be used for this implementaiton
if now IndirectionHandlerClass implementation is given.
interfaceRequiredForProxyGeneration() Method that returns whether or not this ProxyFactory can generate reference Proxies
for classes regardless if they extend an interface or not.
Create a Collection Proxy for a given context.
Parameters: persistenceConf - The persistence configuration that the proxy will be bound to Parameters: context - The creation context The collection proxy
Creates a new indirection handler instance.
Parameters: persistenceConf - The persistence configuration Parameters: id - The subject's ids The new instance
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
Method that returns whether or not this ProxyFactory can generate reference Proxies
for classes regardless if they extend an interface or not.
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)
Dets the proxy class to use for generic collection classes implementing the
java.util.Collection interface.
Parameters: collectionProxyClass - The proxy class
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: object - The object for which a string representation shall be generated The string representation