Class InterfaceMapping
java.lang.Object
org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping
org.datanucleus.store.rdbms.mapping.java.MultiMapping
org.datanucleus.store.rdbms.mapping.java.MultiPersistableMapping
org.datanucleus.store.rdbms.mapping.java.ReferenceMapping
org.datanucleus.store.rdbms.mapping.java.InterfaceMapping
- All Implemented Interfaces:
MappingCallbacks
Mapping for Interface fields.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringExtension - if a field is declared with implementation-classes.Fields inherited from class ReferenceMapping
ID_MAPPING, mappingStrategy, PER_IMPLEMENTATION_MAPPING, XCALIA_MAPPINGFields inherited from class MultiMapping
javaTypeMappings, numberOfColumnMappingsFields inherited from class JavaTypeMapping
absFieldNumber, columnMappings, mmd, referenceMapping, roleForMember, storeMgr, table, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod to retrieve an object of this type from the ResultSet.voidinitialize(org.datanucleus.metadata.AbstractMemberMetaData mmd, Table table, org.datanucleus.ClassLoaderResolver clr) Initialisation.voidsetImplementationClasses(String implementationClasses) Set the implementation classes.Methods inherited from class ReferenceMapping
createPerImplementationColumnsForReferenceField, getJavaType, getJavaTypeForColumnMapping, getJavaTypeMappingForType, getMappingNumberForValue, getMappingStrategy, getObjectForReferenceString, getReferenceStringForObject, preDelete, prepareColumnMapping, setObjectMethods inherited from class MultiPersistableMapping
setObjectMethods inherited from class MultiMapping
addJavaTypeMapping, getColumnMapping, getColumnMappings, getJavaTypeMapping, getNumberOfColumnMappingsMethods inherited from class JavaTypeMapping
addColumnMapping, equals, failureMessage, getAbsoluteFieldNumber, getBoolean, getByte, getChar, getColumnMetaDataForMember, getDouble, getFloat, getInt, getLong, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getShort, getStoreManager, getString, getTable, getType, getValueForColumnMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, performSetPostProcessing, representableAsStringLiteralInStatement, requiresSetPostProcessing, setAbsFieldNumber, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setMemberMetaData, setReferenceMapping, setRoleForMember, setShort, setString, setTableMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MappingCallbacks
postFetch, postInsert, postUpdate
-
Field Details
-
implementationClasses
Extension - if a field is declared with implementation-classes. Comma-separated list of implementation classes.
-
-
Constructor Details
-
InterfaceMapping
public InterfaceMapping()
-
-
Method Details
-
initialize
public void initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd, Table table, org.datanucleus.ClassLoaderResolver clr) Initialisation.- Overrides:
initializein classReferenceMapping- Parameters:
mmd- MetaData for the field/propertytable- datastore container (table)clr- ClassLoader resolver
-
setImplementationClasses
Set the implementation classes. If the field defined what the implementation classes are, this mapping will only use it- Parameters:
implementationClasses- the implementation classes string
-
getObject
Method to retrieve an object of this type from the ResultSet.- Overrides:
getObjectin classReferenceMapping- Parameters:
ec- ExecutionContextrs- The ResultSetpos- The parameter positions- Returns:
- The object
-