com.objectwave.persist.objectConstruction
Class RDBTypeConversion
java.lang.Object
|
+--com.objectwave.persist.objectConstruction.RDBTypeConversion
- All Implemented Interfaces:
- RDBTypeConversionIF
- public class RDBTypeConversion
- extends java.lang.Object
- implements RDBTypeConversionIF
Implements the default support for obtaining values from a database result set.
The method 'displayType' is simply for debugging purposes.
- Version:
- $Id: RDBTypeConversion.java,v 2.0 2001/06/11 16:00:04 dave_hoag Exp $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDBTypeConversion
public RDBTypeConversion()
setBrokerProperty
public void setBrokerProperty(BrokerPropertyIF b)
- Specified by:
setBrokerProperty
in interface RDBTypeConversionIF
displayType
protected void displayType(int columnType,
java.sql.ResultSet set,
int columnIndex)
throws java.sql.SQLException
- Used for debugging. It will print out the column types in a database table.
java.sql.SQLException
getInstance
public static RDBTypeConversionIF getInstance()
getInstance
public static RDBTypeConversionIF getInstance(java.lang.String instanceType)
resultSetValue
public java.lang.Object resultSetValue(int columnType,
java.sql.ResultSet set,
int columnIndex)
throws java.sql.SQLException
- Return the object in the result set based off the column type. The mapping
was found in one of the Java documents.
- Specified by:
resultSetValue
in interface RDBTypeConversionIF
- Parameters:
columnType
- java.sql.TypescolumnIndex
- The column of interest in the result set.
- Throws:
java.sql.SQLException
- Problem retreiving value from result set.