svn-gvsig-desktop / tags / v1_0_2_Build_909 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / edition / IWriter.java @ 11150
History | View | Annotate | Download (1.2 KB)
1 | 3652 | fjp | package com.iver.cit.gvsig.fmap.edition; |
---|---|---|---|
2 | |||
3 | 4328 | fjp | import java.util.Properties; |
4 | |||
5 | 4143 | caballero | import com.hardcode.driverManager.Driver; |
6 | 4421 | fjp | import com.iver.cit.gvsig.fmap.drivers.ITableDefinition; |
7 | 4143 | caballero | |
8 | public interface IWriter extends Driver{ |
||
9 | 3672 | fjp | void preProcess() throws EditionException; |
10 | 3652 | fjp | |
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 | 3672 | fjp | void process(IRowEdited row) throws EditionException; |
18 | 3652 | fjp | |
19 | 3672 | fjp | void postProcess() throws EditionException; |
20 | 5389 | caballero | |
21 | 4328 | fjp | public String getCapability(String capability); |
22 | /**
|
||
23 | * @param capabilities The capabilities to set.
|
||
24 | */
|
||
25 | public void setCapabilities(Properties capabilities); |
||
26 | 5389 | caballero | |
27 | |||
28 | 4328 | fjp | public abstract boolean canWriteAttribute(int sqlType); |
29 | 6356 | fjp | public abstract boolean canAlterTable(); |
30 | 6856 | fjp | public abstract boolean canSaveEdits(); |
31 | 5389 | caballero | |
32 | 5558 | fjp | public void initialize(ITableDefinition tableDefinition) throws EditionException ; |
33 | 3652 | fjp | |
34 | 6259 | fjp | public ITableDefinition getTableDefinition();
|
35 | 8913 | fjp | |
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 | 4421 | fjp | |
42 | 9887 | fjp | |
43 | |||
44 | 3652 | fjp | } |