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  org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] columnDefinition
           
protected  long count
           
protected  org.gcube.contentmanagement.timeseriesservice.stubs.CurrentState currentState
           
protected  long extimatedCount
           
protected  org.gcube.contentmanagement.timeseriesservice.stubs.types.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, org.gcube.contentmanagement.timeseriesservice.stubs.types.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()
           
 org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] getColumnDefinition()
           
static org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition getColumnDefinitionReference(String fieldId, org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] columnsDefintion)
           
 long getCount()
           
 org.gcube.contentmanagement.timeseriesservice.stubs.CurrentState getCurrentState()
           
 String getDataAsJSon(org.gcube.contentmanagement.timeseriesservice.stubs.types.Limit limit, org.gcube.contentmanagement.timeseriesservice.stubs.types.Order order)
           
 TSHistoryItem getHistoryItem()
           
protected static TimeSeriesResource getResource(String resourceId)
           
 org.gcube.contentmanagement.timeseriesservice.stubs.types.OperationType getType()
           
 String getViewName()
           
protected abstract  void initialize(String previuosTableName, org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] previousTableDefinition, org.gcube.common.dbinterface.pool.DBSession session)
           
 void setColumnDefinition(org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] columnDefintion)
           
 void setCount(long count)
           
 void setCurrentState(org.gcube.contentmanagement.timeseriesservice.stubs.CurrentState currentState)
           
 void setHistoryItem(TSHistoryItem historyItem)
           
abstract  void setParameters(Object... parameters)
           
 void setType(org.gcube.contentmanagement.timeseriesservice.stubs.types.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 org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] columnDefinition

uuidGen

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

extimatedCount

protected long extimatedCount

currentState

protected org.gcube.contentmanagement.timeseriesservice.stubs.CurrentState currentState

type

protected org.gcube.contentmanagement.timeseriesservice.stubs.types.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,
                                   org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] previousTableDefinition,
                                   org.gcube.common.dbinterface.pool.DBSession session)
                            throws Exception
Throws:
Exception

getDataAsJSon

public String getDataAsJSon(org.gcube.contentmanagement.timeseriesservice.stubs.types.Limit limit,
                            org.gcube.contentmanagement.timeseriesservice.stubs.types.Order order)
                     throws Exception
Throws:
Exception

getResource

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

apply

public void apply(String previuosTableName,
                  org.gcube.contentmanagement.timeseriesservice.stubs.types.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 org.gcube.contentmanagement.timeseriesservice.stubs.types.OperationType getType()

setType

public void setType(org.gcube.contentmanagement.timeseriesservice.stubs.types.OperationType _type)

getCurrentState

public org.gcube.contentmanagement.timeseriesservice.stubs.CurrentState getCurrentState()

setCurrentState

public void setCurrentState(org.gcube.contentmanagement.timeseriesservice.stubs.CurrentState currentState)

getColumnDefinition

public org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] getColumnDefinition()

setColumnDefinition

public void setColumnDefinition(org.gcube.contentmanagement.timeseriesservice.stubs.types.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 org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition getColumnDefinitionReference(String fieldId,
                                                                                                                      org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] columnsDefintion)
                                                                                                               throws Exception
Parameters:
fieldId -
Returns:
Throws:
Exception

getHistoryItem

public TSHistoryItem getHistoryItem()

setHistoryItem

public void setHistoryItem(TSHistoryItem historyItem)


Copyright © 2012. All Rights Reserved.