MySQL 5.6.14 Source Code Document
|
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) |
T | newInstance () |
void | initializeNotPersistentFields (InvocationHandlerImpl< T > handler) |
T | getInstance (ValueHandler handler) |
ValueHandler | createKeyValueHandler (Object keys) |
void | checkKeyType (String name, Class<?> keyType, Object keys) throws ClusterJUserException |
Class<?> | getOidClass () |
Public Member Functions inherited from com.mysql.clusterj.core.metadata.AbstractDomainTypeHandlerImpl< T > | |
void | registerPrimaryKeyColumn (DomainFieldHandler fmd, String columnName) |
int[][] | registerIndices (AbstractDomainFieldHandlerImpl fmd, String columnName) |
Set< String > | getIndexNames (int[][] indexArray) |
CandidateIndexImpl[] | createCandidateIndexes () |
String | getTableName () |
int | getNumberOfFields () |
DomainFieldHandler[] | getIdFieldHandlers () |
DomainFieldHandler | getFieldHandler (String fieldName) |
int | getFieldNumber (String fieldName) |
void | operationSetNonPKValues (ValueHandler handler, Operation op) |
void | operationSetValues (ValueHandler handler, Operation op) |
void | operationSetModifiedNonPKValues (ValueHandler handler, Operation op) |
void | operationSetModifiedValues (ValueHandler handler, Operation op) |
void | operationSetKeys (ValueHandler handler, Operation op) |
void | operationGetValues (Operation op) |
void | operationGetValues (Operation op, BitSet fields) |
void | operationGetValuesExcept (IndexOperation op, String index) |
void | objectSetValues (ResultData rs, ValueHandler handler) |
void | objectSetValuesExcept (ResultData rs, ValueHandler handler, String indexName) |
int[] | getKeyFieldNumbers () |
Table | getStoreTable () |
PartitionKey | createPartitionKey (ValueHandler handler) |
String | getName () |
Set< String > | getColumnNames (BitSet fields) |
Set < com.mysql.clusterj.core.store.Column > | getStoreColumns (BitSet fields) |
String[] | getFieldNames () |
Protected Member Functions | |
Constructor< T > | getConstructorForInvocationHandler (Class< T > cls) |
ColumnMetadata[] | columnMetadata () |
Protected Member Functions inherited from com.mysql.clusterj.core.metadata.AbstractDomainTypeHandlerImpl< T > | |
String[] | getColumnNames (String indexName, Column[] columns) |
Table | getTable (Dictionary dictionary) |
String | removeUniqueSuffix (String indexName) |
Protected Attributes | |
Class< T > | proxyClass |
Protected Attributes inherited from com.mysql.clusterj.core.metadata.AbstractDomainTypeHandlerImpl< T > | |
String | name |
String | tableName |
Table | table |
int | numberOfIdFields |
int[] | idFieldNumbers |
DomainFieldHandler[] | idFieldHandlers |
String[] | primaryKeyColumnNames |
int | numberOfPartitionKeyColumns = 0 |
DomainFieldHandler[] | partitionKeyFieldHandlers |
String[] | partitionKeyColumnNames |
int | numberOfFields = 0 |
List< DomainFieldHandler > | persistentFieldHandlers = new ArrayList<DomainFieldHandler>() |
List< DomainFieldHandler > | nonPKFieldHandlers = new ArrayList<DomainFieldHandler>() |
List< DomainFieldHandler > | primitiveFieldHandlers = new ArrayList<DomainFieldHandler>() |
Map< String, Integer > | fieldNameToNumber = new HashMap<String, Integer>() |
String[] | fieldNames |
List< IndexHandlerImpl > | indexHandlerImpls = new ArrayList<IndexHandlerImpl>() |
Set< String > | indexNames = new HashSet<String>() |
Static Protected Attributes | |
static final Class<?>[] | invocationHandlerClassArray |
Static Protected Attributes inherited from com.mysql.clusterj.core.metadata.AbstractDomainTypeHandlerImpl< T > | |
static final I18NHelper | local = I18NHelper.getInstance(AbstractDomainTypeHandlerImpl.class) |
static final Logger | logger = LoggerFactoryService.getFactory().getInstance(AbstractDomainTypeHandlerImpl.class) |
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.
T | the class of the persistence-capable type |
Definition at line 60 of file DomainTypeHandlerImpl.java.
|
inline |
Initialize DomainTypeHandler for a class.
cls | the domain class (this is the only class known to the rest of the implementation) |
dictionary | NdbDictionary instance used for metadata access |
Definition at line 92 of file DomainTypeHandlerImpl.java.
|
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.
name | the name of the field |
keyType | the type of the key field |
keys | the value for the key field |
Definition at line 471 of file DomainTypeHandlerImpl.java.
|
inlineprotected |
TODO: Protect with doPrivileged.
Definition at line 418 of file DomainTypeHandlerImpl.java.
|
inline |
Is this type supported?
Reimplemented from com.mysql.clusterj.core.metadata.AbstractDomainTypeHandlerImpl< T >.
Definition at line 270 of file DomainTypeHandlerImpl.java.
|
staticprotected |
Helper parameter for constructor.
Definition at line 82 of file DomainTypeHandlerImpl.java.
|
protected |
The Proxy class for the Domain Class.
Definition at line 73 of file DomainTypeHandlerImpl.java.