001: /**
002: * Copyright (C) 2001-2005 France Telecom R&D
003: *
004: * This library is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU Lesser General Public
006: * License as published by the Free Software Foundation; either
007: * version 2 of the License, or (at your option) any later version.
008: *
009: * This library is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012: * Lesser General Public License for more details.
013: *
014: * You should have received a copy of the GNU Lesser General Public
015: * License along with this library; if not, write to the Free Software
016: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
017: *
018: *
019: *
020: * Authors: S.Chassande-Barrioz.
021: * Created on 30 janv. 2005
022: *
023: */package org.objectweb.speedo.metadata;
024:
025: /**
026: *
027: *
028: * @author S.Chassande-Barrioz
029: */
030: public class SpeedoPredefinedQuery extends SpeedoElement {
031:
032: public String name;
033: public String language;//ignored
034: public String filter;
035: public String sql;//ignored
036: public String ordering;
037: public int rangeFirst = 0;
038: public int rangeLast = Integer.MAX_VALUE;
039: public boolean ignoreCache = false;
040: public boolean includeSubclasses;
041:
042: public String declareImports;
043: public String declareParameters;
044: public String declareVariables;
045:
046: public String resultClass;
047: public boolean resultUnique = false;
048: public String resultGrouping;
049:
050: public String query;
051:
052: public String getDeclareImports() {
053: return declareImports;
054: }
055:
056: public String getDeclareParameters() {
057: return declareParameters;
058: }
059:
060: public String getDeclareVariables() {
061: return declareVariables;
062: }
063:
064: public String getFilter() {
065: return filter;
066: }
067:
068: public boolean getIgnoreCache() {
069: return ignoreCache;
070: }
071:
072: public boolean getIncludeSubclasses() {
073: return includeSubclasses;
074: }
075:
076: public String getLanguage() {
077: return language;
078: }
079:
080: public String getName() {
081: return name;
082: }
083:
084: public String getOrdering() {
085: return ordering;
086: }
087:
088: public long getRangeFirst() {
089: return rangeFirst;
090: }
091:
092: public long getRangeLast() {
093: return rangeLast;
094: }
095:
096: public String getResultClass() {
097: return resultClass;
098: }
099:
100: public String getResultGrouping() {
101: return resultGrouping;
102: }
103:
104: public boolean getResultUnique() {
105: return resultUnique;
106: }
107:
108: public String getSql() {
109: return sql;
110: }
111: }
|