com.triactive.jdo.store.mapping
Class OracleStringMapping

java.lang.Object
  extended bycom.triactive.jdo.store.mapping.Mapping
      extended bycom.triactive.jdo.store.mapping.ColumnMapping
          extended bycom.triactive.jdo.store.mapping.StringMapping
              extended bycom.triactive.jdo.store.mapping.OracleStringMapping

public class OracleStringMapping
extends StringMapping


Field Summary
 
Fields inherited from class com.triactive.jdo.store.mapping.ColumnMapping
col, typeInfo
 
Fields inherited from class com.triactive.jdo.store.mapping.Mapping
dba, fmd, type
 
Constructor Summary
OracleStringMapping(DatabaseAdapter dba, java.lang.Class type)
           
OracleStringMapping(DatabaseAdapter dba, FieldMetaData fmd)
           
 
Method Summary
 TypeInfo chooseColumnType(Column col)
          Chooses an appropriate SQL type for a column based on the column's options.
 java.lang.String getString(PersistenceManager pm, java.sql.ResultSet rs, int param)
           
 void setString(PersistenceManager pm, java.sql.PreparedStatement ps, int param, java.lang.String value)
           
 
Methods inherited from class com.triactive.jdo.store.mapping.StringMapping
getObject, mapTo, newSqlExpression, newSqlLiteral, setObject
 
Methods inherited from class com.triactive.jdo.store.mapping.ColumnMapping
accessAsFieldIn, defineConstraints, defineStorage, equals, getBoolean, getByte, getChar, getColumn, getDouble, getFloat, getInt, getLong, getShort, getSqlInsertionValue, getSqlUpdateValue, getTypeInfo, hashCode, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort
 
Methods inherited from class com.triactive.jdo.store.mapping.Mapping
getDefaultMappingsByType, getFieldMetaData, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleStringMapping

public OracleStringMapping(DatabaseAdapter dba,
                           java.lang.Class type)

OracleStringMapping

public OracleStringMapping(DatabaseAdapter dba,
                           FieldMetaData fmd)
Method Detail

chooseColumnType

public TypeInfo chooseColumnType(Column col)
Description copied from class: ColumnMapping
Chooses an appropriate SQL type for a column based on the column's options.

Overrides:
chooseColumnType in class StringMapping

setString

public void setString(PersistenceManager pm,
                      java.sql.PreparedStatement ps,
                      int param,
                      java.lang.String value)
Overrides:
setString in class StringMapping

getString

public java.lang.String getString(PersistenceManager pm,
                                  java.sql.ResultSet rs,
                                  int param)
Overrides:
getString in class StringMapping


Copyright 2001-2007 The TJDO Project All Rights Reserved.