public class JdbcCompiledStatement extends Object implements com.j256.ormlite.support.CompiledStatement
PreparedStatement object which we delegate to.| Constructor and Description |
|---|
JdbcCompiledStatement(PreparedStatement preparedStatement,
String statement,
com.j256.ormlite.stmt.StatementBuilder.StatementType type,
boolean cacheStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close() |
void |
closeQuietly() |
int |
getColumnCount() |
String |
getColumnName(int column) |
String |
getStatement() |
int |
runExecute() |
com.j256.ormlite.support.DatabaseResults |
runQuery(com.j256.ormlite.dao.ObjectCache objectCache) |
int |
runUpdate() |
void |
setMaxRows(int max) |
void |
setObject(int parameterIndex,
Object obj,
com.j256.ormlite.field.SqlType sqlType) |
void |
setQueryTimeout(long millis) |
String |
toString() |
public JdbcCompiledStatement(PreparedStatement preparedStatement, String statement, com.j256.ormlite.stmt.StatementBuilder.StatementType type, boolean cacheStore)
public int getColumnCount()
throws SQLException
getColumnCount in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic String getColumnName(int column) throws SQLException
getColumnName in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic int runUpdate()
throws SQLException
runUpdate in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic com.j256.ormlite.support.DatabaseResults runQuery(com.j256.ormlite.dao.ObjectCache objectCache)
throws SQLException
runQuery in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic int runExecute()
throws SQLException
runExecute in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableSQLExceptionpublic void closeQuietly()
closeQuietly in interface com.j256.ormlite.support.CompiledStatementpublic void cancel()
throws SQLException
cancel in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic void setObject(int parameterIndex,
Object obj,
com.j256.ormlite.field.SqlType sqlType)
throws SQLException
setObject in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic void setMaxRows(int max)
throws SQLException
setMaxRows in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic void setQueryTimeout(long millis)
throws SQLException
setQueryTimeout in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic String getStatement()
getStatement in interface com.j256.ormlite.support.CompiledStatementThis documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.