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.CompiledStatement
SQLException
public String getColumnName(int column) throws SQLException
getColumnName
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public int runUpdate() throws SQLException
runUpdate
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public com.j256.ormlite.support.DatabaseResults runQuery(com.j256.ormlite.dao.ObjectCache objectCache) throws SQLException
runQuery
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public int runExecute() throws SQLException
runExecute
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public void close() throws SQLException
close
in interface AutoCloseable
SQLException
public void closeQuietly()
closeQuietly
in interface com.j256.ormlite.support.CompiledStatement
public void cancel() throws SQLException
cancel
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public void setObject(int parameterIndex, Object obj, com.j256.ormlite.field.SqlType sqlType) throws SQLException
setObject
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public void setMaxRows(int max) throws SQLException
setMaxRows
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public void setQueryTimeout(long millis) throws SQLException
setQueryTimeout
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public String getStatement()
getStatement
in interface com.j256.ormlite.support.CompiledStatement
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.