Public Member Functions |
void | setContext (StoreContext ctx) |
void | setContext (StoreContext ctx, NdbOpenJPAConfiguration conf) |
Object | find (Object oid, ValueMapping vm, JDBCFetchConfiguration fetch) |
boolean | load (OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch, int lockLevel, Object context) |
Object | load (ClassMapping mapping, JDBCFetchConfiguration fetch, BitSet exclude, Result result) throws SQLException |
Collection | loadAll (Collection sms, PCState state, int load, FetchConfiguration fetch, Object context) |
boolean | initialize (OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object context) |
Collection< Exception > | flush (Collection sms) |
void | beforeStateChange (OpenJPAStateManager sm, PCState fromState, PCState toState) |
StoreQuery | newQuery (String language) |
void | beginOptimistic () |
void | begin () |
void | commit () |
void | rollback () |
void | close () |
NdbOpenJPAResult | executeQuery (DomainTypeHandler<?> domainTypeHandler, QueryDomainType<?> queryDomainType, Map< String, Object > parameterMap) |
NdbOpenJPAResult | lookup (OpenJPAStateManager sm, NdbOpenJPADomainTypeHandlerImpl<?> domainTypeHandler, List< NdbOpenJPADomainFieldHandlerImpl > fieldHandlers) |
Dictionary | getDictionary () |
Protected Member Functions |
NdbOpenJPADomainTypeHandlerImpl<?> | getDomainTypeHandler (OpenJPAStateManager sm) |
NdbOpenJPADomainTypeHandlerImpl<?> | getDomainTypeHandler (ClassMapping cmp) |
int | deleteAll (DomainTypeHandler<?> base) |
SessionSPI | getSession () |
boolean | initializeState (OpenJPAStateManager sm, PCState state, JDBCFetchConfiguration fetch, ConnectionInfo info) throws ClassNotFoundException, SQLException |
String | printState (OpenJPAStateManager sm) |
String | printState (String header, PCState state) |
String | printLoaded (OpenJPAStateManager sm) |
String | printIsActive (Transaction tx) |
Detailed Description
Definition at line 67 of file NdbOpenJPAStoreManager.java.
Member Function Documentation
NdbOpenJPAResult com.mysql.clusterj.openjpa.NdbOpenJPAStoreManager.executeQuery |
( |
DomainTypeHandler<?> |
domainTypeHandler, |
|
|
QueryDomainType<?> |
queryDomainType, |
|
|
Map< String, Object > |
parameterMap |
|
) |
| |
|
inline |
Execute the query and return the result list.
- Parameters
-
domainTypeHandler | the domain type handler |
queryDomainType | the QueryDomainType |
parameterMap | the bound parameters |
- Returns
- the result of the query
Definition at line 566 of file NdbOpenJPAStoreManager.java.
Object com.mysql.clusterj.openjpa.NdbOpenJPAStoreManager.find |
( |
Object |
oid, |
|
|
ValueMapping |
vm, |
|
|
JDBCFetchConfiguration |
fetch |
|
) |
| |
|
inline |
Collection<Exception> com.mysql.clusterj.openjpa.NdbOpenJPAStoreManager.flush |
( |
Collection |
sms | ) |
|
|
inline |
Flush the given state manager collection to the datastore, returning a collection of exceptions encountered during flushing. The given collection may include states that do not require data store action, such as persistent-clean instances or persistent-dirty instances that have not been modified since they were last flushed. For datastore updates and inserts, the dirty, non-flushed fields of each state should be flushed. New instances without an assigned object id should be given one via OpenJPAStateManager#setObjectId. New instances with value-strategy fields that have not been assigned yet should have their fields set. Datastore version information should be updated during flush, and the state manager's version indicator updated through the OpenJPAStateManager#setNextVersion method. The current version will roll over to this next version upon successful commit.
Definition at line 327 of file NdbOpenJPAStoreManager.java.
boolean com.mysql.clusterj.openjpa.NdbOpenJPAStoreManager.load |
( |
OpenJPAStateManager |
sm, |
|
|
BitSet |
fields, |
|
|
FetchConfiguration |
fetch, |
|
|
int |
lockLevel, |
|
|
Object |
context |
|
) |
| |
|
inline |
Load the fields for the persistent instance owned by the sm.
- Parameters
-
sm | the StateManager |
fields | the fields to load |
fetch | the FetchConfiguration |
lockLevel | the lock level to use when getting data |
context | the StoreContext |
- Returns
- true if any field was loaded
Definition at line 156 of file NdbOpenJPAStoreManager.java.
Look up the row in the database in order to load them into the instance.
- Parameters
-
sm | the state manager whose fields are to be loaded |
domainTypeHandler | the domain type handler for the instance's type |
fieldHandlers | the field handlers for the fields to be loaded |
- Returns
- the result containing just the fields requested
Definition at line 580 of file NdbOpenJPAStoreManager.java.
The documentation for this class was generated from the following file: