|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtendedType
Defines methods to read Java objects from JDBC ResultSets and write as parameters of PreparedStatements.
Method Summary | |
---|---|
String |
getClassName()
Returns a full name of Java class that this ExtendedType supports. |
Object |
materializeObject(CallableStatement rs,
int index,
int type)
Reads an object from a stored procedure OUT parameter, converting it to class returned by 'getClassName' method. |
Object |
materializeObject(ResultSet rs,
int index,
int type)
Reads an object from JDBC ResultSet column, converting it to class returned by 'getClassName' method. |
void |
setJdbcObject(PreparedStatement statement,
Object value,
int pos,
int type,
int scale)
Initializes a single parameter of a PreparedStatement with object value. |
Method Detail |
---|
String getClassName()
void setJdbcObject(PreparedStatement statement, Object value, int pos, int type, int scale) throws Exception
Exception
Object materializeObject(ResultSet rs, int index, int type) throws Exception
Exception
- if read error occurred, or an object can't be converted to a
target Java class.Object materializeObject(CallableStatement rs, int index, int type) throws Exception
Exception
- if read error ocurred, or an object can't be converted to a
target Java class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |