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

Classes

class  ObjectOperationHandlerRelationField
interface  RelatedFieldLoadManager

Public Member Functions

FieldMapping getFieldMapping ()
 NdbOpenJPADomainFieldHandlerImpl (Dictionary dictionary, NdbOpenJPADomainTypeHandlerImpl<?> domainTypeHandler, NdbOpenJPAConfigurationImpl domainTypeHandlerFactory, final FieldMapping fieldMapping)
void initializeRelations ()
 NdbOpenJPADomainFieldHandlerImpl (NdbOpenJPADomainFieldHandlerImpl parent, Column localColumn, Column pkColumn)
void load (OpenJPAStateManager sm, NdbOpenJPAStoreManager store, JDBCFetchConfiguration fetch) throws SQLException
void load (OpenJPAStateManager sm, NdbOpenJPAStoreManager store, JDBCFetchConfiguration fetch, NdbOpenJPAResult result) throws SQLException
Map< String, Object > createParameterMap (QueryDomainType<?> queryDomainType, Object thisOid)
int compareTo (Object o)
Field getOidField ()
com.mysql.clusterj.core.store.Column[] getStoreColumns ()
boolean isSupported ()
boolean isRelation ()
String getReason ()

Public Attributes

ObjectOperationHandler[] objectOperationHandlers

Protected Member Functions

String toString (Object o)
Object getKeyValue (Object keys)
ObjectOperationHandler getObjectOperationHandlerRelationDelegate (int javaType)

Static Protected Member Functions

static Object getKeyValue (Field field, Object keys)
static Field getFieldForOidClass (NdbOpenJPADomainFieldHandlerImpl ndbOpenJPADomainFieldHandlerImpl, Class<?> oidClass, String fieldName)

Additional Inherited Members

Detailed Description

Definition at line 76 of file NdbOpenJPADomainFieldHandlerImpl.java.

Constructor & Destructor Documentation

com.mysql.clusterj.openjpa.NdbOpenJPADomainFieldHandlerImpl.NdbOpenJPADomainFieldHandlerImpl ( NdbOpenJPADomainFieldHandlerImpl  parent,
Column  localColumn,
Column  pkColumn 
)
inline

This field handler is used with compound "foreign keys". Each column of the compound "foreign key" has its own field handler. The parent field handler has the relationship field but no columns.

Parameters
parentthe field handler with the relationship field
localColumnthe "foreign key" column in this table
pkColumnthe primary key column in the other table

Definition at line 544 of file NdbOpenJPADomainFieldHandlerImpl.java.

Here is the call graph for this function:

Member Function Documentation

Map<String, Object> com.mysql.clusterj.openjpa.NdbOpenJPADomainFieldHandlerImpl.createParameterMap ( QueryDomainType<?>  queryDomainType,
Object  thisOid 
)
inline

Add filters to the query and return the values to be used for the filter.

Parameters
queryDomainTypethe QueryDomainType
thisOidthe object id to be used to query foreign keys
Returns
the parameter map for the query with bound data values

Definition at line 668 of file NdbOpenJPADomainFieldHandlerImpl.java.

void com.mysql.clusterj.openjpa.NdbOpenJPADomainFieldHandlerImpl.initializeRelations ( )
inline

Initialize relationship handling. There are three types of relationships supported by clusterjpa:

  • direct ToOne relationship mapped by a foreign key on this side
  • ToOne relationship mapped by a foreign key on the other side
  • ToMany relationship mapped by a foreign key on the other side

Definition at line 409 of file NdbOpenJPADomainFieldHandlerImpl.java.

Here is the call graph for this function:

void com.mysql.clusterj.openjpa.NdbOpenJPADomainFieldHandlerImpl.load ( OpenJPAStateManager  sm,
NdbOpenJPAStoreManager  store,
JDBCFetchConfiguration  fetch 
) throws SQLException
inline

Load the value of this field. This will be done here for relationship since basic fields are loaded when the instance is first initialized.

Parameters
smthe openjpa state manager for the instance
storethe store manager
fetchthe fetch configuration, presently unused
Exceptions
SQLException

Definition at line 616 of file NdbOpenJPADomainFieldHandlerImpl.java.

Here is the caller graph for this function:


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