|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectSqlFragment
SqlFragmentContainer
SqlStatement
public final class SqlStatement
Represents a fully parsed SQL statement. SqlStatements can be used to generated a java.sql.PreparedStatement.
| Field Summary |
|---|
| Fields inherited from class SqlFragmentContainer |
|---|
_children |
| Method Summary | |
|---|---|
PreparedStatement |
createPreparedStatement(ControlBeanContext context,
Connection connection,
Calendar calendar,
Method method,
Object[] arguments)
Generates the PreparedStatement the SQL statement. |
String |
createPreparedStatementString(ControlBeanContext context,
Connection connection,
Method method,
Object[] arguments)
Generates the PreparedStatement the SQL statement. |
boolean |
getsGeneratedKeys()
Does this statement return generatedKeys? |
boolean |
isBatchUpdate()
Does this statement do a batch update? |
boolean |
isCallableStatement()
Does this statement generate a callable or prepared statement? |
| Methods inherited from class SqlFragmentContainer |
|---|
toString |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean isCallableStatement()
public boolean isBatchUpdate()
public boolean getsGeneratedKeys()
public PreparedStatement createPreparedStatement(ControlBeanContext context,
Connection connection,
Calendar calendar,
Method method,
Object[] arguments)
throws SQLException
context - ControlBeanContext instance.connection - Connection to database.calendar - Calendar instance which can be used to resolve date/time values.method - Method the SQL is associated with.arguments - Method parameters.
SQLException - If PreparedStatement cannot be created.
public String createPreparedStatementString(ControlBeanContext context,
Connection connection,
Method method,
Object[] arguments)
context - ControlBeanContext instance.connection - Connection to database.method - Method the SQL is associated with.arguments - Method parameters.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||