|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectContainerPolicy
org.eclipse.persistence.queries.CursorPolicy
public abstract class CursorPolicy
Purpose: Abstract class for all Cursor-related policy objects
Field Summary | |
---|---|
protected int |
pageSize
|
protected ReadQuery |
query
|
Constructor Summary | |
---|---|
CursorPolicy()
INTERNAL: default constructor |
|
CursorPolicy(ReadQuery query,
int pageSize)
INTERNAL: |
Method Summary | |
---|---|
ContainerPolicy |
clone(ReadQuery query)
INTERNAL: |
abstract java.lang.Object |
execute()
INTERNAL: Execute the cursored select and build the stream. |
int |
getPageSize()
Return the number of elements to be read into a cursored stream when more elements are needed from the database. |
ReadQuery |
getQuery()
INTERNAL: Return the query. |
boolean |
hasNext(java.lang.Object iterator)
INTERNAL: Return whether the iterator has more objects. |
boolean |
isCursorPolicy()
|
java.lang.Object |
iteratorFor(java.lang.Object container)
INTERNAL: Return an iterator for the given container. |
protected java.lang.Object |
next(java.lang.Object iterator)
INTERNAL: Return the next object on the queue. |
boolean |
overridesRead()
INTERNAL: This can be used by collection such as cursored stream to gain control over execution. |
void |
prepare(DatabaseQuery query,
AbstractSession session)
INTERNAL: Prepare and validate. |
abstract java.lang.Object |
remoteExecute()
INTERNAL: Execute the cursored select and build the stream. |
void |
setPageSize(int pageSize)
Set the number of elements to be read into a cursored stream when more elements are needed from the database. |
void |
setQuery(ReadQuery query)
INTERNAL: Set the query. |
int |
sizeFor(java.lang.Object container)
INTERNAL: Return the size of container. |
protected java.lang.Object |
toStringInfo()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int pageSize
protected ReadQuery query
Constructor Detail |
---|
public CursorPolicy()
public CursorPolicy(ReadQuery query, int pageSize)
Method Detail |
---|
public ContainerPolicy clone(ReadQuery query)
public abstract java.lang.Object execute()
public int getPageSize()
public ReadQuery getQuery()
public boolean hasNext(java.lang.Object iterator)
iterator
- java.lang.Object
public boolean isCursorPolicy()
public java.lang.Object iteratorFor(java.lang.Object container)
ContainerPolicy#hasNext(java.lang.Object)
,
ContainerPolicy#next(java.lang.Object)
protected java.lang.Object next(java.lang.Object iterator)
ContainerPolicy#iteratorFor(java.lang.Object)
public boolean overridesRead()
public void prepare(DatabaseQuery query, AbstractSession session) throws QueryException
QueryException
public abstract java.lang.Object remoteExecute()
public void setPageSize(int pageSize)
public void setQuery(ReadQuery query)
public int sizeFor(java.lang.Object container)
protected java.lang.Object toStringInfo()
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |