root / tags / v1_0_2_Build_903+3D / libraries / libFMap / src / com / iver / cit / gvsig / fmap / edition / DefaultRowEdited.java @ 10722
History | View | Annotate | Download (1.22 KB)
1 |
package com.iver.cit.gvsig.fmap.edition; |
---|---|
2 |
|
3 |
import com.hardcode.gdbms.engine.values.Value; |
4 |
import com.iver.cit.gvsig.fmap.core.DefaultFeature; |
5 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
6 |
import com.iver.cit.gvsig.fmap.core.IRow; |
7 |
|
8 |
public class DefaultRowEdited implements IRowEdited { |
9 |
|
10 |
private IRow row;
|
11 |
private int status; |
12 |
private int index; |
13 |
|
14 |
/**
|
15 |
* Quiz?s conviene que RowEdited tenga un getRow y un getStatus.
|
16 |
* As? valdr?a tambi?n para los feature.
|
17 |
*
|
18 |
* @param baseRow
|
19 |
* @param status
|
20 |
* @param externalIndex
|
21 |
*/
|
22 |
public DefaultRowEdited(IRow baseRow, int status, int index) |
23 |
{ |
24 |
this.status = status;
|
25 |
row = baseRow; |
26 |
this.index = index;
|
27 |
} |
28 |
public IRow getLinkedRow() {
|
29 |
return row;
|
30 |
} |
31 |
|
32 |
public int getStatus() { |
33 |
return status;
|
34 |
} |
35 |
|
36 |
public String getID() { |
37 |
return row.getID();
|
38 |
} |
39 |
|
40 |
public Value getAttribute(int fieldIndex) { |
41 |
return row.getAttribute(fieldIndex);
|
42 |
} |
43 |
public Value[] getAttributes() { |
44 |
return row.getAttributes();
|
45 |
} |
46 |
public IRow cloneRow() {
|
47 |
DefaultRowEdited nr = new DefaultRowEdited(row.cloneRow(), status, index);
|
48 |
return nr;
|
49 |
} |
50 |
public int getIndex() { |
51 |
return index;
|
52 |
} |
53 |
public void setID(String ID) { |
54 |
row.setID(ID); |
55 |
} |
56 |
public void setAttributes(Value[] att) { |
57 |
row.setAttributes(att); |
58 |
} |
59 |
|
60 |
} |