com.sap.ip.me.api.persist.query
Interface JQueryResultBuilder


public interface JQueryResultBuilder

QueryResultBuilder is a callback interface to build a result object in query iterator from queried row attributes. This object is then returned to the user from query result iterator.

Author:
SAP

Method Summary
 java.lang.Object buildQueryResultObject(JQueryResultRow attributes)
          This method should process parameters and build one instance of query result object.
 void endProcessing()
          End processing of the query.
 void startProcessing(JQueryAttribute[] selectAttributes)
          Start processing of the query.
 

Method Detail

buildQueryResultObject

public java.lang.Object buildQueryResultObject(JQueryResultRow attributes)
This method should process parameters and build one instance of query result object.

Parameters:
attributes - attributes returned for this row.
Returns:
object to be returned by query iterator.

startProcessing

public void startProcessing(JQueryAttribute[] selectAttributes)
Start processing of the query. Called before first call to buildQueryResultObject(JQueryResultRow).

Parameters:
selectAttributes - attributes selected from the query.

endProcessing

public void endProcessing()
End processing of the query. Called after last call to buildQueryResultObject(JQueryResultRow) and before the query result is released.



Copyright © 2005 SAP AG. All Rights Reserved.