svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / feature / FeatureQueryOrder.java @ 46010
History | View | Annotate | Download (2.44 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or modify it under
|
7 |
* the terms of the GNU General Public License as published by the Free Software
|
8 |
* Foundation; either version 3 of the License, or (at your option) any later
|
9 |
* version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful, but WITHOUT
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
13 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
14 |
* details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License along with
|
17 |
* this program; if not, write to the Free Software Foundation, Inc., 51
|
18 |
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19 |
*
|
20 |
* For any additional information, do not hesitate to contact us at info AT
|
21 |
* gvsig.com, or visit our website www.gvsig.com.
|
22 |
*/
|
23 |
package org.gvsig.fmap.dal.feature; |
24 |
|
25 |
import java.util.Iterator; |
26 |
import org.gvsig.expressionevaluator.Expression; |
27 |
import org.gvsig.fmap.dal.feature.FeatureQueryOrder.FeatureQueryOrderMember; |
28 |
import org.gvsig.tools.evaluator.Evaluator; |
29 |
import org.gvsig.tools.lang.Cloneable; |
30 |
import org.gvsig.tools.persistence.Persistent; |
31 |
|
32 |
/**
|
33 |
*
|
34 |
* @author fdiaz
|
35 |
*/
|
36 |
public interface FeatureQueryOrder extends Cloneable, Iterable<FeatureQueryOrderMember>, Persistent { |
37 |
|
38 |
public interface FeatureQueryOrderMember extends Persistent, Cloneable { |
39 |
|
40 |
FeatureQueryOrderMember clone() throws CloneNotSupportedException; |
41 |
|
42 |
boolean getAscending();
|
43 |
|
44 |
String getAttributeName();
|
45 |
|
46 |
Evaluator getEvaluator(); |
47 |
|
48 |
boolean hasEvaluator();
|
49 |
|
50 |
void setAscending(boolean ascending); |
51 |
|
52 |
} |
53 |
|
54 |
Object add(String order); |
55 |
|
56 |
Object add(String attributeName, boolean ascending); |
57 |
|
58 |
Object add(Expression expr, boolean ascending); |
59 |
|
60 |
void clear();
|
61 |
|
62 |
FeatureQueryOrder clone() throws CloneNotSupportedException; |
63 |
|
64 |
boolean contains(String attributeName); |
65 |
|
66 |
void copyFrom(FeatureQueryOrder other);
|
67 |
|
68 |
FeatureQueryOrderMember get(String attributeName);
|
69 |
|
70 |
FeatureQueryOrder getCopy(); |
71 |
|
72 |
int getIndex(String attributeName); |
73 |
|
74 |
boolean isEmpty();
|
75 |
|
76 |
Iterator<FeatureQueryOrderMember> iterator();
|
77 |
|
78 |
Iterable<FeatureQueryOrderMember> members();
|
79 |
|
80 |
void moveNext(String name); |
81 |
|
82 |
void movePrevious(String name); |
83 |
|
84 |
boolean remove(FeatureQueryOrderMember member);
|
85 |
|
86 |
void remove(int index); |
87 |
|
88 |
int size();
|
89 |
|
90 |
} |