public abstract static class JdbcTypesHelper.BaseType extends java.lang.Object implements JdbcType
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
FieldType |
getFieldType()
Returns the associated
FieldType (java field type mapped to this sql type). |
java.lang.Object |
getObjectFromColumn(java.sql.CallableStatement stmt,
int columnId)
Convenience method for
JdbcType.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
JdbcType.getObjectFromColumn(ResultSet, CallableStatement, String, int) |
int |
hashCode() |
java.lang.String |
toString() |
getType, sequenceKeyConversion
public boolean equals(java.lang.Object obj)
JdbcType
public int hashCode()
hashCode
in class java.lang.Object
public FieldType getFieldType()
JdbcType
FieldType
(java field type mapped to this sql type).getFieldType
in interface JdbcType
public java.lang.Object getObjectFromColumn(java.sql.CallableStatement stmt, int columnId) throws java.sql.SQLException
JdbcType
JdbcType.getObjectFromColumn(ResultSet, CallableStatement, String, int)
getObjectFromColumn
in interface JdbcType
java.sql.SQLException
public java.lang.Object getObjectFromColumn(java.sql.ResultSet rs, java.lang.String columnName) throws java.sql.SQLException
JdbcType
JdbcType.getObjectFromColumn(ResultSet, CallableStatement, String, int)
getObjectFromColumn
in interface JdbcType
java.sql.SQLException
public java.lang.Object getObjectFromColumn(java.sql.ResultSet rs, java.sql.CallableStatement stmt, java.lang.String columnName, int columnIndex) throws java.sql.SQLException
JdbcType
JdbcType.MIN_INT
, then the given 'columnName'
argument is used to lookup column. Else the given 'columnId' is used as column index.getObjectFromColumn
in interface JdbcType
java.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30