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

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

public class OracleStringMapping
extends StringMapping
implements MappingCallbacks

Mapping for a String type for Oracle.

Version:
$Revision: 1.11 $

Field Summary
 
Fields inherited from class org.jpox.store.mapping.BaseStringMapping
mappingSampleValue
 
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
OracleStringMapping(DatastoreAdapter dba, AbstractPropertyMetaData fmd, DatastoreContainerObject table, ClassLoaderResolver clr)
          Creates a new OracleStringMapping object.
OracleStringMapping(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 CLOB locator created by the insert statement and write out the current CLOB 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.BaseStringMapping
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

OracleStringMapping

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

Parameters:
dba - Datastore Adapter
type - Type of the field

OracleStringMapping

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

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

postInsert

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

Specified by:
postInsert in interface MappingCallbacks
Parameters:
sm - The StateManager owner of this field

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

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

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

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


Copyright © -2007 . All Rights Reserved.