Purpose: Abstract class for all Cursor-related policy objects
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected ReadQuery |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public ContainerPolicy | clone(ReadQuery query)
Overrides org. |
| public CollectionChangeEvent | createChangeEvent(Object collectionOwner, String propertyName, Object collectionChanged, Object elementChanged, int changeType, Integer index, boolean isChangeApplied)
Implements abstract org. |
| public abstract Object | execute()
Overrides org. |
| public int | getPageSize()
Return the number of elements to be read into a cursored stream when more elements are needed from the database. |
| public ReadQuery | |
| public boolean | Returns: boolean true if iterator has more objectsjava.lang.Object iterator)Implements abstract org. Implements org. |
| public boolean | |
| public Object | iteratorFor(Object container)
Implements abstract org. Implements org. |
| protected Object | next(Object iterator)
Implements abstract org. |
| public boolean | overridesRead()
Overrides org. |
| public void | prepare(DatabaseQuery query, AbstractSession session)
Overrides org. |
| public abstract Object | remoteExecute()
Overrides org. |
| public void | setPageSize(int pageSize)
Set the number of elements to be read into a cursored stream when more elements are needed from the database. |
| public void | |
| public int | sizeFor(Object container)
Overrides org. Implements org. |
| protected Object |
| pageSize | back to summary |
|---|---|
| protected int pageSize | |
| query | back to summary |
|---|---|
| protected ReadQuery query | |
| CursorPolicy | back to summary |
|---|---|
| protected CursorPolicy() INTERNAL: default constructor | |
| CursorPolicy | back to summary |
|---|---|
| protected CursorPolicy(ReadQuery query, int pageSize) INTERNAL: | |
| clone | back to summary |
|---|---|
| public ContainerPolicy clone(ReadQuery query) Overrides org. INTERNAL:
| |
| createChangeEvent | back to summary |
|---|---|
| public CollectionChangeEvent createChangeEvent(Object collectionOwner, String propertyName, Object collectionChanged, Object elementChanged, int changeType, Integer index, boolean isChangeApplied) Implements abstract org. INTERNAL: Creates a CollectionChangeEvent for the container
| |
| execute | back to summary |
|---|---|
| public abstract Object execute() Overrides org. INTERNAL: Execute the cursored select and build the stream.
| |
| getPageSize | back to summary |
|---|---|
| public int getPageSize() Return the number of elements to be read into a cursored stream when more elements are needed from the database. | |
| getQuery | back to summary |
|---|---|
| public ReadQuery getQuery() INTERNAL: Return the query. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext(Object iterator) Implements abstract org. Implements org. INTERNAL: Return whether the iterator has more objects. | |
| isCursorPolicy | back to summary |
|---|---|
| public boolean isCursorPolicy() Overrides org.
| |
| iteratorFor | back to summary |
|---|---|
| public Object iteratorFor(Object container) Implements abstract org. Implements org. INTERNAL: Return an iterator for the given container. This iterator can then be used as a parameter to #hasNext() and #next().
| |
| next | back to summary |
|---|---|
| protected Object next(Object iterator) Implements abstract org. INTERNAL: Return the next object on the queue. The iterator is the one returned from #iteratorFor().
| |
| overridesRead | back to summary |
|---|---|
| public boolean overridesRead() Overrides org. INTERNAL: This can be used by collection such as cursored stream to gain control over execution.
| |
| prepare | back to summary |
|---|---|
| public void prepare(DatabaseQuery query, AbstractSession session) throws QueryException Overrides org. INTERNAL: Prepare and validate.
| |
| remoteExecute | back to summary |
|---|---|
| public abstract Object remoteExecute() Overrides org. INTERNAL: Execute the cursored select and build the stream.
| |
| setPageSize | back to summary |
|---|---|
| public void setPageSize(int pageSize) Set the number of elements to be read into a cursored stream when more elements are needed from the database. | |
| setQuery | back to summary |
|---|---|
| public void setQuery(ReadQuery query) INTERNAL: Set the query. | |
| sizeFor | back to summary |
|---|---|
| public int sizeFor(Object container) Overrides org. Implements org. INTERNAL: Return the size of container.
| |
| toStringInfo | back to summary |
|---|---|
| protected Object toStringInfo() Overrides org.
| |