MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.openjpa.NdbOpenJPAStoreManager Class Reference
Inheritance diagram for com.mysql.clusterj.openjpa.NdbOpenJPAStoreManager:
Collaboration diagram for com.mysql.clusterj.openjpa.NdbOpenJPAStoreManager:

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
domainTypeHandlerthe domain type handler
queryDomainTypethe QueryDomainType
parameterMapthe 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

Find the object with the given oid.

Definition at line 131 of file NdbOpenJPAStoreManager.java.

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.

Here is the call graph for this function:

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
smthe StateManager
fieldsthe fields to load
fetchthe FetchConfiguration
lockLevelthe lock level to use when getting data
contextthe StoreContext
Returns
true if any field was loaded

Definition at line 156 of file NdbOpenJPAStoreManager.java.

Here is the caller graph for this function:

NdbOpenJPAResult com.mysql.clusterj.openjpa.NdbOpenJPAStoreManager.lookup ( OpenJPAStateManager  sm,
NdbOpenJPADomainTypeHandlerImpl<?>  domainTypeHandler,
List< NdbOpenJPADomainFieldHandlerImpl fieldHandlers 
)
inline

Look up the row in the database in order to load them into the instance.

Parameters
smthe state manager whose fields are to be loaded
domainTypeHandlerthe domain type handler for the instance's type
fieldHandlersthe 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: