Package org.apache.openjpa.kernel
Interface OpCallbacks
-
- All Known Implementing Classes:
EntityManagerImpl
public interface OpCallbacksAllows facades to control the particulars of persistence operations through callbacks.- Author:
- Abe White
-
-
Field Summary
Fields Modifier and Type Field Description static intACT_CASCADEstatic intACT_NONEstatic intACT_RUNstatic intOP_ATTACHstatic intOP_DELETEstatic intOP_DETACHstatic intOP_EVICTstatic intOP_LOCKstatic intOP_NONTRANSACTIONALstatic intOP_PERSISTstatic intOP_REFRESHstatic intOP_RELEASEstatic intOP_RETRIEVEstatic intOP_TRANSACTIONAL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intprocessArgument(int op, java.lang.Object arg, OpenJPAStateManager sm)Process operation argument.
-
-
-
Field Detail
-
OP_PERSIST
static final int OP_PERSIST
- See Also:
- Constant Field Values
-
OP_DELETE
static final int OP_DELETE
- See Also:
- Constant Field Values
-
OP_REFRESH
static final int OP_REFRESH
- See Also:
- Constant Field Values
-
OP_RETRIEVE
static final int OP_RETRIEVE
- See Also:
- Constant Field Values
-
OP_RELEASE
static final int OP_RELEASE
- See Also:
- Constant Field Values
-
OP_EVICT
static final int OP_EVICT
- See Also:
- Constant Field Values
-
OP_ATTACH
static final int OP_ATTACH
- See Also:
- Constant Field Values
-
OP_DETACH
static final int OP_DETACH
- See Also:
- Constant Field Values
-
OP_NONTRANSACTIONAL
static final int OP_NONTRANSACTIONAL
- See Also:
- Constant Field Values
-
OP_TRANSACTIONAL
static final int OP_TRANSACTIONAL
- See Also:
- Constant Field Values
-
OP_LOCK
static final int OP_LOCK
- See Also:
- Constant Field Values
-
ACT_NONE
static final int ACT_NONE
- See Also:
- Constant Field Values
-
ACT_CASCADE
static final int ACT_CASCADE
- See Also:
- Constant Field Values
-
ACT_RUN
static final int ACT_RUN
- See Also:
- Constant Field Values
-
-
Method Detail
-
processArgument
int processArgument(int op, java.lang.Object arg, OpenJPAStateManager sm)Process operation argument. Throw properOpenJPAExceptionfor 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
-
-