16.10.2015 Views

Getting Startedwith pureQuery

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

312<br />

<strong>Getting</strong> Started with <strong>pureQuery</strong><br />

9. E<br />

10. com.ibm.pdq.runtime.handlers.CallHandlerWithParameters<br />

Chapter 13<br />

1. Write an implementation of the interface<br />

com.ibm.pdq.runtime.handlers.ParameterHandler, and specify it to the<br />

inline or annotated method.<br />

2. A and D.<br />

3. Write an implementation of the interface<br />

com.ibm.pdq.runtime.handlers.ResultHandler or of the interface<br />

com.ibm.pdq.runtime.handlers.RowHandler. Specify the<br />

implementation class to the inline or annotated method.<br />

4. The type parameter RES indicates the return type of the handle method.<br />

5. B.<br />

6. com.ibm.pdq.runtime.handlers.RowHandler implementations use<br />

the ROW object parameter when updating <strong>pureQuery</strong> beans with the values of<br />

generated keys. <strong>pureQuery</strong> passes the first parameter of the annotated method as<br />

object. The handle method must update object with the new values. object<br />

must be a <strong>pureQuery</strong> bean.<br />

7. Write an implementation of the interface<br />

com.ibm.pdq.runtime.handlers.CallHandlerWithParameters in<br />

which the handleCall method creates an object containing the query results.<br />

8. C.<br />

9. B and C.<br />

10. C.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!