|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.j256.ormlite.jdbc.JdbcPreparedStmt
public class JdbcPreparedStmt
Wrapper around a PreparedStatement object which we delegate to.
| Constructor Summary | |
|---|---|
JdbcPreparedStmt(PreparedStatement preparedStatement)
|
|
| 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 x,
int targetSqlType)
Set the parameter specified by the index and type to be an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcPreparedStmt(PreparedStatement preparedStatement)
| Method Detail |
|---|
public void close()
throws SQLException
PreparedStmt
close in interface PreparedStmtSQLException
public boolean execute()
throws SQLException
PreparedStmt
execute in interface PreparedStmtSQLException
public int getColumnCount()
throws SQLException
PreparedStmt
getColumnCount in interface PreparedStmtSQLException
public String getColumnName(int column)
throws SQLException
PreparedStmt
getColumnName in interface PreparedStmtcolumn - The first column is 1, the second is 2, ...
SQLException
public boolean getMoreResults()
throws SQLException
PreparedStmt
getMoreResults in interface PreparedStmtSQLException
public Results getResults()
throws SQLException
PreparedStmt
getResults in interface PreparedStmtSQLException
public SQLWarning getWarnings()
throws SQLException
PreparedStmt
getWarnings in interface PreparedStmtSQLException
public void setMaxRows(int max)
throws SQLException
PreparedStmt
setMaxRows in interface PreparedStmtSQLException
public void setNull(int parameterIndex,
int sqlType)
throws SQLException
PreparedStmt
setNull in interface PreparedStmtparameterIndex - Index of the parameter with 1 being the first parameter, etc..sqlType - SQL type of the parameter.
SQLException
public void setObject(int parameterIndex,
Object x,
int targetSqlType)
throws SQLException
PreparedStmt
setObject in interface PreparedStmtparameterIndex - Index of the parameter with 1 being the first parameter, etc..x - Object that we are setting.targetSqlType - SQL type of the parameter.
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||