org.ofbiz.entity.jdbc
Class AbstractCursorHandler

java.lang.Object
  extended by org.ofbiz.entity.jdbc.AbstractCursorHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Direct Known Subclasses:
CursorConnection, CursorResultSet, CursorStatement

public abstract class AbstractCursorHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler


Field Summary
protected  java.lang.String cursorName
           
protected  int fetchSize
           
 
Constructor Summary
protected AbstractCursorHandler(java.lang.String cursorName, int fetchSize)
           
 
Method Summary
 java.lang.String getCursorName()
           
 int getFetchSize()
           
protected  java.lang.Object invoke(java.lang.Object obj, java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object... args)
           
protected static
<T> T
newHandler(java.lang.reflect.InvocationHandler handler, java.lang.Class<T> implClass)
           
 void setCursorName(java.lang.String cursorName)
           
 void setFetchSize(int fetchSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
 

Field Detail

cursorName

protected java.lang.String cursorName

fetchSize

protected int fetchSize
Constructor Detail

AbstractCursorHandler

protected AbstractCursorHandler(java.lang.String cursorName,
                                int fetchSize)
Method Detail

setCursorName

public void setCursorName(java.lang.String cursorName)

getCursorName

public java.lang.String getCursorName()

setFetchSize

public void setFetchSize(int fetchSize)

getFetchSize

public int getFetchSize()

invoke

protected java.lang.Object invoke(java.lang.Object obj,
                                  java.lang.Object proxy,
                                  java.lang.reflect.Method method,
                                  java.lang.Object... args)
                           throws java.lang.Throwable
Throws:
java.lang.Throwable

newHandler

protected static <T> T newHandler(java.lang.reflect.InvocationHandler handler,
                                  java.lang.Class<T> implClass)
                       throws java.lang.IllegalAccessException,
                              java.lang.IllegalArgumentException,
                              java.lang.InstantiationException,
                              java.lang.reflect.InvocationTargetException,
                              java.lang.NoSuchMethodException,
                              java.lang.SecurityException
Throws:
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.SecurityException