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