01: /*
02: * Copyright 2006 Luca Garulli (luca.garulli@assetdata.it)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.romaframework.aspect.persistence;
18:
19: import java.util.List;
20:
21: public class Query {
22: public byte getStrategy() {
23: return retrievingMode;
24: }
25:
26: public void setStrategy(byte retrievingMode) {
27: this .retrievingMode = retrievingMode;
28: }
29:
30: public List getResult() {
31: return result;
32: }
33:
34: public void setResult(List result) {
35: this .result = result;
36: }
37:
38: public void setRangeFrom(int iRangeFrom, int iRangeTo) {
39: rangeFrom = iRangeFrom;
40: rangeTo = iRangeTo;
41: }
42:
43: public int getRangeFrom() {
44: return rangeFrom;
45: }
46:
47: public int getRangeTo() {
48: return rangeTo;
49: }
50:
51: public int getTotalItems() {
52: return totalItems;
53: }
54:
55: public void setTotalItems(int totalItems) {
56: this .totalItems = totalItems;
57: }
58:
59: public boolean isSubClasses() {
60: return subClasses;
61: }
62:
63: public void setSubClasses(boolean subClasses) {
64: this .subClasses = subClasses;
65: }
66:
67: public String getMode() {
68: return mode;
69: }
70:
71: public void setMode(String mode) {
72: this .mode = mode;
73: }
74:
75: protected int totalItems = -1;
76: protected int rangeFrom = -1;
77: protected int rangeTo = -1;
78: protected byte retrievingMode = PersistenceAspect.STRATEGY_DEFAULT;
79:
80: protected String mode;
81: protected boolean subClasses = false;
82: protected List result;
83: }
|