er.extensions
Class ERXBatchingDisplayGroup
java.lang.Object
com.webobjects.appserver.WODisplayGroup
er.extensions.ERXBatchingDisplayGroup
- All Implemented Interfaces:
- EOKeyValueArchiving, EOKeyValueArchiving.Awaking, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, Serializable
- public class ERXBatchingDisplayGroup
- extends WODisplayGroup
Extends WODisplayGroup
in order to provide real batching.
This is done by adding database specific code to the select statement
from the EOFetchSpecification
from the WODisplayGroup
's
EODataSource
which must be an EODatabaseDataSource
.
- See Also:
- Serialized Form
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
Methods inherited from class com.webobjects.appserver.WODisplayGroup |
_beginObserverNotification, _deleteObject, _insertObjectAtIndex, _lastObserverNotified, allObjects, allQualifierOperators, awakeFromKeyValueUnarchiver, clearSelection, currentBatchIndex, dataSource, decodeWithKeyValueUnarchiver, defaultStringMatchFormat, defaultStringMatchOperator, delegate, delete, deleteObjectAtIndex, deleteSelection, detailKey, displayBatchContainingSelectedObject, displayNextBatch, displayPreviousBatch, dispose, editingContextPresentErrorMessage, encodeWithCoder, encodeWithKeyValueArchiver, endEditing, fetch, fetchesOnLoad, finishInitialization, globalDefaultForValidatesChangesImmediately, globalDefaultStringMatchFormat, globalDefaultStringMatchOperator, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasDetailDataSource, hasMultipleBatches, indexOfFirstDisplayedObject, indexOfLastDisplayedObject, initWithCoder, inQueryMode, insert, insertedObjectDefaultValues, insertNewObjectAtIndex, insertObjectAtIndex, localKeys, masterObject, numberOfObjectsPerBatch, objectsChangedInEditingContext, objectsInvalidatedInEditingContext, qualifier, qualifierFromQueryValues, qualifyDataSource, qualifyDisplayGroup, queryBindings, queryMatch, queryMax, queryMin, queryOperator, relationalQualifierOperators, selectedObject, selectedObjects, selectionIndexes, selectNext, selectObject, selectObjectsIdenticalTo, selectObjectsIdenticalToSelectFirstOnNoMatch, selectPrevious, selectsFirstObjectAfterFetch, setDefaultStringMatchFormat, setDefaultStringMatchOperator, setDelegate, setDetailKey, setFetchesOnLoad, setGlobalDefaultForValidatesChangesImmediately, setGlobalDefaultStringMatchFormat, setGlobalDefaultStringMatchOperator, setInQueryMode, setInsertedObjectDefaultValues, setLocalKeys, setMasterObject, setNumberOfObjectsPerBatch, setObjectArray, setQualifier, setSelectedObject, setSelectedObjects, setSelectionIndexes, setSelectsFirstObjectAfterFetch, setSortOrderings, setValidatesChangesImmediately, sortOrderings, stringQualifierOperators, takeValueForKey, toString, unableToSetNullForKey, undoManager, updateDisplayedObjects, validatesChangesImmediately, valueForKey, willChange |
_rowCount
protected int _rowCount
- total number of rows
_displayedObjects
protected NSArray _displayedObjects
- cache for the displayed objects
_isBatching
protected Boolean _isBatching
ERXBatchingDisplayGroup
public ERXBatchingDisplayGroup()
setIsBatching
public void setIsBatching(boolean value)
isBatching
public boolean isBatching()
- Determines if batching is possible.
- Returns:
- true if dataSource is an instance of EODatabaseDataSource
setDataSource
public void setDataSource(EODataSource eodatasource)
batchCount
public int batchCount()
- Overridden in order to use a custom method which determines the number of Objects / rows
for the existing EODatabaseDataSource.
- Returns:
- the number of rows from the EODatabaseDataSource
rowCount
public int rowCount()
- Returns the number of rows from the
EODatabaseDataSource
.
- Returns:
- the number of rows from the
EODatabaseDataSource
databaseDataSource
public EODatabaseDataSource databaseDataSource()
redisplay
public void redisplay()
setCurrentBatchIndex
public void setCurrentBatchIndex(int index)
displayedObjects
public NSArray displayedObjects()
- Overridden method in order to fetch -only- the rows that are needed. This is
different to the editors methods because a
WODisplayGroup
would always fetch
from the start until the end of the objects from the fetch limit.
- Returns:
- the objects that should be diplayed.
Copyright © 2002 – 2004 Project Wonder.