org.gcube.contentmanagement.codelistmanager.util.opensdmx
Class SDMXImport

java.lang.Object
  extended by org.gcube.contentmanagement.codelistmanager.util.ImporterInterface
      extended by org.gcube.contentmanagement.codelistmanager.util.opensdmx.SDMXImport
Direct Known Subclasses:
CLSDMXImport, HCLSDMXImport

public abstract class SDMXImport
extends ImporterInterface


Nested Class Summary
protected  class SDMXImport.FieldDefinition
           
 
Field Summary
protected  List<SDMXImport.FieldDefinition> fieldsDefinition
           
protected  int progress
           
protected  List<org.gcube.common.dbinterface.ColumnDefinition> tableDefinition
           
protected  Hashtable<String,TableField> tableFields
           
protected  int totalLine
           
 
Constructor Summary
SDMXImport()
           
 
Method Summary
abstract  String getAgencyId()
           
abstract  String getDescription()
           
 Hashtable<String,TableField> getFieldsName()
           
abstract  String getName()
           
 List<org.gcube.common.dbinterface.ColumnDefinition> getTableDefinition()
           
 int getTotalLines()
           
abstract  String getValidFrom()
           
abstract  String getValidTo()
           
abstract  float getVersion()
           
 void initialize()
           
abstract  boolean isFinal()
           
abstract  void process(org.gcube.common.dbinterface.tables.SimpleTable table, ProgresChangedEvent event)
           
protected abstract  List<SDMXImport.FieldDefinition> retrieveFieldsDefinition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

progress

protected int progress

totalLine

protected int totalLine

tableDefinition

protected List<org.gcube.common.dbinterface.ColumnDefinition> tableDefinition

tableFields

protected Hashtable<String,TableField> tableFields

fieldsDefinition

protected List<SDMXImport.FieldDefinition> fieldsDefinition
Constructor Detail

SDMXImport

public SDMXImport()
Method Detail

getAgencyId

public abstract String getAgencyId()

getName

public abstract String getName()
Returns:
the name

getDescription

public abstract String getDescription()
Returns:
the description

getValidFrom

public abstract String getValidFrom()
Returns:
the validFrom

getValidTo

public abstract String getValidTo()
Returns:
the validTo

getVersion

public abstract float getVersion()
Returns:
the version

isFinal

public abstract boolean isFinal()
Returns:
the isFinal

getTotalLines

public int getTotalLines()
Specified by:
getTotalLines in class ImporterInterface

getTableDefinition

public List<org.gcube.common.dbinterface.ColumnDefinition> getTableDefinition()
Specified by:
getTableDefinition in class ImporterInterface

getFieldsName

public Hashtable<String,TableField> getFieldsName()
Specified by:
getFieldsName in class ImporterInterface

retrieveFieldsDefinition

protected abstract List<SDMXImport.FieldDefinition> retrieveFieldsDefinition()

process

public abstract void process(org.gcube.common.dbinterface.tables.SimpleTable table,
                             ProgresChangedEvent event)
                      throws Exception
Specified by:
process in class ImporterInterface
Throws:
Exception

initialize

public void initialize()
                throws Exception
Specified by:
initialize in class ImporterInterface
Throws:
Exception


Copyright © 2014. All Rights Reserved.