org.apache.openjpa.kernel
Interface FindCallbacks

All Known Implementing Classes:
BrokerImpl, DistributedBrokerImpl, EntityManagerImpl, FinalizingBrokerImpl

public interface FindCallbacks

Allows facades to control the particulars of the find operation through callbacks.

Author:
Abe White

Method Summary
 java.lang.Object processArgument(java.lang.Object oid)
          Process find argument.
 java.lang.Object processReturn(java.lang.Object oid, OpenJPAStateManager sm)
          Process operation return value.
 

Method Detail

processArgument

java.lang.Object processArgument(java.lang.Object oid)
Process find argument. Throw proper OpenJPAException for illegal value.

Returns:
the id to look up, or null to ignore this argument

processReturn

java.lang.Object processReturn(java.lang.Object oid,
                               OpenJPAStateManager sm)
Process operation return value.

Returns:
the object to return