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

Classes

enum  Status

Public Member Functions

String getName ()
Class<?> getOidClass ()
String getTableName ()
DomainFieldHandler getFieldHandler (String fieldName)
Class< T > getProxyClass ()
newInstance ()
void objectMarkModified (ValueHandler handler, String fieldName)
void objectSetKeys (Object keys, Object instance)
void objectSetValues (ResultData rs, ValueHandler handler)
void objectSetValuesExcept (ResultData rs, ValueHandler handler, String indexName)
void objectSetCacheManager (CacheManager cm, Object instance)
void objectResetModified (ValueHandler handler)
void operationGetValues (Operation op)
void operationGetKeys (Operation op)
void operationGetValues (Operation op, BitSet fields)
void operationSetKeys (ValueHandler handler, Operation op)
void operationSetModifiedValues (ValueHandler handler, Operation op)
void operationSetValuesExcept (ValueHandler handler, Operation op, String index)
void operationSetModifiedNonPKValues (ValueHandler handler, Operation op)
getInstance (ValueHandler handler)
ValueHandler createKeyValueHandler (Object keys)
ValueHandler getValueHandler (Object instance)
ValueHandler getValueHandler (OpenJPAStateManager sm, NdbOpenJPAStoreManager store)
int[] getKeyFieldNumbers ()
void newInstance (OpenJPAStateManager sm)
CandidateIndexImpl[] createCandidateIndexes ()
boolean load (OpenJPAStateManager sm, NdbOpenJPAStoreManager store, BitSet fields, JDBCFetchConfiguration fetch, Object context) throws SQLException
void load (OpenJPAStateManager sm, NdbOpenJPAStoreManager store, JDBCFetchConfiguration fetch, NdbOpenJPAResult result) throws SQLException
Set
< com.mysql.clusterj.core.store.Column
getStoreColumns (BitSet fields)
NdbOpenJPADomainFieldHandlerImpl getDomainFieldHandler (FieldMapping fm)
int[][] createIndexHandler (NdbOpenJPADomainFieldHandlerImpl fieldHandler, Dictionary dictionary, String indexName)
com.mysql.clusterj.core.store.Table getTable ()
Table getStoreTable ()
PartitionKey createPartitionKey (ValueHandler handler)
NdbOpenJPADomainTypeHandlerImpl<?> registerDependency (ClassMapping mapping)
void initializeRelations ()
boolean isSupportedType ()
String getReasons ()
String toString ()
String[] getFieldNames ()
void operationSetValues (ValueHandler valueHandler, Operation op)
void operationSetNonPKValues (ValueHandler valueHandler, Operation op)

Protected Member Functions

void registerPrimaryKeyColumn (NdbOpenJPADomainFieldHandlerImpl fmd, String columnName)

Detailed Description

Definition at line 55 of file NdbOpenJPADomainTypeHandlerImpl.java.

Member Function Documentation

CandidateIndexImpl [] com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.createCandidateIndexes ( )
inline

Create a list of candidate indexes to evaluate query terms and decide what type of scan to use.

Returns
a new array of CandidateIndexImpl

Definition at line 419 of file NdbOpenJPADomainTypeHandlerImpl.java.

int [][] com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.createIndexHandler ( NdbOpenJPADomainFieldHandlerImpl  fieldHandler,
Dictionary  dictionary,
String  indexName 
)
inline

Register an index from a field and return a special int[][] that contains all indexHandlerImpls in which the field participates. One index can be defined in the field annotation and this index is identified here. This method is called by the FieldHandler constructor after the Index annotation is processed and the mapped column name is known. TODO: Currently, only one index is supported per field.

Parameters
fieldHandlerthe FieldHandler
indexNamethe index name
dictionarythe dictionary used to validate index metadata
Returns
the array of array identifying the indexes into the IndexHandler list and columns in the IndexHandler corresponding to the field

Definition at line 537 of file NdbOpenJPADomainTypeHandlerImpl.java.

PartitionKey com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.createPartitionKey ( ValueHandler  handler)
inline

Create a partition key for any operation that knows the primary key.

Parameters
handlerthe handler that contains the values of the primary key

Definition at line 559 of file NdbOpenJPADomainTypeHandlerImpl.java.

NdbOpenJPADomainFieldHandlerImpl com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.getDomainFieldHandler ( FieldMapping  fm)
inline

Get the DomainFieldHandler for the related field.

Parameters
fmthe related field mapping
Returns
the DomainFieldHandler

Definition at line 513 of file NdbOpenJPADomainTypeHandlerImpl.java.

Set<com.mysql.clusterj.core.store.Column> com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.getStoreColumns ( BitSet  fields)
inline

Get StoreColumns for fields identified by the BitSet

Definition at line 492 of file NdbOpenJPADomainTypeHandlerImpl.java.

boolean com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.load ( OpenJPAStateManager  sm,
NdbOpenJPAStoreManager  store,
BitSet  fields,
JDBCFetchConfiguration  fetch,
Object  context 
) throws SQLException
inline

Load the fields for the persistent instance owned by the sm.

Parameters
smthe StateManager
storethe StoreManager
fieldsthe fields to load
fetchthe FetchConfiguration
Returns
true if any field was loaded

Definition at line 435 of file NdbOpenJPADomainTypeHandlerImpl.java.

Here is the call graph for this function:

void com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.load ( OpenJPAStateManager  sm,
NdbOpenJPAStoreManager  store,
JDBCFetchConfiguration  fetch,
NdbOpenJPAResult  result 
) throws SQLException
inline

Load the fields for the persistent instance owned by the sm. This is the normal way for fields to be loaded into the instance from a result.

Parameters
smthe StateManager
storethe StoreManager
fetchthe FetchConfiguration

Definition at line 480 of file NdbOpenJPADomainTypeHandlerImpl.java.

void com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.operationGetKeys ( Operation  op)
inline

Specify that the key columns are to be returned in the result.

Parameters
opthe operation

Definition at line 293 of file NdbOpenJPADomainTypeHandlerImpl.java.

void com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.operationGetValues ( Operation  op,
BitSet  fields 
)
inline

Specify the fields to be returned in the result.

Parameters
opthe operation
fieldsthe fields to be returned by the operation

Definition at line 303 of file NdbOpenJPADomainTypeHandlerImpl.java.

NdbOpenJPADomainTypeHandlerImpl<?> com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.registerDependency ( ClassMapping  mapping)
inline

Register a dependency on another class. If the class is not already known, add it to the list of dependencies.

Definition at line 575 of file NdbOpenJPADomainTypeHandlerImpl.java.

Here is the call graph for this function:

void com.mysql.clusterj.openjpa.NdbOpenJPADomainTypeHandlerImpl< T >.registerPrimaryKeyColumn ( NdbOpenJPADomainFieldHandlerImpl  fmd,
String  columnName 
)
inlineprotected

Register a primary key column field. This is used to associate primary key and partition key column names with field handlers. This method is called by the NdbOpenJPADomainFieldHandlerImpl constructor after the mapped column name is known. It is only called by fields that are mapped to primary key columns.

Parameters
fmdthe field handler instance calling us
columnNamethe name of the column

Definition at line 209 of file NdbOpenJPADomainTypeHandlerImpl.java.


The documentation for this class was generated from the following file: