public class ValueHelper extends ServiceBase
et, factorySvc, log| Constructor and Description |
|---|
ValueHelper(FactoryService factorySvc) |
| Modifier and Type | Method and Description |
|---|---|
PreparedStatement |
createPrepStatement(SqlStatement statement,
Connection conn) |
PreparedStatement |
createPrepStatementWithGenKey(SqlStatement statement,
Connection conn) |
protected DValue |
extractGeneratedKey(ResultSet rs,
Shape keyShape,
DTypeRegistry registry) |
Object |
extractObj(Exp exp) |
void |
fixupForExist(List<DValue> dvalList,
DBAccessContext dbctx) |
DValue |
readField(TypePair pair,
ResultSet rs,
DBAccessContext dbctx) |
DValue |
readIndexedField(DType type,
int rsIndex,
ResultSet rs,
DBAccessContext dbctx) |
DValue |
valueInSql(Shape shape,
Object value,
DTypeRegistry registry) |
public ValueHelper(FactoryService factorySvc)
public PreparedStatement createPrepStatement(SqlStatement statement, Connection conn) throws SQLException
SQLExceptionpublic PreparedStatement createPrepStatementWithGenKey(SqlStatement statement, Connection conn) throws SQLException
SQLExceptionprotected DValue extractGeneratedKey(ResultSet rs, Shape keyShape, DTypeRegistry registry) throws SQLException
SQLExceptionpublic DValue readField(TypePair pair, ResultSet rs, DBAccessContext dbctx) throws SQLException
SQLExceptionpublic DValue readIndexedField(DType type, int rsIndex, ResultSet rs, DBAccessContext dbctx) throws SQLException
SQLExceptionpublic DValue valueInSql(Shape shape, Object value, DTypeRegistry registry)
public void fixupForExist(List<DValue> dvalList, DBAccessContext dbctx)
Copyright © 2020. All rights reserved.