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

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

public class ImporterItem
extends Object
implements Serializable

Author:
lucio
See Also:
Serialized Form

Constructor Summary
ImporterItem(org.gcube.common.core.state.GCUBEWSResourceKey key, org.gcube.common.core.scope.GCUBEScope scope)
           
 
Method Summary
 int count()
           
 ColumnDefinition[] getColumnsDefinition()
           
 String getCreator()
           
 String getData()
           
 String getDataAsJson(org.gcube.common.dbinterface.queries.Select query)
           
 Timestamp getDate()
           
 String getDescription()
           
 String getEncoding()
           
 int getExstimatedLines()
           
 Map<String,String> getFieldMapping()
           
 List<String> getFieldNames()
           
 String getId()
           
 int getImportProgress()
           
 String getPublisher()
           
 org.gcube.common.core.state.GCUBEWSResourceKey getResourceKey()
           
 String getRights()
           
 String getScope()
           
 String getSource()
           
 Status getStatus()
           
 org.gcube.common.dbinterface.tables.SimpleTable getTable()
           
 String getTitle()
           
 int getTotalLines()
           
 String getType()
           
 void remove()
           
 void setClosed()
          closes the possibility to import data
 void setCreator(String creator)
           
 void setDate(Timestamp date)
           
 void setDescription(String description)
           
 void setEncoding(String encoding)
           
 void setErrorState()
           
 void setExstimatedLines(int exstimatedLine)
           
 void setFieldNames(List<String> fieldNames)
           
 void setId(String id)
           
 void setImportProgress(int importProgress)
           
 void setPublisher(String publisher)
           
 void setRights(String rights)
           
 void setScope(String scope)
           
 void setSource(String source)
           
 void setStatus(Status state)
           
 void setTable(org.gcube.common.dbinterface.tables.SimpleTable table)
           
 void setTitle(String title)
           
 void setTotalLines(int totalLines)
           
 void setType(String type)
           
 void store()
           
 void storeData(ImportRequest request)
           
 void storeDenormalizedData(DenormalizedImportRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImporterItem

public ImporterItem(org.gcube.common.core.state.GCUBEWSResourceKey key,
                    org.gcube.common.core.scope.GCUBEScope scope)
Method Detail

getResourceKey

public org.gcube.common.core.state.GCUBEWSResourceKey getResourceKey()

setStatus

public void setStatus(Status state)
Parameters:
state -

getStatus

public Status getStatus()
Returns:

getId

public String getId()
Returns:

setId

public void setId(String id)
Parameters:
id -

getDescription

public String getDescription()
Returns:

setDescription

public void setDescription(String description)
Parameters:
description -

getEncoding

public String getEncoding()
Returns:
the encoding

setEncoding

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

getColumnsDefinition

public ColumnDefinition[] getColumnsDefinition()
Returns:

store

public void store()
           throws Exception
Throws:
Exception

storeData

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

storeDenormalizedData

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

setClosed

public void setClosed()
closes the possibility to import data


setErrorState

public void setErrorState()

getDataAsJson

public String getDataAsJson(org.gcube.common.dbinterface.queries.Select query)
                     throws Exception
Returns:
Throws:
Exception

getData

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

remove

public void remove()
            throws Exception
Throws:
Exception

count

public int count()
          throws Exception
Throws:
Exception

getFieldNames

public List<String> getFieldNames()

setFieldNames

public void setFieldNames(List<String> fieldNames)

getFieldMapping

public Map<String,String> getFieldMapping()

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

getCreator

public String getCreator()

setCreator

public void setCreator(String creator)

getPublisher

public String getPublisher()

setPublisher

public void setPublisher(String publisher)

getType

public String getType()

setType

public void setType(String type)

getSource

public String getSource()

setSource

public void setSource(String source)

getRights

public String getRights()

setRights

public void setRights(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 org.gcube.common.dbinterface.tables.SimpleTable getTable()

setTable

public void setTable(org.gcube.common.dbinterface.tables.SimpleTable table)

getDate

public Timestamp getDate()

setDate

public void setDate(Timestamp date)

getScope

public String getScope()

setScope

public void setScope(String scope)


Copyright © 2012. All Rights Reserved.