svn-gvsig-desktop / tags / v1_0_2_Build_907 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / drivers / VectorialDatabaseDriver.java @ 11015
History | View | Annotate | Download (3.33 KB)
1 | 1100 | fjp | /* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|---|---|
2 | *
|
||
3 | * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
||
4 | *
|
||
5 | * This program is free software; you can redistribute it and/or
|
||
6 | * modify it under the terms of the GNU General Public License
|
||
7 | * as published by the Free Software Foundation; either version 2
|
||
8 | * of the License, or (at your option) any later version.
|
||
9 | *
|
||
10 | * This program is distributed in the hope that it will be useful,
|
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
13 | * GNU General Public License for more details.
|
||
14 | *
|
||
15 | * You should have received a copy of the GNU General Public License
|
||
16 | * along with this program; if not, write to the Free Software
|
||
17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
18 | *
|
||
19 | * For more information, contact:
|
||
20 | *
|
||
21 | * Generalitat Valenciana
|
||
22 | * Conselleria d'Infraestructures i Transport
|
||
23 | * Av. Blasco Ib??ez, 50
|
||
24 | * 46010 VALENCIA
|
||
25 | * SPAIN
|
||
26 | *
|
||
27 | * +34 963862235
|
||
28 | * gvsig@gva.es
|
||
29 | * www.gvsig.gva.es
|
||
30 | *
|
||
31 | * or
|
||
32 | *
|
||
33 | * IVER T.I. S.A
|
||
34 | * Salamanca 50
|
||
35 | * 46005 Valencia
|
||
36 | * Spain
|
||
37 | *
|
||
38 | * +34 963163400
|
||
39 | * dac@iver.es
|
||
40 | */
|
||
41 | 214 | fernando | package com.iver.cit.gvsig.fmap.drivers; |
42 | |||
43 | 1691 | fjp | import java.awt.geom.Rectangle2D; |
44 | import java.sql.Connection; |
||
45 | |||
46 | 1693 | fjp | import com.iver.cit.gvsig.fmap.DriverException; |
47 | 2183 | fernando | import com.iver.cit.gvsig.fmap.core.IFeature; |
48 | 1691 | fjp | import com.iver.cit.gvsig.fmap.core.IGeometry; |
49 | 3076 | fjp | import com.iver.cit.gvsig.fmap.layers.XMLException; |
50 | 2778 | fjp | import com.iver.utiles.XMLEntity; |
51 | 1691 | fjp | |
52 | 214 | fernando | public interface VectorialDatabaseDriver extends VectorialDriver { |
53 | 2183 | fernando | /**
|
54 | * @param conn
|
||
55 | * @param tableName
|
||
56 | * @param fields (Todos los campos, el primero ha de ser el de las geometr?as
|
||
57 | * @param whereClause
|
||
58 | * @param id_FID_field El identificador del campo que contiene una clave ?nica. 1=> primer campo, 2 => segundo campo, etc
|
||
59 | *
|
||
60 | */
|
||
61 | // public void setData(Connection conn, String tableName, String fields, String whereClause, int id_FID_field);
|
||
62 | 1691 | fjp | public Rectangle2D getFullExtent(); |
63 | public int getShapeType(); |
||
64 | 3271 | fjp | |
65 | 2183 | fernando | public IFeatureIterator getFeatureIterator(Rectangle2D r, String strEPSG) throws DriverException; |
66 | 3268 | fjp | public IFeatureIterator getFeatureIterator(Rectangle2D r, String strEPSG, String[] alphaNumericFieldsNeeded) throws DriverException; |
67 | 2183 | fernando | public String[] getFields(); |
68 | 1691 | fjp | public String getWhereClause(); |
69 | public String getTableName(); |
||
70 | 2183 | fernando | public void close(); |
71 | public void open() throws com.iver.cit.gvsig.fmap.DriverException; |
||
72 | /**
|
||
73 | * @param FID
|
||
74 | * @return el n?mero de registro asociado a ese FID. Se usa dentro
|
||
75 | * del DBStrategy para averig?ar si un Feature est? seleccionado
|
||
76 | * o no.
|
||
77 | */
|
||
78 | public int getRowIndexByFID(IFeature FID); |
||
79 | public String getGeometryField(String fieldName); |
||
80 | 1691 | fjp | |
81 | 2778 | fjp | public XMLEntity getXMLEntity();
|
82 | /**
|
||
83 | * Para evitar que una clase no se pueda instanciar,
|
||
84 | * el setXMLEntity deber?a devolver una referencia
|
||
85 | * a la clase que crea. Ya vorem.
|
||
86 | */
|
||
87 | 3076 | fjp | public void setXMLEntity(XMLEntity xml) throws XMLException; |
88 | 3268 | fjp | |
89 | /**
|
||
90 | * @return information about catalog, fields, tablename, etc
|
||
91 | */
|
||
92 | public DBLayerDefinition getLyrDef();
|
||
93 | 10048 | fjp | |
94 | /**
|
||
95 | * This method is called by FLyrVect when its goig to be removed from the
|
||
96 | * view. The driver can then do what it has to do.
|
||
97 | *
|
||
98 | */
|
||
99 | public void remove(); |
||
100 | |||
101 | 214 | fernando | } |