com.j256.ormlite.jdbc
Class JdbcCompiledStatement
java.lang.Object
com.j256.ormlite.jdbc.JdbcCompiledStatement
- All Implemented Interfaces:
- com.j256.ormlite.support.CompiledStatement
public class JdbcCompiledStatement
- extends Object
- implements com.j256.ormlite.support.CompiledStatement
Wrapper around a PreparedStatement
object which we delegate to.
- Author:
- graywatson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcCompiledStatement
public JdbcCompiledStatement(PreparedStatement preparedStatement,
com.j256.ormlite.stmt.StatementBuilder.StatementType type)
getColumnCount
public int getColumnCount()
throws SQLException
- Specified by:
getColumnCount
in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
getColumnName
public String getColumnName(int column)
throws SQLException
- Specified by:
getColumnName
in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
runUpdate
public int runUpdate()
throws SQLException
- Specified by:
runUpdate
in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
runQuery
public com.j256.ormlite.support.DatabaseResults runQuery(com.j256.ormlite.dao.ObjectCache objectCache)
throws SQLException
- Specified by:
runQuery
in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
runExecute
public int runExecute()
throws SQLException
- Specified by:
runExecute
in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
close
public void close()
throws SQLException
- Specified by:
close
in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
closeQuietly
public void closeQuietly()
- Specified by:
closeQuietly
in interface com.j256.ormlite.support.CompiledStatement
setObject
public void setObject(int parameterIndex,
Object obj,
com.j256.ormlite.field.SqlType sqlType)
throws SQLException
- Specified by:
setObject
in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
setMaxRows
public void setMaxRows(int max)
throws SQLException
- Specified by:
setMaxRows
in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
setQueryTimeout
public void setQueryTimeout(long millis)
throws SQLException
- Specified by:
setQueryTimeout
in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.