Package org.apache.ofbiz.entity.jdbc
Class AbstractCursorHandler
java.lang.Object
org.apache.ofbiz.entity.jdbc.AbstractCursorHandler
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
CursorConnection
,CursorResultSet
,CursorStatement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets cursor name.int
Gets fetch size.protected Object
Invoke object.protected static <T> T
newHandler
(InvocationHandler handler, Class<T> implClass) void
setCursorName
(String cursorName) Sets cursor name.void
setFetchSize
(int fetchSize) Sets fetch size.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
-
Constructor Details
-
AbstractCursorHandler
-
-
Method Details
-
setCursorName
Sets cursor name.- Parameters:
cursorName
- the cursor name
-
getCursorName
Gets cursor name.- Returns:
- the cursor name
-
setFetchSize
public void setFetchSize(int fetchSize) Sets fetch size.- Parameters:
fetchSize
- the fetch size
-
getFetchSize
public int getFetchSize()Gets fetch size.- Returns:
- the fetch size
-
invoke
Invoke object.- Parameters:
obj
- the objproxy
- the proxymethod
- the methodargs
- the args- Returns:
- the object
- Throws:
Throwable
- the throwable
-
newHandler
protected static <T> T newHandler(InvocationHandler handler, Class<T> implClass) throws IllegalAccessException, IllegalArgumentException, InstantiationException, InvocationTargetException, NoSuchMethodException, SecurityException
-