Revision 46771
Added by Claudio Atzori about 7 years ago
GenericRow.java | ||
---|---|---|
3 | 3 |
import java.util.Map; |
4 | 4 |
|
5 | 5 |
public class GenericRow { |
6 |
private String datasourceId; |
|
6 | 7 |
private String table; |
7 | 8 |
private Map<String, Object> fields; |
8 | 9 |
private boolean toDelete = false; |
9 |
|
|
10 |
|
|
11 |
public GenericRow(String table, Map<String, Object> fields, boolean toDelete) { |
|
12 |
super(); |
|
10 |
|
|
11 |
public GenericRow(final String datasourceId, String table, Map<String, Object> fields, boolean toDelete) { |
|
12 |
this.datasourceId = datasourceId; |
|
13 | 13 |
this.table = table; |
14 | 14 |
this.fields = fields; |
15 | 15 |
this.toDelete = toDelete; |
16 | 16 |
} |
17 |
|
|
17 |
|
|
18 |
public String getDatasourceId() { |
|
19 |
return datasourceId; |
|
20 |
} |
|
21 |
|
|
22 |
public void setDatasourceId(final String datasourceId) { |
|
23 |
this.datasourceId = datasourceId; |
|
24 |
} |
|
25 |
|
|
18 | 26 |
public String getTable() { |
19 | 27 |
return table; |
20 | 28 |
} |
Also available in: Unified diff
added openaire specific behaviour: do not update the datasource related information when the datasource is managed