| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.finalist.tools.database.RowMapper
com.finalist.tools.database.DBFRowMapper
Implementation of the rowmapper for Oracle. This class has been tested against Oracle 8.1.7 and 8.2.
| Constructor Summary | |
| DBFRowMapper() | |
| Method Summary | |
|  java.sql.PreparedStatement | bind(java.sql.PreparedStatement pstmt,
     java.lang.Object bindVar,
     java.lang.String bindVarClassType,
     int pos)Method that binds an object of a specified type into a PreparedStatement and returns the PreparedStatement. | 
| static java.lang.String | byteArrayExtendedToString(byte[] ba) | 
|  java.lang.Object | unBindIntoBean(java.sql.ResultSet rset,
               java.lang.Object target)Method that reads the values from a ResultSet an populates the properties of a bean | 
|  java.util.HashMap | unBindIntoHashMap(java.sql.ResultSet r,
                  java.util.HashMap target)Method that reads the values from a ResultSet for one row and stores them into a HashMap. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public DBFRowMapper()
| Method Detail | 
public java.sql.PreparedStatement bind(java.sql.PreparedStatement pstmt,
                                       java.lang.Object bindVar,
                                       java.lang.String bindVarClassType,
                                       int pos)
                                throws java.sql.SQLException,
                                       NotMappableException
RowMapper
bind in class RowMapperpstmt - PreparedStatement to which the object should be bound.bindVar - the object that is to be bound.bindVarClassType - the full classname that identifies the type of the classpos - the position at which the object should be bound into the statement.
java.sql.SQLException
NotMappableException - when no appropriate bind method could be found
public java.util.HashMap unBindIntoHashMap(java.sql.ResultSet r,
                                           java.util.HashMap target)
                                    throws java.sql.SQLException,
                                           NotMappableException
RowMapper
unBindIntoHashMap in class RowMapperr - the resultset that serves a sourcetarget - the HashMap in which the values will be stored
java.sql.SQLException
NotMappableException - when no appropriate unbind method could be found
public java.lang.Object unBindIntoBean(java.sql.ResultSet rset,
                                       java.lang.Object target)
                                throws java.sql.SQLException,
                                       NotMappableException
RowMapper
unBindIntoBean in class RowMapperrset - the resultset that serves a sourcetarget - the bean of which the properties should be set
java.sql.SQLException
NotMappableException - when no appropriate unbind method could be foundpublic static java.lang.String byteArrayExtendedToString(byte[] ba)
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||