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