org.ofbiz.entity.jdbc
Class CursorStatement

java.lang.Object
  extended by org.ofbiz.entity.jdbc.AbstractCursorHandler
      extended by org.ofbiz.entity.jdbc.CursorStatement
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class CursorStatement
extends AbstractCursorHandler


Field Summary
protected  boolean autoCommit
           
protected  boolean beganTransaction
           
protected  java.sql.ResultSet currentResultSet
           
protected  java.sql.Statement stmt
           
 
Fields inherited from class org.ofbiz.entity.jdbc.AbstractCursorHandler
cursorName, fetchSize
 
Constructor Summary
protected CursorStatement(java.sql.Statement stmt, java.lang.String cursorName, int fetchSize)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
static java.sql.PreparedStatement newCursorPreparedStatement(java.sql.PreparedStatement pstmt, java.lang.String cursorName, int fetchSize)
           
static java.sql.Statement newCursorStatement(java.sql.Statement stmt, java.lang.String cursorName, int fetchSize)
           
 
Methods inherited from class org.ofbiz.entity.jdbc.AbstractCursorHandler
getCursorName, getFetchSize, invoke, newHandler, setCursorName, setFetchSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentResultSet

protected java.sql.ResultSet currentResultSet

stmt

protected java.sql.Statement stmt

beganTransaction

protected boolean beganTransaction

autoCommit

protected boolean autoCommit
Constructor Detail

CursorStatement

protected CursorStatement(java.sql.Statement stmt,
                          java.lang.String cursorName,
                          int fetchSize)
                   throws GenericTransactionException,
                          java.sql.SQLException
Throws:
GenericTransactionException
java.sql.SQLException
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Throws:
java.lang.Throwable

newCursorStatement

public static java.sql.Statement newCursorStatement(java.sql.Statement stmt,
                                                    java.lang.String cursorName,
                                                    int fetchSize)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

newCursorPreparedStatement

public static java.sql.PreparedStatement newCursorPreparedStatement(java.sql.PreparedStatement pstmt,
                                                                    java.lang.String cursorName,
                                                                    int fetchSize)
                                                             throws java.lang.Exception
Throws:
java.lang.Exception