|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for SQL statement-related activities.
Method Summary | |
void |
close() Closes this SQL statement. |
java.sql.ResultSet |
executeQuery() Executes this SQL statement |
int |
executeUpdate() Executes this SQL statement as an update |
void |
initialise() Initialise the SQL statement. |
void |
setConnection(java.sql.Connection connection) Set the connection for this SQL statement |
void |
setExpression(java.lang.String expression) Set the expression for this SQL statement |
void |
setParameters(ParameterList parameters) Set the parameters for this SQL statement |
Method Detail |
public void setConnection(java.sql.Connection connection)
connection
- JDBC connectionpublic void setExpression(java.lang.String expression)
expression
- SQL expressionpublic void setParameters(ParameterList parameters)
parameters
- List of parameterspublic void initialise() throws java.sql.SQLException
java.sql.SQLException
- If any problem occurs in the driver.public java.sql.ResultSet executeQuery() throws java.sql.SQLException, MissingParametersException, ParameterAccessException
ResultSet
or null
if there are no more parameters to process.java.sql.SQLException
- If any problem occurs in the driver.MissingParametersException
- If some of the parameters provided all their values yet others did not.ParameterAccessException
- If there is a problem when accessing a parameter value.public int executeUpdate() throws java.sql.SQLException, MissingParametersException, ParameterAccessException
java.sql.SQLException
- If any problem occurs in the driver.MissingParametersException
- If some of the parameters provided all their values yet others did not.ParameterAccessException
- If there is a problem when accessing a parameter value.public void close() throws java.sql.SQLException
java.sql.SQLException
- If any problem occurs in the driver.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |