|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompiledStatement
An internal reduction of the SQL PreparedStatment so we can implement its functionality outside of JDBC.
Method Summary | |
---|---|
void |
close()
Close the statement. |
int |
getColumnCount()
Returns the number of columns in this statement. |
String |
getColumnName(int columnIndex)
Get the designated column's name. |
int |
runExecute()
Run the prepared execute statement returning the number of rows affected. |
DatabaseResults |
runQuery(ObjectCache objectCache)
Run the prepared query statement returning the results. |
int |
runUpdate()
Run the prepared update statement returning the number of rows affected. |
void |
setMaxRows(int max)
Set the number of rows to return in the results. |
void |
setObject(int parameterIndex,
Object obj,
SqlType sqlType)
Set the parameter specified by the index and type to be an object. |
Method Detail |
---|
int getColumnCount() throws SQLException
SQLException
String getColumnName(int columnIndex) throws SQLException
SQLException
int runUpdate() throws SQLException
SQLException
DatabaseResults runQuery(ObjectCache objectCache) throws SQLException
SQLException
int runExecute() throws SQLException
SQLException
void close() throws SQLException
SQLException
void setObject(int parameterIndex, Object obj, SqlType sqlType) throws SQLException
parameterIndex
- Index of the parameter with 0 being the first parameter, etc..obj
- Object that we are setting. Can be null.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 |