org.jpox.store.rdbms.mapping
Class LongVarcharRDBMSMapping

java.lang.Object
  extended by org.jpox.store.rdbms.mapping.RDBMSMapping
      extended by org.jpox.store.rdbms.mapping.ColumnMapping
          extended by org.jpox.store.rdbms.mapping.LongVarcharRDBMSMapping
All Implemented Interfaces:
org.jpox.store.mapped.mapping.DatastoreMapping
Direct Known Subclasses:
ClobRDBMSMapping

public class LongVarcharRDBMSMapping
extends ColumnMapping

Mapping of a Long VARCHAR RDBMS type.

Version:
$Revision: 1.11 $

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
  LongVarcharRDBMSMapping(org.jpox.store.mapped.mapping.JavaTypeMapping mapping, org.jpox.store.mapped.MappedStoreManager storeMgr, org.jpox.store.mapped.DatastoreField field)
          Constructor.
protected LongVarcharRDBMSMapping(org.jpox.store.mapped.MappedStoreManager storeMgr, org.jpox.store.mapped.mapping.JavaTypeMapping mapping)
           
 
Method Summary
 java.lang.Object getObject(java.lang.Object rs, int param)
           
 java.lang.String getString(java.lang.Object rs, int param)
           
 TypeInfo getTypeInfo()
          Returns the TypeInfo (JDBC SQL type) for columns.
 boolean isDecimalBased()
          Accessor for whether the mapping is decimal-based.
 boolean isIntegerBased()
          Accessor for whether the mapping is integer-based.
 boolean isStringBased()
          Accessor for whether the mapping is string-based.
 void setObject(java.lang.Object ps, int param, java.lang.Object value)
           
 void setString(java.lang.Object ps, int param, java.lang.String value)
           
 
Methods inherited from class org.jpox.store.rdbms.mapping.ColumnMapping
equals, getColumn, getDatastoreField, getInsertionInputParameter, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, isBitBased, isBooleanBased, isNullable
 
Methods inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping
failureMessage, getBoolean, getByte, getChar, getDatabaseAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, insertValuesOnInsert, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongVarcharRDBMSMapping

protected LongVarcharRDBMSMapping(org.jpox.store.mapped.MappedStoreManager storeMgr,
                                  org.jpox.store.mapped.mapping.JavaTypeMapping mapping)
Parameters:
storeMgr - Store Manager
mapping - Java type mapping

LongVarcharRDBMSMapping

public LongVarcharRDBMSMapping(org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
                               org.jpox.store.mapped.MappedStoreManager storeMgr,
                               org.jpox.store.mapped.DatastoreField field)
Constructor.

Parameters:
mapping - Java type mapping
storeMgr - Store Manager
field - Field to be mapped
Method Detail

isDecimalBased

public boolean isDecimalBased()
Accessor for whether the mapping is decimal-based.

Specified by:
isDecimalBased in interface org.jpox.store.mapped.mapping.DatastoreMapping
Overrides:
isDecimalBased in class ColumnMapping
Returns:
Whether the mapping is decimal based

isIntegerBased

public boolean isIntegerBased()
Accessor for whether the mapping is integer-based.

Specified by:
isIntegerBased in interface org.jpox.store.mapped.mapping.DatastoreMapping
Overrides:
isIntegerBased in class ColumnMapping
Returns:
Whether the mapping is integer based

isStringBased

public boolean isStringBased()
Accessor for whether the mapping is string-based.

Specified by:
isStringBased in interface org.jpox.store.mapped.mapping.DatastoreMapping
Overrides:
isStringBased in class ColumnMapping
Returns:
Whether the mapping is string based

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

setString

public void setString(java.lang.Object ps,
                      int param,
                      java.lang.String value)
Specified by:
setString in interface org.jpox.store.mapped.mapping.DatastoreMapping
Overrides:
setString in class RDBMSMapping

getString

public java.lang.String getString(java.lang.Object rs,
                                  int param)
Specified by:
getString in interface org.jpox.store.mapped.mapping.DatastoreMapping
Overrides:
getString in class RDBMSMapping

setObject

public void setObject(java.lang.Object ps,
                      int param,
                      java.lang.Object value)
Specified by:
setObject in interface org.jpox.store.mapped.mapping.DatastoreMapping
Overrides:
setObject in class RDBMSMapping

getObject

public java.lang.Object getObject(java.lang.Object rs,
                                  int param)
Specified by:
getObject in interface org.jpox.store.mapped.mapping.DatastoreMapping
Overrides:
getObject in class RDBMSMapping


Copyright © -2008 . All Rights Reserved.