public class JdbcStatement extends Object
| Constructor and Description |
|---|
JdbcStatement(Connection conn,
CharSequence sql,
OrmHandler handler) |
JdbcStatement(PreparedStatement ps,
OrmHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignExtendedValues(Query query)
Assign extended values into the prepared statement
|
void |
assignValue(MetaColumn column,
Object value,
OrmUjo bo)
Add a next value to a SQL prepared statement.
|
void |
assignValue(OrmUjo table,
MetaColumn column)
Add a next value to a SQL prepared statement.
|
void |
assignValues(CriterionDecoder decoder)
Assign values into the prepared statement
|
void |
assignValues(DbProcedure bo)
Assign procedure parameters
|
void |
assignValues(List<? extends OrmUjo> bos,
int idxFrom,
int idxTo)
Assign values into the prepared statement
|
void |
assignValues(OrmUjo bo)
Assign values into the prepared statement
|
void |
assignValues(OrmUjo table,
List<MetaColumn> columns)
Assign values into the prepared statement
|
void |
assignValues(Query query)
Assign values into the prepared statement
|
void |
close() |
void |
execute()
Call the procedure.
|
ResultSet |
executeQuery() |
int |
executeUpdate()
Run INSERT, UPDATE or DELETE.
|
String |
getAssignedValues()
Return values in format: [1, "ABC", 2.55]
|
void |
loadValues(DbProcedure bo)
Assign procedure parameters
|
protected void |
logValue(String textValue,
Key property)
Log a value value into a text format.
|
protected void |
logValue(Ujo bo,
Key property)
Log a value value into a text format.
|
String |
toString() |
public JdbcStatement(Connection conn, CharSequence sql, OrmHandler handler) throws SQLException
SQLExceptionpublic JdbcStatement(PreparedStatement ps, OrmHandler handler)
public String getAssignedValues()
public void close()
throws SQLException
SQLExceptionpublic void execute()
throws SQLException
SQLExceptionpublic int executeUpdate()
throws SQLException
SQLExceptionpublic ResultSet executeQuery() throws SQLException
SQLExceptionpublic void assignValues(OrmUjo bo) throws SQLException
SQLExceptionpublic void assignValues(List<? extends OrmUjo> bos, int idxFrom, int idxTo) throws SQLException
SQLExceptionpublic void assignValues(OrmUjo table, List<MetaColumn> columns) throws SQLException
SQLExceptionpublic final void assignValues(Query query) throws SQLException
SQLExceptionpublic void assignExtendedValues(Query query) throws SQLException
SQLExceptionpublic void assignValues(CriterionDecoder decoder) throws SQLException
SQLExceptionpublic void assignValue(OrmUjo table, MetaColumn column) throws SQLException
SQLExceptionpublic void assignValue(MetaColumn column, Object value, OrmUjo bo) throws SQLException
SQLExceptionpublic void assignValues(DbProcedure bo)
public void loadValues(DbProcedure bo)
protected void logValue(String textValue, Key property)
Copyright 2013, Pavel Ponec