org.jpox.store.rdbms.mapping.oracle
Class OracleSerialisedObjectMapping

java.lang.Object
  extended byorg.jpox.store.mapping.JavaTypeMapping
      extended byorg.jpox.store.mapping.SingleFieldMapping
          extended byorg.jpox.store.mapping.SerialisedMapping
              extended byorg.jpox.store.rdbms.mapping.oracle.OracleSerialisedObjectMapping
All Implemented Interfaces:
MappingCallbacks, SimpleDatastoreRepresentation

public class OracleSerialisedObjectMapping
extends SerialisedMapping
implements MappingCallbacks

Mapping for Object and Serializable types.

Version:
$Revision: 1.7 $

Field Summary
 
Fields inherited from class org.jpox.store.mapping.SingleFieldMapping
datastoreContainer, typeInfo
 
Fields inherited from class org.jpox.store.mapping.JavaTypeMapping
datastoreMappings, dba, fmd, LOCALISER, referenceMapping, type
 
Constructor Summary
OracleSerialisedObjectMapping(DatastoreAdapter dba, AbstractPropertyMetaData fmd, DatastoreContainerObject table, ClassLoaderResolver clr)
          Creates a new OracleObjectMapping object.
OracleSerialisedObjectMapping(DatastoreAdapter dba, java.lang.String type)
          Constructor.
 
Method Summary
 void deleteDependent(StateManager sm)
          Clear the collection and delete child dependent elements, values or keys that are tagged as dependent.
 void postFetch(StateManager sm)
          Method called after the retrieval of objects, so that additional operations can be performed if necessary.
 void postInsert(StateManager sm)
          Retrieve the empty BLOB created by the insert statement and write out the current BLOB field value to the Oracle CLOB object
 void postUpdate(StateManager sm)
          Method called after the update of objects, so that additional operations can be performed if necessary.
 void preDelete(StateManager sm)
          Method called before the delete of objects, so that additional operations can be performed if necessary.
 
Methods inherited from class org.jpox.store.mapping.SerialisedMapping
getJavaType, getSampleValue, newLiteral, newScalarExpression
 
Methods inherited from class org.jpox.store.mapping.SingleFieldMapping
equals, getBoolean, getByte, getChar, getDatastoreContainer, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, hasValue, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, prepareDatastoreMapping, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString
 
Methods inherited from class org.jpox.store.mapping.JavaTypeMapping
addDataStoreMapping, failureMessage, getDataStoreMapping, getDataStoreMappings, getFieldMetaData, getNumberOfDatastoreFields, getObject, getReferenceMapping, getType, isNullable, setDefault, setObject, setReferenceMapping
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleSerialisedObjectMapping

public OracleSerialisedObjectMapping(DatastoreAdapter dba,
                                     java.lang.String type)
Constructor.

Parameters:
dba - Database adapter
type - The java type

OracleSerialisedObjectMapping

public OracleSerialisedObjectMapping(DatastoreAdapter dba,
                                     AbstractPropertyMetaData fmd,
                                     DatastoreContainerObject table,
                                     ClassLoaderResolver clr)
Creates a new OracleObjectMapping object.

Parameters:
dba - Database Adapter
fmd - FieldMetaData for the field
table - Table for persisting this field
clr - The ClassLoaderResolver
Method Detail

deleteDependent

public void deleteDependent(StateManager sm)
Description copied from interface: MappingCallbacks
Clear the collection and delete child dependent elements, values or keys that are tagged as dependent.

Specified by:
deleteDependent in interface MappingCallbacks
Parameters:
sm - the owner StateManager
See Also:
MappingCallbacks.deleteDependent(org.jpox.StateManager)

postFetch

public void postFetch(StateManager sm)
Description copied from interface: MappingCallbacks
Method called after the retrieval of objects, so that additional operations can be performed if necessary.

Specified by:
postFetch in interface MappingCallbacks
Parameters:
sm - StateManager of the owner
See Also:
MappingCallbacks.postFetch(org.jpox.StateManager)

postInsert

public void postInsert(StateManager sm)
Retrieve the empty BLOB created by the insert statement and write out the current BLOB field value to the Oracle CLOB object

Specified by:
postInsert in interface MappingCallbacks
Parameters:
sm - īthe current StateManager
Throws:
javax.jdo.JDOObjectNotFoundException
javax.jdo.JDODataStoreException

postUpdate

public void postUpdate(StateManager sm)
Description copied from interface: MappingCallbacks
Method called after the update of objects, so that additional operations can be performed if necessary.

Specified by:
postUpdate in interface MappingCallbacks
Parameters:
sm - StateManager of the owner
See Also:
MappingCallbacks.postUpdate(org.jpox.StateManager)

preDelete

public void preDelete(StateManager sm)
Description copied from interface: MappingCallbacks
Method called before the delete of objects, so that additional operations can be performed if necessary.

Specified by:
preDelete in interface MappingCallbacks
Parameters:
sm - StateManager of the owner
See Also:
MappingCallbacks.preDelete(org.jpox.StateManager)


Copyright © -2007 . All Rights Reserved.