org.dbforms.config
Class JDBCDataHelper
java.lang.Object
org.dbforms.config.JDBCDataHelper
public class JDBCDataHelper
- extends Object
this utility-class provides convenience methods for SQL related tasks
- Author:
- Joe Peer, Eric Pugh
|
Method Summary |
static void |
fillWithData(PreparedStatement ps,
IEscaper escaper,
int col,
Object value,
int fieldType,
int blobStrategy)
this utility-method assigns a particular value to a place holder of a
PreparedStatement. it tries to find the correct setXxx() value, accoring
to the field-type information represented by "fieldType". quality: this
method is bloody alpha (as you might see :=) |
static Object |
getData(ResultSet rs,
IEscaper escaper,
int col)
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCDataHelper
public JDBCDataHelper()
getData
public static Object getData(ResultSet rs,
IEscaper escaper,
int col)
throws SQLException
- DOCUMENT ME!
- Parameters:
rs - DOCUMENT ME!escaper - DOCUMENT ME!col - DOCUMENT ME!
- Returns:
- DOCUMENT ME!
- Throws:
SQLException - DOCUMENT ME!
fillWithData
public static void fillWithData(PreparedStatement ps,
IEscaper escaper,
int col,
Object value,
int fieldType,
int blobStrategy)
throws SQLException
- this utility-method assigns a particular value to a place holder of a
PreparedStatement. it tries to find the correct setXxx() value, accoring
to the field-type information represented by "fieldType". quality: this
method is bloody alpha (as you might see :=)
- Parameters:
ps - DOCUMENT ME!escaper - DOCUMENT ME!col - DOCUMENT ME!value - DOCUMENT ME!fieldType - DOCUMENT ME!blobStrategy - DOCUMENT ME!
- Throws:
SQLException - DOCUMENT ME!
Copyright © 2002-2006 DbForms. All Rights Reserved.