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, setTablepublic static final String SERIALIZE_TO_FOLDER_EXTENSION
public void initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
JavaTypeMappinginitialize in class JavaTypeMappingmmd - MetaData for the field/property to be mapped (if any)table - The table storing this mapping (if any)clr - the ClassLoaderResolverpublic boolean includeInFetchStatement()
JavaTypeMappingincludeInFetchStatement in class JavaTypeMappingpublic boolean includeInUpdateStatement()
JavaTypeMappingincludeInUpdateStatement in class JavaTypeMappingpublic boolean includeInInsertStatement()
JavaTypeMappingincludeInInsertStatement in class JavaTypeMappingpublic Class getJavaType()
JavaTypeMappinggetJavaType in class JavaTypeMappingpublic void insertPostProcessing(org.datanucleus.state.ObjectProvider op)
MappingCallbacksinsertPostProcessing in interface MappingCallbacksop - ObjectProviderpublic void postInsert(org.datanucleus.state.ObjectProvider op)
MappingCallbackspostInsert in interface MappingCallbacksop - ObjectProvider of the ownerpublic void postFetch(org.datanucleus.state.ObjectProvider op)
MappingCallbackspostFetch in interface MappingCallbacksop - ObjectProvider of the ownerpublic void postUpdate(org.datanucleus.state.ObjectProvider op)
MappingCallbackspostUpdate in interface MappingCallbacksop - ObjectProvider of the ownerpublic void preDelete(org.datanucleus.state.ObjectProvider op)
MappingCallbackspreDelete in interface MappingCallbacksop - 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 © 2017. All rights reserved.