Project

General

Profile

1
package eu.dnetlib.enabling.database.utils;
2

    
3
import java.util.Map;
4

    
5
public class GenericRow {
6
	private String datasourceId;
7
	private String table;
8
	private Map<String, Object> fields;
9
	private boolean toDelete = false;
10

    
11
	public GenericRow(final String datasourceId, String table, Map<String, Object> fields, boolean toDelete) {
12
		this.datasourceId = datasourceId;
13
		this.table = table;
14
		this.fields = fields;
15
		this.toDelete = toDelete;
16
	}
17

    
18
	public String getDatasourceId() {
19
		return datasourceId;
20
	}
21

    
22
	public void setDatasourceId(final String datasourceId) {
23
		this.datasourceId = datasourceId;
24
	}
25

    
26
	public String getTable() {
27
		return table;
28
	}
29
	
30
	public void setTable(String table) {
31
		this.table = table;
32
	}
33
	
34
	public Map<String, Object> getFields() {
35
		return fields;
36
	}
37
	
38
	public void setFields(Map<String, Object> fields) {
39
		this.fields = fields;
40
	}
41

    
42
	public boolean isToDelete() {
43
		return toDelete;
44
	}
45

    
46
	public void setToDelete(boolean toDelete) {
47
		this.toDelete = toDelete;
48
	}
49
	
50
}
(2-2/3)