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 / DataQuery.java @ 45539
History | View | Annotate | Download (2.34 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | 40435 | jjdelcerro | *
|
4 | 40559 | jjdelcerro | * Copyright (C) 2007-2013 gvSIG Association.
|
5 | 40435 | jjdelcerro | *
|
6 | * This program is free software; you can redistribute it and/or
|
||
7 | * modify it under the terms of the GNU General Public License
|
||
8 | 40559 | jjdelcerro | * as published by the Free Software Foundation; either version 3
|
9 | 40435 | jjdelcerro | * of the License, or (at your option) any later version.
|
10 | *
|
||
11 | * This program is distributed in the hope that it will be useful,
|
||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
14 | * GNU General Public License for more details.
|
||
15 | *
|
||
16 | * You should have received a copy of the GNU General Public License
|
||
17 | * along with this program; if not, write to the Free Software
|
||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||
19 | * MA 02110-1301, USA.
|
||
20 | *
|
||
21 | 40559 | jjdelcerro | * For any additional information, do not hesitate to contact us
|
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | 40435 | jjdelcerro | */
|
24 | /*
|
||
25 | * AUTHORS (In addition to CIT):
|
||
26 | * 2008 {DiSiD Technologies} {Create Parameter object to define queries}
|
||
27 | */
|
||
28 | package org.gvsig.fmap.dal; |
||
29 | |||
30 | import org.gvsig.tools.persistence.Persistent; |
||
31 | |||
32 | /**
|
||
33 | * Defines the properties of a collection of data, as a result of a query
|
||
34 | * through a DataStore.
|
||
35 | * <p>
|
||
36 | * The scale parameter can be used by the DataStore as a hint about the quality
|
||
37 | * or resolution of the data needed to view or operate with the data returned.
|
||
38 | * As an example, it may use the scale to return only a representative subset of
|
||
39 | * the data, or maybe to return Data with less detail, like a point or a line
|
||
40 | * instead of a polygon.
|
||
41 | * </p>
|
||
42 | *
|
||
43 | * @author 2009- <a href="cordinyana@gvsig.org">C?sar Ordi?ana</a> - gvSIG team
|
||
44 | */
|
||
45 | public interface DataQuery extends Persistent { |
||
46 | |||
47 | /**
|
||
48 | * Sets the scale.
|
||
49 | *
|
||
50 | * @param scale
|
||
51 | * the scale to set
|
||
52 | */
|
||
53 | void setScale(double scale); |
||
54 | |||
55 | /**
|
||
56 | * Returns the scale of the data to load.
|
||
57 | *
|
||
58 | * @return the scale of the data to load
|
||
59 | */
|
||
60 | double getScale();
|
||
61 | |||
62 | /**
|
||
63 | * Returns the value of an query parameter.
|
||
64 | *
|
||
65 | * @param name
|
||
66 | * of the parameter
|
||
67 | * @return the parameter value
|
||
68 | */
|
||
69 | Object getQueryParameter(String name); |
||
70 | |||
71 | /**
|
||
72 | * Sets the value of an query parameter.
|
||
73 | *
|
||
74 | * @param name
|
||
75 | * of the query parameter
|
||
76 | * @param value
|
||
77 | * for the query parameter
|
||
78 | */
|
||
79 | void setQueryParameter(String name, Object value); |
||
80 | |||
81 | } |