root / tags / v1_1_Build_1015 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / edition / IWriter.java @ 13679
History | View | Annotate | Download (1.2 KB)
1 |
package com.iver.cit.gvsig.fmap.edition; |
---|---|
2 |
|
3 |
import java.util.Properties; |
4 |
|
5 |
import com.hardcode.driverManager.Driver; |
6 |
import com.iver.cit.gvsig.fmap.drivers.ITableDefinition; |
7 |
|
8 |
public interface IWriter extends Driver{ |
9 |
void preProcess() throws EditionException; |
10 |
|
11 |
/**
|
12 |
* Aqu? dentro se puede hacer el chequeo de las reglas asignadas para que
|
13 |
* antes de guardar algo, se compruebe que es correcto. Aunque lo ideal
|
14 |
* ser?a haberlo hecho antes, para que lo que se guarde est? corregido al
|
15 |
* m?ximo.
|
16 |
*/
|
17 |
void process(IRowEdited row) throws EditionException; |
18 |
|
19 |
void postProcess() throws EditionException; |
20 |
|
21 |
public String getCapability(String capability); |
22 |
/**
|
23 |
* @param capabilities The capabilities to set.
|
24 |
*/
|
25 |
public void setCapabilities(Properties capabilities); |
26 |
|
27 |
|
28 |
public abstract boolean canWriteAttribute(int sqlType); |
29 |
public abstract boolean canAlterTable(); |
30 |
public abstract boolean canSaveEdits(); |
31 |
|
32 |
public void initialize(ITableDefinition tableDefinition) throws EditionException ; |
33 |
|
34 |
public ITableDefinition getTableDefinition();
|
35 |
|
36 |
/**
|
37 |
* @return true if the driver needs to iterate trhu all records.
|
38 |
* for example, shp files need return true. jdbc writers will return false
|
39 |
*/
|
40 |
public boolean isWriteAll(); |
41 |
|
42 |
|
43 |
|
44 |
} |