|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PreparedStmt
A reduction of the SQL PreparedStatment so we can implement its functionality outside of JDBC.
| Method Summary | |
|---|---|
void |
close()
Close the statement. |
boolean |
execute()
Execute the prepared statement returning true if it worked. |
int |
getColumnCount()
Returns the number of columns in this statement. |
String |
getColumnName(int column)
Get the designated column's name. |
boolean |
getMoreResults()
Put more results in the results object. |
Results |
getResults()
Get our results object generated by the statement. |
SQLWarning |
getWarnings()
Return any warnings generated by the statement. |
void |
setMaxRows(int max)
Set the number of rows to return in the results. |
void |
setNull(int parameterIndex,
int sqlType)
Set the parameter specified by the index and type to be null. |
void |
setObject(int parameterIndex,
Object obj,
int sqlType)
Set the parameter specified by the index and type to be an object. |
| Method Detail |
|---|
int getColumnCount()
throws SQLException
SQLException
String getColumnName(int column)
throws SQLException
column - The first column is 1, the second is 2, ...
SQLException
boolean execute()
throws SQLException
SQLException
SQLWarning getWarnings()
throws SQLException
SQLException
Results getResults()
throws SQLException
SQLException
boolean getMoreResults()
throws SQLException
SQLException
void close()
throws SQLException
SQLException
void setNull(int parameterIndex,
int sqlType)
throws SQLException
parameterIndex - Index of the parameter with 1 being the first parameter, etc..sqlType - SQL type of the parameter.
SQLException
void setObject(int parameterIndex,
Object obj,
int sqlType)
throws SQLException
parameterIndex - Index of the parameter with 1 being the first parameter, etc..obj - Object that we are setting.sqlType - SQL type of the parameter.
SQLException
void setMaxRows(int max)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||