org.datanucleus.store.mapped.mapping
Class MapMapping
java.lang.Object
org.datanucleus.store.mapped.mapping.JavaTypeMapping
org.datanucleus.store.mapped.mapping.SingleFieldMapping
org.datanucleus.store.mapped.mapping.AbstractContainerMapping
org.datanucleus.store.mapped.mapping.MapMapping
- All Implemented Interfaces:
- MappingCallbacks
public class MapMapping
- extends AbstractContainerMapping
- implements MappingCallbacks
SCO Mapping for Map types.
| Methods inherited from class org.datanucleus.store.mapped.mapping.AbstractContainerMapping |
containerIsStoredInSingleColumn, getDatastoreContainer, getDatastoreMapping, getDatastoreMappings, getJavaTypeForDatastoreMapping, getNumberOfDatastoreMappings, getObject, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, postFetch, prepareDatastoreMapping, replaceFieldWithWrapper, setObject |
| Methods inherited from class org.datanucleus.store.mapped.mapping.SingleFieldMapping |
equals, getBoolean, getByte, getChar, getDefaultLength, getDouble, getFloat, getInt, getLong, getShort, getString, getValidValues, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString |
| Methods inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping |
addDatastoreMapping, failureMessage, getAbsoluteFieldNumber, getColumnMetaDataForMember, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getStoreManager, getType, getValueForDatastoreMapping, hashCode, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setDatastoreContainer, setMemberMetaData, setObject, setReferenceMapping, setRoleForMember |
MapMapping
public MapMapping()
getJavaType
public Class getJavaType()
- Accessor for the Java type represented here.
- Specified by:
getJavaType in class JavaTypeMapping
- Returns:
- The java type
insertPostProcessing
public void insertPostProcessing(ObjectProvider op)
- Description copied from interface:
MappingCallbacks
- Hook so that we can handle any post-processing on the insert of a particular field.
For example with Oracle we need to insert "EMPTY_CLOB" and then immediately after do a SELECT of it
and update the contents of the CLOB/BLOB.
- Specified by:
insertPostProcessing in interface MappingCallbacks
- Parameters:
op - ObjectProvider
postInsert
public void postInsert(ObjectProvider ownerOP)
- Method to be called after the insert of the owner class element.
- Specified by:
postInsert in interface MappingCallbacks
- Parameters:
ownerOP - ObjectProvider of the owner
postUpdate
public void postUpdate(ObjectProvider ownerOP)
- Method to be called after any update of the owner class element.
- Specified by:
postUpdate in interface MappingCallbacks
- Parameters:
ownerOP - ObjectProvider of the owner
preDelete
public void preDelete(ObjectProvider sm)
- Method to be called before any delete of the owner class element.
- Specified by:
preDelete in interface MappingCallbacks
- Parameters:
sm - StateManager of the owner
Copyright © 2012. All Rights Reserved.