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

java.lang.Object
  extended by org.apache.ojb.broker.metadata.JdbcTypesHelper.BaseType
      extended by org.apache.ojb.broker.metadata.JdbcTypesHelper.T_Clob
All Implemented Interfaces:
Serializable, JdbcType
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
 
Constructor Summary
JdbcTypesHelper.T_Clob()
           
 
Method Summary
 int getType()
          Returns the representing sql type.
protected static String safeClobToString(Clob aClob)
          Convert CLOB to String.
 Object sequenceKeyConversion(Long identifier)
          Convert the given Long value to a java object representation of this jdbc type.
 
Methods inherited from class org.apache.ojb.broker.metadata.JdbcTypesHelper.BaseType
equals, getFieldType, getObjectFromColumn, getObjectFromColumn, getObjectFromColumn, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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 String safeClobToString(Clob aClob)
                                  throws SQLException
Convert CLOB to String. Safe for very large objects.

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

sequenceKeyConversion

public Object sequenceKeyConversion(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

getType

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



Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.