01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.persistency.core;
10:
11: import com.completex.objective.components.persistency.DelegatingPersistentObjectFactory;
12: import com.completex.objective.components.persistency.LifeCycleController;
13: import com.completex.objective.components.persistency.OdalPersistencyException;
14: import com.completex.objective.components.persistency.ResultableQuery;
15: import com.completex.objective.components.persistency.transact.Transaction;
16:
17: import java.sql.ResultSet;
18: import java.util.Collection;
19:
20: /**
21: * @author Gennady Krizhevsky
22: */
23: public interface RetrieveController {
24: /**
25: * Retrieves results from the resultSet using poFactory to instatiate the objects
26: * and adds them to the result collections
27: *
28: * @param transaction
29: * @param query
30: * @param poFactory
31: * @param result
32: * @param resultSet
33: * @param controller
34: * @throws OdalPersistencyException
35: */
36: void retrievePersistentObject(Transaction transaction,
37: ResultableQuery query,
38: DelegatingPersistentObjectFactory poFactory,
39: Collection result, ResultSet resultSet,
40: LifeCycleController controller)
41: throws OdalPersistencyException;
42: }
|