org.ofbiz.entity.jdbc
Class CursorResultSet

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

public class CursorResultSet
extends AbstractCursorHandler


Field Summary
protected  java.lang.String query
           
protected  java.sql.ResultSet rs
           
protected  java.sql.Statement stmt
           
 
Fields inherited from class org.ofbiz.entity.jdbc.AbstractCursorHandler
cursorName, fetchSize
 
Constructor Summary
protected CursorResultSet(java.sql.Statement stmt, java.lang.String cursorName, int fetchSize)
           
 
Method Summary
protected  void close()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
static java.sql.ResultSet newCursorResultSet(java.sql.Statement stmt, java.lang.String cursorName, int fetchSize)
           
protected  boolean next()
           
 
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

rs

protected java.sql.ResultSet rs

stmt

protected java.sql.Statement stmt

query

protected java.lang.String query
Constructor Detail

CursorResultSet

protected CursorResultSet(java.sql.Statement stmt,
                          java.lang.String cursorName,
                          int fetchSize)
                   throws java.sql.SQLException
Throws:
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

next

protected boolean next()
                throws java.sql.SQLException
Throws:
java.sql.SQLException

close

protected void close()
              throws java.sql.SQLException
Throws:
java.sql.SQLException

newCursorResultSet

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