com.j256.ormlite.jdbc
Class JdbcCompiledStatement

java.lang.Object
  extended by 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

Constructor Summary
JdbcCompiledStatement(PreparedStatement preparedStatement, com.j256.ormlite.stmt.StatementBuilder.StatementType type)
           
 
Method Summary
 void close()
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcCompiledStatement

public JdbcCompiledStatement(PreparedStatement preparedStatement,
                             com.j256.ormlite.stmt.StatementBuilder.StatementType type)
Method Detail

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

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


This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.