org.gcube.contentmanagement.timeseriesservice.impl.timeseries.operations
Class Operation

java.lang.Object
  extended by org.gcube.contentmanagement.timeseriesservice.impl.timeseries.operations.Operation
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AddFAOAreas, Aggregation, ColumnChange, Denormalization, Enrichment, Filter, Grouping, Union

public abstract class Operation
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  ColumnDefinition[] columnDefinition
           
protected  long count
           
protected  CurrentState currentState
           
protected  long extimatedCount
           
protected  OperationType type
           
protected static org.apache.axis.components.uuid.UUIDGen uuidGen
           
protected  String viewName
           
protected  org.gcube.common.dbinterface.tables.SimpleTable viewTable
           
 
Constructor Summary
Operation()
           
 
Method Summary
 void apply(String previuosTableName, ColumnDefinition[] previousTableDefinition)
           
protected  void createTable(org.gcube.common.dbinterface.queries.Select query, org.gcube.common.dbinterface.pool.DBSession session, boolean data)
           
protected  void createTable(String previousTableName, org.gcube.common.dbinterface.pool.DBSession session)
           
 void discard()
           
 ColumnDefinition[] getColumnDefinition()
           
static ColumnDefinition getColumnDefinitionReference(String fieldId, ColumnDefinition[] columnsDefintion)
           
 long getCount()
           
 CurrentState getCurrentState()
           
 String getDataAsJSon(Limit limit, Order order)
           
 TSHistoryItem getHistoryItem()
           
protected static TimeSeriesResource getResource(String resourceId)
           
 OperationType getType()
           
 String getViewName()
           
protected abstract  void initialize(String previuosTableName, ColumnDefinition[] previousTableDefinition, org.gcube.common.dbinterface.pool.DBSession session)
           
 void setColumnDefinition(ColumnDefinition[] columnDefintion)
           
 void setCount(long count)
           
 void setCurrentState(CurrentState currentState)
           
 void setHistoryItem(TSHistoryItem historyItem)
           
abstract  void setParameters(Object... parameters)
           
 void setType(OperationType _type)
           
 void setViewName(String viewName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnDefinition

protected ColumnDefinition[] columnDefinition

uuidGen

protected static final org.apache.axis.components.uuid.UUIDGen uuidGen

extimatedCount

protected long extimatedCount

currentState

protected CurrentState currentState

type

protected OperationType type

viewName

protected String viewName

viewTable

protected org.gcube.common.dbinterface.tables.SimpleTable viewTable

count

protected long count
Constructor Detail

Operation

public Operation()
Method Detail

setParameters

public abstract void setParameters(Object... parameters)
                            throws Exception
Throws:
Exception

initialize

protected abstract void initialize(String previuosTableName,
                                   ColumnDefinition[] previousTableDefinition,
                                   org.gcube.common.dbinterface.pool.DBSession session)
                            throws Exception
Throws:
Exception

getDataAsJSon

public String getDataAsJSon(Limit limit,
                            Order order)
                     throws Exception
Throws:
Exception

getResource

protected static TimeSeriesResource getResource(String resourceId)
                                         throws Exception
Throws:
Exception

apply

public void apply(String previuosTableName,
                  ColumnDefinition[] previousTableDefinition)
           throws Exception
Throws:
Exception

getCount

public long getCount()

setCount

public void setCount(long count)

getViewName

public String getViewName()

setViewName

public void setViewName(String viewName)

getType

public OperationType getType()

setType

public void setType(OperationType _type)

getCurrentState

public CurrentState getCurrentState()

setCurrentState

public void setCurrentState(CurrentState currentState)

getColumnDefinition

public ColumnDefinition[] getColumnDefinition()

setColumnDefinition

public void setColumnDefinition(ColumnDefinition[] columnDefintion)

discard

public void discard()
             throws Exception
Throws:
Exception

createTable

protected void createTable(org.gcube.common.dbinterface.queries.Select query,
                           org.gcube.common.dbinterface.pool.DBSession session,
                           boolean data)
                    throws Exception
Throws:
Exception

createTable

protected void createTable(String previousTableName,
                           org.gcube.common.dbinterface.pool.DBSession session)
                    throws Exception
Throws:
Exception

getColumnDefinitionReference

public static ColumnDefinition getColumnDefinitionReference(String fieldId,
                                                            ColumnDefinition[] columnsDefintion)
                                                     throws Exception
Parameters:
fieldId -
Returns:
Throws:
Exception

getHistoryItem

public TSHistoryItem getHistoryItem()

setHistoryItem

public void setHistoryItem(TSHistoryItem historyItem)


Copyright © 2012. All Rights Reserved.