public abstract class MultiMapping extends JavaTypeMapping
Modifier and Type | Field and Description |
---|---|
protected JavaTypeMapping[] |
javaTypeMappings
The Java mappings represented by this mapping.
|
protected int |
numberOfDatastoreMappings
Number of datastore mappings - for convenience to improve performance
|
absFieldNumber, datastoreMappings, mmd, referenceMapping, roleForMember, storeMgr, table, type
Constructor and Description |
---|
MultiMapping() |
Modifier and Type | Method and Description |
---|---|
void |
addJavaTypeMapping(JavaTypeMapping mapping)
Method to add a Java type mapping for a field
|
DatastoreMapping |
getDatastoreMapping(int index)
Accessor for a datastore mapping.
|
DatastoreMapping[] |
getDatastoreMappings()
Accessor for the datastore mappings for this java type
|
JavaTypeMapping[] |
getJavaTypeMapping()
Accessor for the Java type mappings
|
int |
getNumberOfDatastoreMappings()
Accessor for the number of datastore mappings.
|
addDatastoreMapping, equals, failureMessage, getAbsoluteFieldNumber, getBoolean, getByte, getChar, getColumnMetaDataForMember, getDouble, getFloat, getInt, getJavaType, getJavaTypeForDatastoreMapping, getLong, getMemberMetaData, getObject, getObject, getReferenceMapping, getRoleForMember, getShort, getStoreManager, getString, getTable, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setMemberMetaData, setObject, setObject, setReferenceMapping, setRoleForMember, setShort, setString, setTable
protected JavaTypeMapping[] javaTypeMappings
protected int numberOfDatastoreMappings
public void addJavaTypeMapping(JavaTypeMapping mapping)
mapping
- The mapping to addpublic JavaTypeMapping[] getJavaTypeMapping()
public int getNumberOfDatastoreMappings()
getNumberOfDatastoreMappings
in class JavaTypeMapping
public DatastoreMapping[] getDatastoreMappings()
JavaTypeMapping
getDatastoreMappings
in class JavaTypeMapping
public DatastoreMapping getDatastoreMapping(int index)
getDatastoreMapping
in class JavaTypeMapping
index
- The position of the mapping to returnCopyright © 2015. All rights reserved.