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;
10:
11: import com.completex.objective.components.persistency.core.impl.AbstractResultSetWrapper;
12: import com.completex.objective.components.persistency.core.impl.PreparedStatementWrapper;
13:
14: /**
15: * @author Gennady Krizhevsky
16: */
17: public interface QueryManager {
18:
19: /**
20: * Closes query
21: *
22: * @throws OdalPersistencyException
23: */
24: void close() throws OdalPersistencyException;
25:
26: /**
27: * Sets PreparedStatementWrapper
28: *
29: * @see PreparedStatementWrapper
30: * @param statementWrapper
31: */
32: void setStatementWrapper(PreparedStatementWrapper statementWrapper);
33:
34: /**
35: * Returns PreparedStatementWrapper
36: *
37: * @return PreparedStatementWrapper
38: */
39: PreparedStatementWrapper getStatementWrapper();
40:
41: /**
42: * Sets number of retrieved records
43: *
44: * @param retrievedCount number of retrieved records
45: */
46: void setRetrievedCount(int retrievedCount);
47:
48: /**
49: * Returns number of retrieved records
50: *
51: * @return number of retrieved records
52: */
53: int getRetrievedCount();
54:
55: /**
56: * Sets result set wrapper
57: *
58: * @see AbstractResultSetWrapper
59: * @param resultSetWrapper result set wrapper
60: */
61: void setResultSetWrapper(AbstractResultSetWrapper resultSetWrapper);
62:
63: /**
64: * Returns result set wrapper
65: *
66: * @return number of retrieved records
67: */
68: AbstractResultSetWrapper getResultSetWrapper();
69:
70: /**
71: * Sets state
72: *
73: * @see BasicQuery
74: * @param state one of BasicQuery.STATE_XXX constants
75: */
76: void setState(int state);
77:
78: /**
79: * Returns state - one of BasicQuery.STATE_XXX constants
80: *
81: * @return state - one of BasicQuery.STATE_XXX constants
82: */
83: int getState();
84:
85: }
|