|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SIFResponseIterator
For the publisher to be able to deal with large amounts of data it must implement this interface if the publisher responds to SIF requests from subscribers. The general idea is that the constructor if the implementation retrieves the data in a manner that it can be iterated and load record by record into memory and returns them as part of the getNextSIFObject() method. This could be through SQL result sets, cursors or any other means of retrieving large data amounts in a sequential manner rather than loading the entire data amount in memory and then return them all in one call.
Method Summary | |
---|---|
openadk.library.SIFDataObject |
getNextSIFObject(BaseInfo baseInfo,
MappingInfo mappingInfo)
This method returns the next available SIF Object. |
boolean |
hasNext()
Returns TRUE if there are more SIF Objects available. |
void |
releaseResources()
To be able to retrieve SIF Objects one by one there might be the need to allocate some resources in the class that implements this interface. |
Method Detail |
---|
openadk.library.SIFDataObject getNextSIFObject(BaseInfo baseInfo, MappingInfo mappingInfo) throws openadk.library.tools.mapping.ADKMappingException
baseInfo
- The base info object of the given publisher. This allows the getNextSIFObject() method
to access important properties and values of the publisher if it is needed.mappingInfo
- The mapping info that can be used if mapping is available. Note that property
mappingCtx of this parameter can be null if there is no mapping available
for the given publisher and its SIF Object it deals with (ie. No mapping for
StudentPersonal).
openadk.library.tools.mapping.ADKMappingException
- if mapping is used and there is an issue with the mapping.boolean hasNext()
void releaseResources()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |