org.gcube.contentmanagement.timeseriesservice.impl.importer
Class ImporterItem

java.lang.Object
  extended by org.gcube.contentmanagement.timeseriesservice.impl.importer.ImporterItem
All Implemented Interfaces:
java.io.Serializable

Author:
lucio
See Also:
Serialized Form

Constructor Summary
ImporterItem(GCUBEWSResourceKey key, GCUBEScope scope)
          
Method Summary
 int count()
          
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImporterItem

public ImporterItem(GCUBEWSResourceKey key,
                    GCUBEScope scope)
Method Detail

getResourceKey

public GCUBEWSResourceKey getResourceKey()

setState

public void setState(State state)
Parameters:
state -

getState

public State getState()
Returns:

getId

public java.lang.String getId()
Returns:

setId

public void setId(java.lang.String id)
Parameters:
id -

getDescription

public java.lang.String getDescription()
Returns:

setDescription

public void setDescription(java.lang.String description)
Parameters:
description -

getEncoding

public java.lang.String getEncoding()
Returns:
the encoding

setEncoding

public void setEncoding(java.lang.String encoding)
Parameters:
encoding - the encoding to set

getColumnsDefinition

public ColumnDefinition[] getColumnsDefinition()
Returns:

store

public void store()
           throws java.lang.Exception
Throws:
java.lang.Exception

storeData

public void storeData(ImportRequest request)
               throws java.lang.Exception
Parameters:
refLocator -
numElementsPerRow -
Throws:
java.lang.Exception

storeDenormalizedData

public void storeDenormalizedData(DenormalizedImportRequest request)
                           throws java.lang.Exception
Parameters:
refLocator -
numElementsPerRow -
Throws:
java.lang.Exception

setClosed

public void setClosed()
closes the possibility to import data


setErrorState

public void setErrorState()

getDataAsJson

public java.lang.String getDataAsJson(Select query)
                               throws java.lang.Exception
Returns:
Throws:
java.lang.Exception

getData

public java.lang.String getData()
                         throws java.lang.Exception
Parameters:
lowerLimit -
upperLimit -
Returns:
Throws:
java.lang.Exception

remove

public void remove()
            throws java.lang.Exception
Throws:
java.lang.Exception

count

public int count()
          throws java.lang.Exception
Throws:
java.lang.Exception

getFieldNames

public java.util.List<java.lang.String> getFieldNames()

setFieldNames

public void setFieldNames(java.util.List<java.lang.String> fieldNames)

getFieldMapping

public java.util.Map<java.lang.String,java.lang.String> getFieldMapping()

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getCreator

public java.lang.String getCreator()

setCreator

public void setCreator(java.lang.String creator)

getPublisher

public java.lang.String getPublisher()

setPublisher

public void setPublisher(java.lang.String publisher)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getSource

public java.lang.String getSource()

setSource

public void setSource(java.lang.String source)

getRights

public java.lang.String getRights()

setRights

public void setRights(java.lang.String rights)

getImportProgress

public int getImportProgress()

setImportProgress

public void setImportProgress(int importProgress)

getTotalLines

public int getTotalLines()

setTotalLines

public void setTotalLines(int totalLines)

getExstimatedLines

public int getExstimatedLines()

setExstimatedLines

public void setExstimatedLines(int exstimatedLine)

getTable

public SimpleTable getTable()

setTable

public void setTable(SimpleTable table)

getDate

public java.sql.Timestamp getDate()

setDate

public void setDate(java.sql.Timestamp date)

getScope

public java.lang.String getScope()

setScope

public void setScope(java.lang.String scope)