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

java.lang.Object
  extended byorg.jpox.store.rdbms.mapping.RDBMSMapping
      extended byorg.jpox.store.rdbms.mapping.ColumnMapping
          extended byorg.jpox.store.rdbms.mapping.oracle.OracleBlobRDBMSMapping
All Implemented Interfaces:
DatastoreMapping

public class OracleBlobRDBMSMapping
extends ColumnMapping

Maps a Field to an Oracle BLOB

Version:
$Revision: 1.12 $

Field Summary
 
Fields inherited from class org.jpox.store.rdbms.mapping.ColumnMapping
column
 
Fields inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping
LOCALISER, LOCALISER_STORE, mapping, storeMgr
 
Constructor Summary
  OracleBlobRDBMSMapping(JavaTypeMapping mapping, StoreManager storeMgr, DatastoreField field)
          Constructor.
protected OracleBlobRDBMSMapping(StoreManager storeMgr, JavaTypeMapping mapping)
          Creates a OracleBlobRDBMSMapping
 
Method Summary
 java.lang.String getInsertionInputParameter()
          Accessor for the string to put in any retrieval datastore statement for this field.
 java.lang.Object getObject(java.lang.Object rs, int param)
          Returns the object to be loaded from the Orale BLOB.
 TypeInfo getTypeInfo()
          Returns the TypeInfo (JDBC SQL type) for columns.
 java.lang.String getUpdateInputParameter()
          Accessor for the string to put in any update datastore statements for this field.
 boolean includeInSQLFetchStatement()
          Whether to include this mapping in a fetch statement.
 
Methods inherited from class org.jpox.store.rdbms.mapping.ColumnMapping
equals, getColumn, getDatastoreField, hashCode, includeInFetchStatement, initTypeInfo, isNullable
 
Methods inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping
failureMessage, getBoolean, getByte, getChar, getDatabaseAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, getString, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleBlobRDBMSMapping

public OracleBlobRDBMSMapping(JavaTypeMapping mapping,
                              StoreManager storeMgr,
                              DatastoreField field)
Constructor.

Parameters:
mapping - The Java mapping
storeMgr - Store Manager in use
field - The column in the datastore

OracleBlobRDBMSMapping

protected OracleBlobRDBMSMapping(StoreManager storeMgr,
                                 JavaTypeMapping mapping)
Creates a OracleBlobRDBMSMapping

Parameters:
storeMgr - Store Manager
mapping - The Java mapping
Method Detail

getInsertionInputParameter

public java.lang.String getInsertionInputParameter()
Description copied from class: RDBMSMapping
Accessor for the string to put in any retrieval datastore statement for this field. In RDBMS, this is typically a ? to be used in JDBC statements.

Overrides:
getInsertionInputParameter in class ColumnMapping
See Also:
RDBMSMapping.getInsertionInputParameter()

getObject

public java.lang.Object getObject(java.lang.Object rs,
                                  int param)
Returns the object to be loaded from the Orale BLOB.

Specified by:
getObject in interface DatastoreMapping
Overrides:
getObject in class RDBMSMapping
Parameters:
rs - the ResultSet from the query
param - the index in the query
Returns:
the object loaded as a byte[]
Throws:
javax.jdo.JDODataStoreException

getTypeInfo

public TypeInfo getTypeInfo()
Description copied from class: ColumnMapping
Returns the TypeInfo (JDBC SQL type) for columns. This method is capable of returning only one TypeInfo (SQL Type). In that way, it seems adequate for using in 1 column Mapping or many columns that share the same TypeInfo. However adequate in most of uses, Mappings using two or more columns should overwrite the initTypeInfo method to appropriate set differents TypeInfo (SQL type) for all the columns

Specified by:
getTypeInfo in class ColumnMapping
Returns:
The TypeInfo
See Also:
RDBMSMapping.getTypeInfo()

getUpdateInputParameter

public java.lang.String getUpdateInputParameter()
Description copied from class: RDBMSMapping
Accessor for the string to put in any update datastore statements for this field. In RDBMS, this is typically a ? to be used in JDBC statements.

Overrides:
getUpdateInputParameter in class ColumnMapping
See Also:
RDBMSMapping.getUpdateInputParameter()

includeInSQLFetchStatement

public boolean includeInSQLFetchStatement()
Whether to include this mapping in a fetch statement.

Returns:
Whether to include it when fetching the object


Copyright © -2007 . All Rights Reserved.