|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.businessobjects.customds.AbstractCustomDataProvider
public abstract class AbstractCustomDataProvider
AbstractCustomDataProvider is an abstract implementation class for CustomDataProvider.
This class provides default implementation for few methods in CustomDataProvider. Methods
that require plug-in specific implementation must be implemented by plug-in developers.
| Constructor Summary | |
|---|---|
AbstractCustomDataProvider()
|
|
| Method Summary | |
|---|---|
void |
cancel(int iterId)
Default empty implementation. |
void |
closeIterator(int iterId)
Removes the IteratorInfo object with the specified iterator ID from the iterator collection. |
void |
openIterator(IteratorInfo iteratorInfo,
ColumnSpec[] columnSpecs)
Stores the complete IteratorInfo information in the iterator collection. |
void |
setChunkSize(int iterId,
int chunkSize)
Sets the internal data chunk size value to the value specified by chunkSize. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.businessobjects.customds.CustomDataProvider |
|---|
getNextChunk, hasNextChunk |
| Constructor Detail |
|---|
public AbstractCustomDataProvider()
| Method Detail |
|---|
public void cancel(int iterId)
cancel in interface CustomDataProvideriterId - The iterator ID.CustomDataProvider.cancel(int)public void closeIterator(int iterId)
IteratorInfo object with the specified iterator ID from the iterator collection.
Sub-classes can access the iterator ID through the member variable iterators.
closeIterator in interface CustomDataProvideriterId - The iterator ID.CustomDataProvider.closeIterator(int),
IteratorInfo
public void openIterator(IteratorInfo iteratorInfo,
ColumnSpec[] columnSpecs)
throws DataSourceException
IteratorInfo information in the iterator collection.
Sub-classes can access this information through the member variable iterators.
This method also sets the IteratorInfo.isRowCountBased property to false.
openIterator in interface CustomDataProvideriteratorInfo - The iterator information.columnSpecs - An array of ColumnSpec containing the information about objects used for data provider creation.
DataSourceException - if the plug-in encounters any Exception while preparing itself to provide
data. Plug-in must mask handled exceptions as DataSourceException by using one of its constructors.CustomDataProvider.openIterator(com.businessobjects.customds.common.IteratorInfo, com.businessobjects.customds.common.ColumnSpec[]),
IteratorInfo,
ColumnSpec,
DataSourceException
public void setChunkSize(int iterId,
int chunkSize)
throws DataSourceException
chunkSize.
Sub-classes can access this information through the member variable chunkSize.
The chunk size is similar for all Data Iterators. Hence, the chunk size is not linked with the individual IteratorInfo object.
setChunkSize in interface CustomDataProvideriterId - The Data Iterator IDchunkSize - The chunk size set by the Framework.
DataSourceException - if the plug-in encounters any Exception while trying to set the chunk size.
Plug-in must mask handled exceptions as DataSourceException by using one of its constructors.CustomDataProvider.setChunkSize(int, int),
IteratorInfo,
DataSourceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||