|
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.internal.queries.ContainerPolicy 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
|
Fields inherited from class org.eclipse.persistence.internal.queries.ContainerPolicy |
---|
constructor, defaultContainerClass, elementDescriptor |
Constructor Summary | |
---|---|
CursorPolicy()
INTERNAL: default constructor |
|
CursorPolicy(ReadQuery query,
int pageSize)
INTERNAL: |
Method Summary | |
---|---|
org.eclipse.persistence.internal.queries.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,
org.eclipse.persistence.internal.sessions.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 org.eclipse.persistence.internal.queries.ContainerPolicy |
---|
addAdditionalFieldsToQuery, addAll, addAll, addFieldsForMapKey, addInto, addInto, addInto, addInto, addInto, addIntoWithOrder, addIntoWithOrder, addIntoWithOrder, addNestedJoinsQueriesForMapKey, addNextValueFromIteratorInto, addToDeletedObjectsList, buildChangeSetForNewObjectInCollection, buildCloneForKey, buildCollectionEntry, buildContainerFromVector, buildDefaultPolicy, buildKey, buildKeyFromJoinedRow, buildPolicyFor, buildPolicyFor, buildSelectionQueryForDirectCollectionMapping, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadePerformRemoveIfRequired, cascadeRegisterNewIfRequired, clear, clone, cloneFor, collectObjectForNewCollection, compareCollectionsForChange, compareKeys, concatenateContainers, containerInstance, containerInstance, contains, contains, containsKey, convertClassNamesToClasses, copyMapDataToRow, createChangeSetForKeys, createWrappedObjectFromExistingWrappedObject, deleteWrappedObject, equals, getAdditionalTablesForJoinQuery, getAllFieldsForMapKey, getChangeValuesFrom, getCloneDataFromChangeSet, getConstructor, getContainerClass, getContainerClassName, getDefaultContainerClass, getDescriptorForMapKey, getElementDescriptor, getIdentityFieldsForMapKey, getKeyMappingDataForWriteQuery, getKeySelectionCriteria, getKeyType, hasElementDescriptor, hasOrder, initialize, initializeConstructor, isCollectionPolicy, isCursoredStreamPolicy, isDirectMapPolicy, isEmpty, isListPolicy, isMappedKeyMapPolicy, isMapPolicy, isOrderedListPolicy, isScrollableCursorPolicy, isValidContainer, isValidContainerType, iterateOnMapKey, keyFrom, keyFromEntry, keyFromIterator, mergeCascadeParts, mergeChanges, next, nextEntry, nextEntry, postCalculateChanges, postCalculateChanges, postInitialize, prepareForExecution, processAdditionalWritableMapKeyFields, propagatesEventsToCollection, propogatePostDelete, propogatePostInsert, propogatePostUpdate, propogatePreDelete, propogatePreInsert, propogatePreUpdate, recordAddToCollectionInChangeRecord, recordPrivateOwnedRemovals, recordRemoveFromCollectionInChangeRecord, recordUpdateToCollectionInChangeRecord, removeAllElements, removeFrom, removeFrom, removeFrom, removeFromWithOrder, requiresDataModificationEvents, setConstructor, setContainerClass, setContainerClassName, setDefaultContainerClass, setElementDescriptor, setKeyName, setKeyName, shouldAddAll, shouldIncludeKeyInDeleteEvent, shouldUpdateForeignKeysPostInsert, toString, unwrapElement, unwrapIteratorResult, updateJoinedMappingIndexesForMapKey, validateElementAndRehashIfRequired, vectorFor |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int pageSize
protected ReadQuery query
Constructor Detail |
---|
public CursorPolicy()
public CursorPolicy(ReadQuery query, int pageSize)
Method Detail |
---|
public org.eclipse.persistence.internal.queries.ContainerPolicy clone(ReadQuery query)
clone
in class org.eclipse.persistence.internal.queries.ContainerPolicy
public abstract java.lang.Object execute()
execute
in class org.eclipse.persistence.internal.queries.ContainerPolicy
public int getPageSize()
public ReadQuery getQuery()
public boolean hasNext(java.lang.Object iterator)
hasNext
in class org.eclipse.persistence.internal.queries.ContainerPolicy
iterator
- java.lang.Object
public boolean isCursorPolicy()
isCursorPolicy
in class org.eclipse.persistence.internal.queries.ContainerPolicy
public java.lang.Object iteratorFor(java.lang.Object container)
iteratorFor
in class org.eclipse.persistence.internal.queries.ContainerPolicy
ContainerPolicy.hasNext(java.lang.Object)
,
ContainerPolicy.next(java.lang.Object)
protected java.lang.Object next(java.lang.Object iterator)
next
in class org.eclipse.persistence.internal.queries.ContainerPolicy
ContainerPolicy.iteratorFor(java.lang.Object)
public boolean overridesRead()
overridesRead
in class org.eclipse.persistence.internal.queries.ContainerPolicy
public void prepare(DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session) throws QueryException
prepare
in class org.eclipse.persistence.internal.queries.ContainerPolicy
QueryException
public abstract java.lang.Object remoteExecute()
remoteExecute
in class org.eclipse.persistence.internal.queries.ContainerPolicy
public void setPageSize(int pageSize)
public void setQuery(ReadQuery query)
public int sizeFor(java.lang.Object container)
sizeFor
in class org.eclipse.persistence.internal.queries.ContainerPolicy
protected java.lang.Object toStringInfo()
toStringInfo
in class org.eclipse.persistence.internal.queries.ContainerPolicy
|
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |