MySQL 5.6.14 Source Code Document
|
Public Member Functions | |
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) |
ValueHandler | createKeyValueHandler (Object keys) |
T | getInstance (ValueHandler handler) |
Class<?> | getOidClass () |
Class< T > | getProxyClass () |
ValueHandler | getValueHandler (Object instance) |
boolean | isSupportedType () |
T | newInstance () |
void | objectMarkModified (ValueHandler handler, String fieldName) |
void | objectResetModified (ValueHandler handler) |
void | objectSetCacheManager (CacheManager cm, Object instance) |
String[] | getFieldNames () |
Protected Member Functions | |
String[] | getColumnNames (String indexName, Column[] columns) |
Table | getTable (Dictionary dictionary) |
String | removeUniqueSuffix (String indexName) |
Protected Attributes | |
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 I18NHelper | local = I18NHelper.getInstance(AbstractDomainTypeHandlerImpl.class) |
static final Logger | logger = LoggerFactoryService.getFactory().getInstance(AbstractDomainTypeHandlerImpl.class) |
Abstract class implementing DomainTypeHandler. This class implements common behavior to manage persistent representations of tables, including field handlers for persistent field values. Subclasses will implement behavior specific to the actual representations of persistence.
Definition at line 52 of file AbstractDomainTypeHandlerImpl.java.
|
inline |
Create a list of candidate indexes to evaluate query terms and decide what type of operation to use. The result must correspond one to one with the indexHandlerImpls.
Definition at line 217 of file AbstractDomainTypeHandlerImpl.java.
|
inline |
Create a partition key for a find by primary key.
handler | the handler that contains the values of the primary key |
Definition at line 352 of file AbstractDomainTypeHandlerImpl.java.
|
inlineprotected |
Extract the column names from store Columns.
indexName | the index name (for error messages) |
columns | the store Column instances |
Definition at line 197 of file AbstractDomainTypeHandlerImpl.java.
|
inline |
Return the list of index names corresponding to the array of indexes. This method is called by the DomainFieldHandlerImpl constructor after the registerIndices method is called.
indexArray | the result of registerIndices |
Definition at line 183 of file AbstractDomainTypeHandlerImpl.java.
|
inline |
Create and register an index from a field and return a special int[][] that contains all indexHandlerImpls in which the field participates. The int[][] is used by the query optimizer to determine which if any index can be used. This method is called by the DomainFieldHandlerImpl constructor after the mapped column name is known.
fmd | the FieldHandler |
columnName | the column name mapped to the field |
Definition at line 156 of file AbstractDomainTypeHandlerImpl.java.
|
inline |
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 DomainFieldHandlerImpl constructor after the mapped column name is known. It is only called by fields that are mapped to primary key columns.
fmd | the field handler instance calling us |
columnName | the name of the column |
Definition at line 126 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
Field names
Definition at line 106 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
Map of field names to field numbers.
Definition at line 103 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The id field(s) for the class, mapped to primary key columns
Definition at line 76 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The field numbers of the id fields.
Definition at line 73 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
All index handlers defined for the mapped class. The position in this array is significant. Each DomainFieldHandlerImpl contains the index into this array and the index into the fields array within the IndexHandlerImpl.
Definition at line 113 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
Set of index names to check for duplicates.
Definition at line 116 of file AbstractDomainTypeHandlerImpl.java.
|
staticprotected |
My message translator
Definition at line 55 of file AbstractDomainTypeHandlerImpl.java.
|
staticprotected |
My logger
Definition at line 58 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The name of the class.
Definition at line 61 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
Non PK fields.
Definition at line 97 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The number of fields. Dynamically created as fields are added.
Definition at line 91 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The number of id fields for the class.
Definition at line 70 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The number of partition key columns
Definition at line 82 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The names of the partition key columns
Definition at line 88 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The partition key fields
Definition at line 85 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
Persistent fields.
Definition at line 94 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The PrimaryKey column names.
Definition at line 79 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
Primitive fields.
Definition at line 100 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The NDB table for the class.
Definition at line 67 of file AbstractDomainTypeHandlerImpl.java.
|
protected |
The table for the class.
Definition at line 64 of file AbstractDomainTypeHandlerImpl.java.