public class CodeListImport
extends org.gcube.common.dbinterface.persistence.ObjectStateControl
| Modifier and Type | Class and Description |
|---|---|
static class |
CodeListImport.Status |
| Constructor and Description |
|---|
CodeListImport() |
| Modifier and Type | Method and Description |
|---|---|
static CodeListImport |
get(String id) |
String |
getAgencyId() |
static Iterator<CodeListImport> |
getAll() |
CodeListType |
getCodelistType() |
String |
getDescription() |
Hashtable<String,TableField> |
getFieldsName() |
String |
getId() |
Calendar |
getLastUpdate() |
String |
getName() |
int |
getProgress() |
CodeListImport.Status |
getStatus() |
List<org.gcube.common.dbinterface.ColumnDefinition> |
getTableDefinition() |
String |
getTableName() |
int |
getTotalLines() |
float |
getVersion() |
boolean |
importCSV(File file,
String encoding,
boolean hasHeader,
char delimiter,
boolean deleteFileWhenFinished) |
boolean |
importSDMX(File file) |
boolean |
importSDMX(URI uri) |
boolean |
isFinal() |
boolean |
isFromSDMXImport() |
boolean |
remove() |
void |
setAgencyId(String agencyId) |
void |
setCodelistType(CodeListType codelistType) |
void |
setDescription(String description) |
protected void |
setFieldsName(Hashtable<String,TableField> tableFieldMapping) |
void |
setFinal(boolean isFinal) |
void |
setLastUpdate(Calendar lastUpdate) |
void |
setName(String name) |
void |
setStatus(CodeListImport.Status status) |
protected void |
setTableDefinition(List<org.gcube.common.dbinterface.ColumnDefinition> tableDefinition) |
void |
setVersion(float version) |
boolean |
store() |
public String getTableName()
public Hashtable<String,TableField> getFieldsName()
public List<org.gcube.common.dbinterface.ColumnDefinition> getTableDefinition()
public String getId()
public CodeListType getCodelistType()
public void setCodelistType(CodeListType codelistType)
codelistType - the codelistType to setpublic boolean isFinal()
public void setFinal(boolean isFinal)
isFinal - the isFinal to setpublic float getVersion()
public void setVersion(float version)
version - the version to setpublic String getName()
public void setName(String name)
name - the name to setpublic String getDescription()
public void setDescription(String description)
description - the description to setpublic String getAgencyId()
public void setAgencyId(String agencyId)
agencyId - the agencyId to setpublic CodeListImport.Status getStatus()
public void setStatus(CodeListImport.Status status)
status - the status to setpublic Calendar getLastUpdate()
public void setLastUpdate(Calendar lastUpdate)
lastUpdate - the lastUpdate to setprotected void setFieldsName(Hashtable<String,TableField> tableFieldMapping)
protected void setTableDefinition(List<org.gcube.common.dbinterface.ColumnDefinition> tableDefinition)
public int getTotalLines()
public int getProgress()
public boolean isFromSDMXImport()
public boolean store()
public boolean importSDMX(URI uri)
public boolean importSDMX(File file)
public boolean importCSV(File file, String encoding, boolean hasHeader, char delimiter, boolean deleteFileWhenFinished)
public boolean remove()
public static CodeListImport get(String id) throws Exception
Exceptionpublic static Iterator<CodeListImport> getAll() throws Exception
ExceptionCopyright © 2014. All Rights Reserved.