|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SIFEventIterator
For the publisher to be able to deal with large amounts of data it must implement this interface if the publisher broadcasts events. The general idea is that the constructor if the implementation retrieves the data in a manner that it can be iterated and retrieve record by record into memory and returns them as part of the getNextEvent() 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 | |
---|---|
SIFEvent |
getNextEvent(BaseInfo baseInfo,
openadk.library.tools.mapping.MappingsContext mappingCtx)
This method returns the next available SIF Event. |
boolean |
hasNext()
Returns TRUE if there are more SIF Events available. |
void |
releaseResources()
To be able to retrieve SIF Events one by one there might be the need to allocate some resources in the class that implements this interface. |
Method Detail |
---|
SIFEvent getNextEvent(BaseInfo baseInfo, openadk.library.tools.mapping.MappingsContext mappingCtx) throws openadk.library.tools.mapping.ADKMappingException
baseInfo
- The base info object of the given publisher. This allows the getNextEvent() method
to access important properties and values of the publisher if it is needed.mappingCtx
- The mapping info that can be used if mapping is available. Note that 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). The mappingCtx is for
outbound mappings as expected since it is publisher that will use the mapping.
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 |