org.apache.cayenne.dba.oracle
Class OracleCharType

java.lang.Object
  extended by org.apache.cayenne.access.types.CharType
      extended by org.apache.cayenne.dba.oracle.OracleCharType
All Implemented Interfaces:
ExtendedType

public class OracleCharType
extends CharType

Oracle specific CHAR type handling. If connection property "fixedString" is true, then 'a' equal 'a ' in a CHAR(4) while parameter binding in PreparedStatement.

Since:
3.1

Field Summary
 
Fields inherited from class org.apache.cayenne.access.types.CharType
trimmingChars, usingClobs
 
Constructor Summary
OracleCharType()
           
 
Method Summary
 void setJdbcObject(java.sql.PreparedStatement st, java.lang.Object val, int pos, int type, int precision)
          Initializes a single parameter of a PreparedStatement with object value.
 
Methods inherited from class org.apache.cayenne.access.types.CharType
getClassName, isTrimmingChars, isUsingClobs, materializeObject, materializeObject, readCharStream, readClob, readValueStream, rtrim, setTrimmingChars, setUsingClobs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleCharType

public OracleCharType()
Method Detail

setJdbcObject

public void setJdbcObject(java.sql.PreparedStatement st,
                          java.lang.Object val,
                          int pos,
                          int type,
                          int precision)
                   throws java.lang.Exception
Description copied from interface: ExtendedType
Initializes a single parameter of a PreparedStatement with object value.

Specified by:
setJdbcObject in interface ExtendedType
Overrides:
setJdbcObject in class CharType
Throws:
java.lang.Exception


Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.