public class SerialisedLocalFileMapping extends JavaTypeMapping implements MappingCallbacks
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZE_TO_FOLDER_EXTENSION |
absFieldNumber, datastoreMappings, mmd, referenceMapping, roleForMember, storeMgr, table, type
Constructor and Description |
---|
SerialisedLocalFileMapping() |
Modifier and Type | Method and Description |
---|---|
protected Object |
deserialiseFieldValue(org.datanucleus.state.ObjectProvider op)
Method to deserialise the value from file and return it.
|
protected String |
getFilenameForObjectProvider(org.datanucleus.state.ObjectProvider op) |
Class |
getJavaType()
Accessor for the java type being mapped.
|
boolean |
includeInFetchStatement()
Accessor for whether this mapping is to be included in any fetch statement.
|
boolean |
includeInInsertStatement()
Accessor for whether this mapping is to be included in the insert statement.
|
boolean |
includeInUpdateStatement()
Accessor for whether this mapping is to be included in the update statement.
|
void |
initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping for the supplied table and field/property metadata.
|
void |
insertPostProcessing(org.datanucleus.state.ObjectProvider op)
Hook so that we can handle any post-processing on the insert of a particular field.
|
void |
postFetch(org.datanucleus.state.ObjectProvider op)
Method called after the retrieval of the object, so that additional operations can be performed if necessary.
|
void |
postInsert(org.datanucleus.state.ObjectProvider op)
Method called after the insert of the object so that additional operations can be performed if necessary.
|
void |
postUpdate(org.datanucleus.state.ObjectProvider op)
Method called after the update of the object, so that additional operations can be performed if necessary.
|
void |
preDelete(org.datanucleus.state.ObjectProvider op)
Method called before the delete of objects, so that additional operations can be performed if necessary.
|
protected void |
serialiseFieldValue(org.datanucleus.state.ObjectProvider op,
Object value)
Method to serialise the value from the ObjectProvider to file.
|
addDatastoreMapping, equals, failureMessage, getAbsoluteFieldNumber, getBoolean, getByte, getChar, getColumnMetaDataForMember, getDatastoreMapping, getDatastoreMappings, getDouble, getFloat, getInt, getJavaTypeForDatastoreMapping, getLong, getMemberMetaData, getNumberOfDatastoreMappings, getObject, getObject, getReferenceMapping, getRoleForMember, getShort, getStoreManager, getString, getTable, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setMemberMetaData, setObject, setObject, setReferenceMapping, setRoleForMember, setShort, setString, setTable
public static final String SERIALIZE_TO_FOLDER_EXTENSION
public void initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd, Table table, org.datanucleus.ClassLoaderResolver clr)
JavaTypeMapping
initialize
in class JavaTypeMapping
mmd
- MetaData for the field/property to be mapped (if any)table
- The table storing this mapping (if any)clr
- the ClassLoaderResolverpublic boolean includeInFetchStatement()
JavaTypeMapping
includeInFetchStatement
in class JavaTypeMapping
public boolean includeInUpdateStatement()
JavaTypeMapping
includeInUpdateStatement
in class JavaTypeMapping
public boolean includeInInsertStatement()
JavaTypeMapping
includeInInsertStatement
in class JavaTypeMapping
public Class getJavaType()
JavaTypeMapping
getJavaType
in class JavaTypeMapping
public void insertPostProcessing(org.datanucleus.state.ObjectProvider op)
MappingCallbacks
insertPostProcessing
in interface MappingCallbacks
op
- ObjectProviderpublic void postInsert(org.datanucleus.state.ObjectProvider op)
MappingCallbacks
postInsert
in interface MappingCallbacks
op
- ObjectProvider of the ownerpublic void postFetch(org.datanucleus.state.ObjectProvider op)
MappingCallbacks
postFetch
in interface MappingCallbacks
op
- ObjectProvider of the ownerpublic void postUpdate(org.datanucleus.state.ObjectProvider op)
MappingCallbacks
postUpdate
in interface MappingCallbacks
op
- ObjectProvider of the ownerpublic void preDelete(org.datanucleus.state.ObjectProvider op)
MappingCallbacks
preDelete
in interface MappingCallbacks
op
- ObjectProvider of the ownerprotected String getFilenameForObjectProvider(org.datanucleus.state.ObjectProvider op)
protected void serialiseFieldValue(org.datanucleus.state.ObjectProvider op, Object value)
op
- The ObjectProvidervalue
- The value being serialisedprotected Object deserialiseFieldValue(org.datanucleus.state.ObjectProvider op)
op
- The ObjectProvider to get the value forCopyright © 2015. All rights reserved.