public class CodeListCuration
extends org.gcube.common.dbinterface.persistence.ObjectStateControl
| Modifier and Type | Field and Description |
|---|---|
protected String |
agencyId |
protected String |
codeListImportId |
protected CodeListType |
codelistType |
protected Calendar |
creationDate |
protected String |
description |
protected String |
id |
protected boolean |
isFinal |
protected Hashtable<String,TableField> |
labelFieldMapping |
protected Calendar |
lastModifyDate |
protected String |
name |
protected org.gcube.common.dbinterface.tables.SimpleTable |
table |
protected float |
version |
| Constructor and Description |
|---|
CodeListCuration() |
CodeListCuration(String name,
String description,
String agencyId,
boolean isFinal,
float version) |
CodeListCuration(String name,
String description,
String agencyId,
boolean isFinal,
float version,
CodeListType type) |
protected String id
protected Hashtable<String,TableField> labelFieldMapping
protected String agencyId
protected String name
protected String description
protected Calendar creationDate
protected Calendar lastModifyDate
protected boolean isFinal
protected float version
protected CodeListType codelistType
protected String codeListImportId
protected org.gcube.common.dbinterface.tables.SimpleTable table
public CodeListCuration()
public CodeListCuration(String name, String description, String agencyId, boolean isFinal, float version, CodeListType type)
public String getId()
protected CodeListCurationHandler getHandler()
public org.gcube.common.dbinterface.tables.SimpleTable getTable()
public int getCount()
public void updateCount()
public float getVersion()
public void setVersion(float version)
version - the version to setpublic void setAgencyId(String agencyId)
agencyId - the agencyId to setpublic void setFinal(boolean isFinal)
isFinal - the isFinal to setpublic CodeListType getCodelistType()
public void setCodelistType(CodeListType codelistType)
codelistType - the codelistType to setpublic boolean isFinal()
public String getCodeListImportId()
public Calendar getCreationDate()
public Calendar getLastModifyDate()
public String getAgencyId()
public Hashtable<String,TableField> getLabelFieldMapping()
public void setLabelFieldMapping(Hashtable<String,TableField> labelFieldMapping)
labelFieldMapping - the labelFieldMapping to setpublic String getTableName()
public String getName()
public void setName(String name)
name - the name to setpublic String getDescription()
public void setDescription(String description)
description - the description to setpublic boolean start(CodeListImport importManager)
importManager - parent - fieldsMask - public List<String> getFieldsIdByColumnType(TableField.ColumnType columnType)
public boolean removeColumn(String fieldId)
fieldId - public boolean removeRows(int... rowsId)
rowsId - public Iterator<List<String>> getRowsData(Integer... rowsIds) throws Exception
rowsIds - Exceptionpublic boolean store()
public boolean remove()
public boolean isMappingFinished()
public static Iterator<CodeListCuration> getAll() throws Exception
Exceptionpublic static CodeListCuration get(String id) throws Exception
id - Exceptionpublic void changeColumnType(String fieldId, TableField.ColumnType columnType, String... codelistReferenceId) throws Exception
Exceptionpublic Integer[] getInvalidRows(String fieldId, ColumnReference columnDefinition) throws Exception
Exceptionpublic Integer[] getInvalidRows(String fieldId, org.gcube.common.dbinterface.types.Type type) throws Exception
ExceptionCopyright © 2014. All Rights Reserved.