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