Package org.apache.openjpa.kernel
Interface OpCallbacks
- All Known Implementing Classes:
EntityManagerImpl
public interface OpCallbacks
Allows facades to control the particulars of persistence operations
through callbacks.
- Author:
- Abe White
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionint
processArgument
(int op, Object arg, OpenJPAStateManager sm) Process operation argument.
-
Field Details
-
OP_PERSIST
static final int OP_PERSIST- See Also:
-
OP_DELETE
static final int OP_DELETE- See Also:
-
OP_REFRESH
static final int OP_REFRESH- See Also:
-
OP_RETRIEVE
static final int OP_RETRIEVE- See Also:
-
OP_RELEASE
static final int OP_RELEASE- See Also:
-
OP_EVICT
static final int OP_EVICT- See Also:
-
OP_ATTACH
static final int OP_ATTACH- See Also:
-
OP_DETACH
static final int OP_DETACH- See Also:
-
OP_NONTRANSACTIONAL
static final int OP_NONTRANSACTIONAL- See Also:
-
OP_TRANSACTIONAL
static final int OP_TRANSACTIONAL- See Also:
-
OP_LOCK
static final int OP_LOCK- See Also:
-
ACT_NONE
static final int ACT_NONE- See Also:
-
ACT_CASCADE
static final int ACT_CASCADE- See Also:
-
ACT_RUN
static final int ACT_RUN- See Also:
-
-
Method Details
-
processArgument
Process operation argument. Throw properOpenJPAException
for illegal value.- Parameters:
op
- the operation constantarg
- the object passed to the operationsm
- the argument's state manager, or null if none- Returns:
- the action to take on the argument
-