org.gcube.data.analysis.tabulardata.service
Class TabularDataServiceMock
java.lang.Object
org.gcube.data.analysis.tabulardata.service.TabularDataServiceMock
- All Implemented Interfaces:
- org.gcube.data.analysis.tabulardata.service.operation.OperationInterface, org.gcube.data.analysis.tabulardata.service.query.QueryInterface, org.gcube.data.analysis.tabulardata.service.query.QueryInterfaceJson, org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceInterface, org.gcube.data.analysis.tabulardata.service.TabularDataService
public class TabularDataServiceMock
- extends Object
- implements org.gcube.data.analysis.tabulardata.service.TabularDataService
|
Method Summary |
org.gcube.data.analysis.tabulardata.service.tabular.TabularResource |
cloneTabularResource(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId id)
|
org.gcube.data.analysis.tabulardata.service.tabular.TabularResource |
cloneTabularResource(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId id,
org.gcube.data.analysis.tabulardata.model.table.TableId lastTableId)
|
org.gcube.data.analysis.tabulardata.service.tabular.TabularResource |
createTabularResource()
|
org.gcube.data.analysis.tabulardata.service.operation.Task |
execute(org.gcube.data.analysis.tabulardata.operation.worker.OperationInvocation invocation,
org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId targetTabularResourceId)
|
List<org.gcube.data.analysis.tabulardata.operation.worker.EligibleOperation> |
getCapabilities()
|
List<org.gcube.data.analysis.tabulardata.operation.worker.EligibleOperation> |
getCapabilities(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId tabularResourceId)
|
List<org.gcube.data.analysis.tabulardata.operation.worker.EligibleOperation> |
getCapabilities(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId tabularResourceId,
org.gcube.data.analysis.tabulardata.model.column.ColumnLocalId columnId)
|
int |
getQueryLenght(org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.query.parameters.QueryFilter filter)
|
org.gcube.data.analysis.tabulardata.model.table.Table |
getTable(org.gcube.data.analysis.tabulardata.model.table.TableId tableId)
|
org.gcube.data.analysis.tabulardata.service.tabular.TabularResource |
getTabularResource(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId id)
|
List<org.gcube.data.analysis.tabulardata.service.tabular.TabularResource> |
getTabularResources()
|
org.gcube.data.analysis.tabulardata.service.operation.Task |
getTask(org.gcube.data.analysis.tabulardata.service.operation.Task.TaskId operationId,
org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId tabularResourceId)
|
List<org.gcube.data.analysis.tabulardata.service.operation.Task> |
getTasks(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId tabularResourceId)
|
String |
queryAsJson(org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.query.parameters.QueryPage page)
|
String |
queryAsJson(org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.query.parameters.QueryPage page,
org.gcube.data.analysis.tabulardata.query.parameters.QueryFilter filter)
|
String |
queryAsJson(org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.query.parameters.QueryPage page,
org.gcube.data.analysis.tabulardata.query.parameters.QueryFilter filter,
org.gcube.data.analysis.tabulardata.query.parameters.QueryOrder order)
|
String |
queryAsJson(org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.query.parameters.QueryPage page,
org.gcube.data.analysis.tabulardata.query.parameters.QueryOrder order)
|
void |
removeTabularResource(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId id)
|
org.gcube.data.analysis.tabulardata.model.table.Table |
rollbackToTable(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId tabularResourceId,
org.gcube.data.analysis.tabulardata.model.table.TableId toTableId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TabularDataServiceMock
public TabularDataServiceMock()
getTask
public org.gcube.data.analysis.tabulardata.service.operation.Task getTask(org.gcube.data.analysis.tabulardata.service.operation.Task.TaskId operationId,
org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId tabularResourceId)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTaskException,
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
- Specified by:
getTask in interface org.gcube.data.analysis.tabulardata.service.operation.OperationInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTaskException
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
getCapabilities
public List<org.gcube.data.analysis.tabulardata.operation.worker.EligibleOperation> getCapabilities()
- Specified by:
getCapabilities in interface org.gcube.data.analysis.tabulardata.service.operation.OperationInterface
getCapabilities
public List<org.gcube.data.analysis.tabulardata.operation.worker.EligibleOperation> getCapabilities(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId tabularResourceId)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
- Specified by:
getCapabilities in interface org.gcube.data.analysis.tabulardata.service.operation.OperationInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
getCapabilities
public List<org.gcube.data.analysis.tabulardata.operation.worker.EligibleOperation> getCapabilities(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId tabularResourceId,
org.gcube.data.analysis.tabulardata.model.column.ColumnLocalId columnId)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException,
org.gcube.data.analysis.tabulardata.service.exception.NoSuchColumnException
- Specified by:
getCapabilities in interface org.gcube.data.analysis.tabulardata.service.operation.OperationInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
org.gcube.data.analysis.tabulardata.service.exception.NoSuchColumnException
execute
public org.gcube.data.analysis.tabulardata.service.operation.Task execute(org.gcube.data.analysis.tabulardata.operation.worker.OperationInvocation invocation,
org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId targetTabularResourceId)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException,
org.gcube.data.analysis.tabulardata.service.exception.InvalidInvocationException
- Specified by:
execute in interface org.gcube.data.analysis.tabulardata.service.operation.OperationInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
org.gcube.data.analysis.tabulardata.service.exception.InvalidInvocationException
rollbackToTable
public org.gcube.data.analysis.tabulardata.model.table.Table rollbackToTable(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId tabularResourceId,
org.gcube.data.analysis.tabulardata.model.table.TableId toTableId)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException,
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
- Specified by:
rollbackToTable in interface org.gcube.data.analysis.tabulardata.service.operation.OperationInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
getTasks
public List<org.gcube.data.analysis.tabulardata.service.operation.Task> getTasks(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId tabularResourceId)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
- Specified by:
getTasks in interface org.gcube.data.analysis.tabulardata.service.operation.OperationInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
getTabularResources
public List<org.gcube.data.analysis.tabulardata.service.tabular.TabularResource> getTabularResources()
- Specified by:
getTabularResources in interface org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceInterface
getTabularResource
public org.gcube.data.analysis.tabulardata.service.tabular.TabularResource getTabularResource(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId id)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
- Specified by:
getTabularResource in interface org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
removeTabularResource
public void removeTabularResource(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId id)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
- Specified by:
removeTabularResource in interface org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
cloneTabularResource
public org.gcube.data.analysis.tabulardata.service.tabular.TabularResource cloneTabularResource(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId id)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
- Specified by:
cloneTabularResource in interface org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
cloneTabularResource
public org.gcube.data.analysis.tabulardata.service.tabular.TabularResource cloneTabularResource(org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId id,
org.gcube.data.analysis.tabulardata.model.table.TableId lastTableId)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException,
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
- Specified by:
cloneTabularResource in interface org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResourceException
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
createTabularResource
public org.gcube.data.analysis.tabulardata.service.tabular.TabularResource createTabularResource()
- Specified by:
createTabularResource in interface org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceInterface
queryAsJson
public String queryAsJson(org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.query.parameters.QueryPage page,
org.gcube.data.analysis.tabulardata.query.parameters.QueryFilter filter,
org.gcube.data.analysis.tabulardata.query.parameters.QueryOrder order)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
- Specified by:
queryAsJson in interface org.gcube.data.analysis.tabulardata.service.query.QueryInterfaceJson
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
getTable
public org.gcube.data.analysis.tabulardata.model.table.Table getTable(org.gcube.data.analysis.tabulardata.model.table.TableId tableId)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
- Specified by:
getTable in interface org.gcube.data.analysis.tabulardata.service.query.QueryInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
queryAsJson
public String queryAsJson(org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.query.parameters.QueryPage page,
org.gcube.data.analysis.tabulardata.query.parameters.QueryFilter filter)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
- Specified by:
queryAsJson in interface org.gcube.data.analysis.tabulardata.service.query.QueryInterfaceJson
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
getQueryLenght
public int getQueryLenght(org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.query.parameters.QueryFilter filter)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
- Specified by:
getQueryLenght in interface org.gcube.data.analysis.tabulardata.service.query.QueryInterface
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
queryAsJson
public String queryAsJson(org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.query.parameters.QueryPage page,
org.gcube.data.analysis.tabulardata.query.parameters.QueryOrder order)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
- Specified by:
queryAsJson in interface org.gcube.data.analysis.tabulardata.service.query.QueryInterfaceJson
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
queryAsJson
public String queryAsJson(org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.query.parameters.QueryPage page)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
- Specified by:
queryAsJson in interface org.gcube.data.analysis.tabulardata.service.query.QueryInterfaceJson
- Throws:
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
Copyright © 2013. All Rights Reserved.