svn-gvsig-desktop / tags / J2ME_compat_v1_2_Build_1209 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / edition / DefaultRowEdited.java @ 19509
History | View | Annotate | Download (1.18 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.IRow; |
5 |
|
6 |
public class DefaultRowEdited implements IRowEdited { |
7 |
|
8 |
private IRow row;
|
9 |
private int status; |
10 |
private int index; |
11 |
|
12 |
/**
|
13 |
* Quiz?s conviene que RowEdited tenga un getRow y un getStatus.
|
14 |
* As? valdr?a tambi?n para los feature.
|
15 |
*
|
16 |
* @param baseRow
|
17 |
* @param status
|
18 |
* @param externalIndex
|
19 |
*/
|
20 |
public DefaultRowEdited(IRow baseRow, int status, int index) |
21 |
{ |
22 |
this.status = status;
|
23 |
row = baseRow; |
24 |
this.index = index;
|
25 |
} |
26 |
public IRow getLinkedRow() {
|
27 |
return row;
|
28 |
} |
29 |
|
30 |
public int getStatus() { |
31 |
return status;
|
32 |
} |
33 |
|
34 |
public String getID() { |
35 |
return row.getID();
|
36 |
} |
37 |
|
38 |
public Value getAttribute(int fieldIndex) { |
39 |
return row.getAttribute(fieldIndex);
|
40 |
} |
41 |
public Value[] getAttributes() { |
42 |
return row.getAttributes();
|
43 |
} |
44 |
public IRow cloneRow() {
|
45 |
DefaultRowEdited nr = new DefaultRowEdited(row.cloneRow(), status, index);
|
46 |
return nr;
|
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 |
} |