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

Public Member Functions

 DomainTypeHandlerImpl (Class< T > cls, Dictionary dictionary)
boolean isSupportedType ()
ValueHandler getValueHandler (Object instance) throws IllegalArgumentException
void objectMarkModified (ValueHandler handler, String fieldName)
Class< T > getProxyClass ()
Class< T > getDomainClass ()
void operationSetValues (Object instance, Operation op)
void objectSetKeys (Object keys, Object instance)
void objectResetModified (ValueHandler handler)
void objectSetCacheManager (CacheManager cm, Object instance)
newInstance ()
void initializeNotPersistentFields (InvocationHandlerImpl< T > handler)
getInstance (ValueHandler handler)
ValueHandler createKeyValueHandler (Object keys)
void checkKeyType (String name, Class<?> keyType, Object keys) throws ClusterJUserException
Class<?> getOidClass ()

Protected Member Functions

Constructor< T > getConstructorForInvocationHandler (Class< T > cls)
ColumnMetadata[] columnMetadata ()

Protected Attributes

Class< T > proxyClass

Static Protected Attributes

static final Class<?>[] invocationHandlerClassArray

Detailed Description

This instance manages a persistence-capable type. Currently, only interfaces can be persistence-capable. Persistent properties consist of a pair of bean-pattern methods for which the get method returns the same type as the parameter of the similarly-named set method.

Parameters
Tthe class of the persistence-capable type

Definition at line 60 of file DomainTypeHandlerImpl.java.

Constructor & Destructor Documentation

com.mysql.clusterj.core.metadata.DomainTypeHandlerImpl< T >.DomainTypeHandlerImpl ( Class< T >  cls,
Dictionary  dictionary 
)
inline

Initialize DomainTypeHandler for a class.

Parameters
clsthe domain class (this is the only class known to the rest of the implementation)
dictionaryNdbDictionary instance used for metadata access

Definition at line 92 of file DomainTypeHandlerImpl.java.

Here is the call graph for this function:

Member Function Documentation

void com.mysql.clusterj.core.metadata.DomainTypeHandlerImpl< T >.checkKeyType ( String  name,
Class<?>  keyType,
Object  keys 
) throws ClusterJUserException
inline

Check that the key value matches the key type. Keys that are part of a compound key can be null as long as they are not part of the partition key.

Parameters
namethe name of the field
keyTypethe type of the key field
keysthe value for the key field

Definition at line 471 of file DomainTypeHandlerImpl.java.

Constructor<T> com.mysql.clusterj.core.metadata.DomainTypeHandlerImpl< T >.getConstructorForInvocationHandler ( Class< T >  cls)
inlineprotected

TODO: Protect with doPrivileged.

Definition at line 418 of file DomainTypeHandlerImpl.java.

boolean com.mysql.clusterj.core.metadata.DomainTypeHandlerImpl< T >.isSupportedType ( )
inline

Is this type supported?

Reimplemented from com.mysql.clusterj.core.metadata.AbstractDomainTypeHandlerImpl< T >.

Definition at line 270 of file DomainTypeHandlerImpl.java.

Member Data Documentation

final Class<?> [] com.mysql.clusterj.core.metadata.DomainTypeHandlerImpl< T >.invocationHandlerClassArray
staticprotected
Initial value:
new Class[]{InvocationHandler.class}

Helper parameter for constructor.

Definition at line 82 of file DomainTypeHandlerImpl.java.

Class<T> com.mysql.clusterj.core.metadata.DomainTypeHandlerImpl< T >.proxyClass
protected

The Proxy class for the Domain Class.

Definition at line 73 of file DomainTypeHandlerImpl.java.


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