org.apache.ojb.broker.util
Class JdbcTypesHelper.T_Clob

java.lang.Object
  extended byorg.apache.ojb.broker.util.JdbcTypesHelper.BaseType
      extended byorg.apache.ojb.broker.util.JdbcTypesHelper.T_Clob
All Implemented Interfaces:
JdbcType, java.io.Serializable
Enclosing class:
JdbcTypesHelper

public static final class JdbcTypesHelper.T_Clob
extends JdbcTypesHelper.BaseType

See Also:
Serialized Form

Field Summary
protected static int BUFSZ
           
 
Fields inherited from interface org.apache.ojb.broker.metadata.JdbcType
MIN_INT, serialVersionUID
 
Constructor Summary
JdbcTypesHelper.T_Clob()
           
 
Method Summary
 int getType()
          Returns the representing sql type.
(package private)  java.lang.Object readValueFromResultSet(java.sql.ResultSet rs, int columnIndex)
           
(package private)  java.lang.Object readValueFromResultSet(java.sql.ResultSet rs, java.lang.String columnName)
           
(package private)  java.lang.Object readValueFromStatement(java.sql.CallableStatement stmt, int columnIndex)
           
protected static java.lang.String safeClobToString(java.sql.Clob aClob)
          Convert CLOB to String.
 java.lang.Object sequenceKeyConversion(java.lang.Long identifier)
          Convert the given Long value to a java object representation of this jdbc type.
 
Methods inherited from class org.apache.ojb.broker.util.JdbcTypesHelper.BaseType
equals, getObjectFromColumn, getObjectFromColumn, getObjectFromColumn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUFSZ

protected static final int BUFSZ
See Also:
Constant Field Values
Constructor Detail

JdbcTypesHelper.T_Clob

public JdbcTypesHelper.T_Clob()
Method Detail

safeClobToString

protected static java.lang.String safeClobToString(java.sql.Clob aClob)
                                            throws java.sql.SQLException
Convert CLOB to String. Safe for very large objects.

Parameters:
aClob - clob with character data
Returns:
a string containing the clob data
Throws:
java.sql.SQLException - if conversion fails or the clob cannot be read

sequenceKeyConversion

public java.lang.Object sequenceKeyConversion(java.lang.Long identifier)
                                       throws SequenceManagerException
Description copied from interface: JdbcType
Convert the given Long value to a java object representation of this jdbc type.

Throws:
SequenceManagerException

readValueFromStatement

java.lang.Object readValueFromStatement(java.sql.CallableStatement stmt,
                                        int columnIndex)
                                  throws java.sql.SQLException
Specified by:
readValueFromStatement in class JdbcTypesHelper.BaseType
Throws:
java.sql.SQLException

readValueFromResultSet

java.lang.Object readValueFromResultSet(java.sql.ResultSet rs,
                                        java.lang.String columnName)
                                  throws java.sql.SQLException
Specified by:
readValueFromResultSet in class JdbcTypesHelper.BaseType
Throws:
java.sql.SQLException

readValueFromResultSet

java.lang.Object readValueFromResultSet(java.sql.ResultSet rs,
                                        int columnIndex)
                                  throws java.sql.SQLException
Specified by:
readValueFromResultSet in class JdbcTypesHelper.BaseType
Throws:
java.sql.SQLException

getType

public int getType()
Description copied from interface: JdbcType
Returns the representing sql type.



Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14