root / trunk / libraries / libDataSource / src / org / gvsig / data / IDataStore.java @ 19399
History | View | Annotate | Download (2 KB)
1 |
package org.gvsig.data; |
---|---|
2 |
|
3 |
import java.awt.geom.Rectangle2D; |
4 |
import java.util.Iterator; |
5 |
import java.util.List; |
6 |
|
7 |
import org.cresques.cts.IProjection; |
8 |
import org.gvsig.data.commands.ICommandsRecord; |
9 |
|
10 |
public interface IDataStore extends IObservable{ |
11 |
|
12 |
public String getName(); |
13 |
|
14 |
public void init(IDataStoreParameters parameters); |
15 |
|
16 |
/*
|
17 |
* FIXME: Comprobar el valor de retorno de las funciones ?Deber?an de ser booleanas?
|
18 |
*/
|
19 |
/**
|
20 |
* Indica que se va a comenzar a hacer una serie de operaciones sobre el
|
21 |
* origen de datos con la finalidad de que dicho origen de datos se
|
22 |
* prepare (abra el fichero, comience una transacci?n, conecte al
|
23 |
* servidor, ...). Abre el fichero de ?ndices en caso de que exista.
|
24 |
*
|
25 |
*/
|
26 |
public void open(); |
27 |
/**
|
28 |
* Hace que se cierre el soporte f?sico de la capa. Cierra el fichero de
|
29 |
* ?ndices en caso de que exista.
|
30 |
*
|
31 |
*/
|
32 |
public void close(); |
33 |
public void dispose(); |
34 |
|
35 |
public IDataCollection getDataCollection();
|
36 |
|
37 |
public IDataCollection getSelection();
|
38 |
public void setSelection(IDataCollection selection); |
39 |
public IDataCollection createSelection();
|
40 |
|
41 |
public Iterator getChilds(); // Iterator of IDataStore |
42 |
|
43 |
/*
|
44 |
* TODO: Falta comprobar si el tema de edici?n lo dejamos aqui o
|
45 |
* volvemos a bajarlo al IFeatureStore
|
46 |
*
|
47 |
* FIXME: Comprobar el valor de retorno de las funciones ?Deber?an de ser booleanas?
|
48 |
*/
|
49 |
public boolean isEditable(); |
50 |
public void startEditing(); |
51 |
public void cancelEditing(); |
52 |
public void finishEditing(); |
53 |
public boolean isEditing(); |
54 |
|
55 |
public void undo(); |
56 |
public void redo(); |
57 |
public ICommandsRecord getCommandsRecord();
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
public void beginComplexNotification(); |
63 |
public void endComplexNotification(); |
64 |
|
65 |
//Bloqueo en edici?n similar a la selecci?n
|
66 |
|
67 |
public IDataCollection getLocked();
|
68 |
public void setLocked(IDataCollection locked); |
69 |
public IDataCollection createLocked();
|
70 |
|
71 |
public Rectangle2D getFullExtent2D(); |
72 |
|
73 |
public Object getFullExtent(); |
74 |
|
75 |
List getAllSRS();
|
76 |
IProjection getDefaultSRS(); |
77 |
} |
78 |
|