org.apache.ojb.broker.util
Class JdbcTypesHelper.BaseType
java.lang.Object
org.apache.ojb.broker.util.JdbcTypesHelper.BaseType
- All Implemented Interfaces:
- JdbcType, java.io.Serializable
- Direct Known Subclasses:
- JdbcTypesHelper.T_Array, JdbcTypesHelper.T_BigInt, JdbcTypesHelper.T_Binary, JdbcTypesHelper.T_Bit, JdbcTypesHelper.T_Blob, JdbcTypesHelper.T_Boolean, JdbcTypesHelper.T_Char, JdbcTypesHelper.T_Clob, JdbcTypesHelper.T_Datalink, JdbcTypesHelper.T_Date, JdbcTypesHelper.T_Decimal, JdbcTypesHelper.T_Double, JdbcTypesHelper.T_Float, JdbcTypesHelper.T_Integer, JdbcTypesHelper.T_LongVarBinary, JdbcTypesHelper.T_LongVarChar, JdbcTypesHelper.T_Numeric, JdbcTypesHelper.T_Real, JdbcTypesHelper.T_Ref, JdbcTypesHelper.T_SmallInt, JdbcTypesHelper.T_Struct, JdbcTypesHelper.T_Time, JdbcTypesHelper.T_Timestamp, JdbcTypesHelper.T_TinyInt, JdbcTypesHelper.T_VarBinary, JdbcTypesHelper.T_Varchar
- Enclosing class:
- JdbcTypesHelper
- public abstract static class JdbcTypesHelper.BaseType
- extends java.lang.Object
- implements JdbcType
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.lang.Object |
getObjectFromColumn(java.sql.CallableStatement stmt,
int columnId)
Convenience method for getObjectFromColumn(ResultSet, CallableStatement, String, int) |
java.lang.Object |
getObjectFromColumn(java.sql.ResultSet rs,
java.sql.CallableStatement stmt,
java.lang.String columnName,
int columnIndex)
Returns an java object for this jdbc type by extract from the given
CallableStatement or ResultSet. |
java.lang.Object |
getObjectFromColumn(java.sql.ResultSet rs,
java.lang.String columnName)
Convenience method for getObjectFromColumn(ResultSet, CallableStatement, String, int) |
(package private) abstract java.lang.Object |
readValueFromResultSet(java.sql.ResultSet rs,
int columnIndex)
|
(package private) abstract java.lang.Object |
readValueFromResultSet(java.sql.ResultSet rs,
java.lang.String columnName)
|
(package private) abstract java.lang.Object |
readValueFromStatement(java.sql.CallableStatement stmt,
int columnIndex)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JdbcTypesHelper.BaseType
public JdbcTypesHelper.BaseType()
readValueFromResultSet
abstract java.lang.Object readValueFromResultSet(java.sql.ResultSet rs,
java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
readValueFromResultSet
abstract java.lang.Object readValueFromResultSet(java.sql.ResultSet rs,
int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
readValueFromStatement
abstract java.lang.Object readValueFromStatement(java.sql.CallableStatement stmt,
int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
equals
public boolean equals(java.lang.Object obj)
- Description copied from interface:
JdbcType
- Indicates whether some other object is "equal to" this one.
- Specified by:
equals
in interface JdbcType
getObjectFromColumn
public java.lang.Object getObjectFromColumn(java.sql.CallableStatement stmt,
int columnId)
throws java.sql.SQLException
- Description copied from interface:
JdbcType
- Convenience method for
JdbcType.getObjectFromColumn(ResultSet, CallableStatement, String, int)
- Specified by:
getObjectFromColumn
in interface JdbcType
- Throws:
java.sql.SQLException
getObjectFromColumn
public java.lang.Object getObjectFromColumn(java.sql.ResultSet rs,
java.lang.String columnName)
throws java.sql.SQLException
- Description copied from interface:
JdbcType
- Convenience method for
JdbcType.getObjectFromColumn(ResultSet, CallableStatement, String, int)
- Specified by:
getObjectFromColumn
in interface JdbcType
- Throws:
java.sql.SQLException
getObjectFromColumn
public java.lang.Object getObjectFromColumn(java.sql.ResultSet rs,
java.sql.CallableStatement stmt,
java.lang.String columnName,
int columnIndex)
throws java.sql.SQLException
- Description copied from interface:
JdbcType
- Returns an java object for this jdbc type by extract from the given
CallableStatement or ResultSet.
NOTE: For internal use only!!
Exactly one of the arguments of type CallableStatement or ResultSet
have to be non-null. If the 'columnId' argument is equals JdbcType.MIN_INT
, then the given 'columnName'
argument is used to lookup column. Else the given 'columnId' is used as column index.
- Specified by:
getObjectFromColumn
in interface JdbcType
- Throws:
java.sql.SQLException
toString
public java.lang.String toString()
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