| java.lang.Object org.apache.beehive.controls.system.jdbc.parser.SqlFragment org.apache.beehive.controls.system.jdbc.parser.SqlFragmentContainer org.apache.beehive.controls.system.jdbc.parser.SqlStatement
SqlStatement | final public class SqlStatement extends SqlFragmentContainer implements Serializable(Code) | | Represents a fully parsed SQL statement. SqlStatements can be used to generated a java.sql.PreparedStatement.
|
Constructor Summary | |
| SqlStatement() Create a new SqlStatement. |
SqlStatement | SqlStatement()(Code) | | Create a new SqlStatement.
|
addChild | void addChild(SqlFragment frag)(Code) | | Append a SqlFragment to the end of this statement.
Parameters: frag - SqlFragment to append. |
createPreparedStatement | public PreparedStatement createPreparedStatement(ControlBeanContext context, Connection connection, Calendar calendar, Method method, Object[] arguments) throws SQLException(Code) | | Generates the PreparedStatement the SQL statement.
Parameters: context - ControlBeanContext instance. Parameters: connection - Connection to database. Parameters: calendar - Calendar instance which can be used to resolve date/time values. Parameters: method - Method the SQL is associated with. Parameters: arguments - Method parameters. The PreparedStatement generated by this statement. throws: SQLException - If PreparedStatement cannot be created. |
createPreparedStatementString | public String createPreparedStatementString(ControlBeanContext context, Connection connection, Method method, Object[] arguments)(Code) | | Generates the PreparedStatement the SQL statement.
Parameters: context - ControlBeanContext instance. Parameters: connection - Connection to database. Parameters: method - Method the SQL is associated with. Parameters: arguments - Method parameters. The PreparedStatement generated by this statement. |
getsGeneratedKeys | public boolean getsGeneratedKeys()(Code) | | Does this statement return generatedKeys?
true if getGeneratedKeys set to true. |
isBatchUpdate | public boolean isBatchUpdate()(Code) | | Does this statement do a batch update?
true if this statement should be executed as a batch update. |
isCacheable | boolean isCacheable()(Code) | | Can the PreparedStatement generated by this class be cached?
true if this statement can be cached by the SqlParser. |
isCallableStatement | public boolean isCallableStatement()(Code) | | Does this statement generate a callable or prepared statement?
true if this statement generates callable statement. |
|
|