Class OracleCharType
java.lang.Object
org.apache.cayenne.access.types.CharType
org.apache.cayenne.dba.oracle.OracleCharType
- All Implemented Interfaces:
ExtendedType<String>
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 CharType
trimmingChars, usingClobs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetJdbcObject(PreparedStatement st, String val, int pos, int type, int precision) Initializes a single parameter of a PreparedStatement with object value.Methods inherited from class CharType
getClassName, isTrimmingChars, isUsingClobs, materializeObject, materializeObject, readCharStream, readClob, readValueStream, rtrim, setTrimmingChars, setUsingClobs, toStringModifier and TypeMethodDescriptionReturns "java.lang.String".booleanReturnstrueif 'materializeObject' method should trim trailing spaces from the CHAR columns.booleanmaterializeObject(CallableStatement cs, int index, int type) Reads an object from a stored procedure OUT parameter, converting it to class returned by 'getClassName' method.materializeObject(ResultSet rs, int index, int type) Return trimmed string.protected StringreadCharStream(ResultSet rs, int index) protected Stringprotected StringreadValueStream(Reader in, int streamSize, int bufSize) protected StringTrim right spaces.voidsetTrimmingChars(boolean trimingChars) voidsetUsingClobs(boolean usingClobs) Converts value of the supported type to a human-readable String representation.
-
Constructor Details
-
OracleCharType
public OracleCharType()
-
-
Method Details
-
setJdbcObject
public void setJdbcObject(PreparedStatement st, String val, int pos, int type, int precision) throws Exception Description copied from interface:ExtendedTypeInitializes a single parameter of a PreparedStatement with object value.- Specified by:
setJdbcObjectin interfaceExtendedType<String>- Overrides:
setJdbcObjectin classCharType- Throws:
Exception
-