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) |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
JdbcTypesHelper.BaseType
public JdbcTypesHelper.BaseType()
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
hashCode
public int hashCode()
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()
(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.1, 2004-09-08