J - Java types iń the business objectsD - Converted Java types to a JDBC type readypublic interface ITypeService<J,D>
| Modifier and Type | Method and Description |
|---|---|
Class<D> |
getDbTypeClass(MetaColumn column)
Return an converted Java type to use in database DDL statements.
|
J |
getValue(MetaColumn mColumn,
CallableStatement rs,
int c)
GetValue from the stored precedure by position.
|
J |
getValue(MetaColumn mColumn,
ResultSet rs,
int c)
GetValue from the result set by position
It must be the same implementation as
getValue(org.ujorm.orm.metaModel.MetaColumn, java.sql.CallableStatement, int). |
void |
setValue(MetaColumn mColumn,
PreparedStatement rs,
J value,
int c)
GetValue from the result set by position.
|
J getValue(MetaColumn mColumn, ResultSet rs, int c) throws SQLException
getValue(org.ujorm.orm.metaModel.MetaColumn, java.sql.CallableStatement, int).mColumn - Meta-model column, where the typeCode must be assigned before.rs - The ResultSet instancec - Catabase column index starting at #1SQLExceptionJ getValue(MetaColumn mColumn, CallableStatement rs, int c) throws SQLException
getValue(org.ujorm.orm.metaModel.MetaColumn, java.sql.ResultSet, int).mColumn - Meta-model column, where the typeCode must be assigned before.rs - The CallableStatement instancec - Catabase column index starting at #1SQLExceptionvoid setValue(MetaColumn mColumn, PreparedStatement rs, J value, int c) throws SQLException
mColumn - Meta-model column, where the typeCode must be assigned before.rs - PreparedStatementvalue - Value to assignc - The database column index starts at #1SQLExceptionClass<D> getDbTypeClass(MetaColumn column)
Copyright 2013, Pavel Ponec