public abstract class Edit extends EditProxy implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Edit.TYPE |
| Modifier and Type | Field and Description |
|---|---|
protected String |
COUNT_ALIAS |
protected String |
CURATION_TABLE_ALIAS |
protected String |
DIMENSION_TABLE_ALIAS |
protected Edit.TYPE |
editorType |
protected String |
fieldId |
protected int[] |
fieldlength |
protected LinkedList<CurationHistoryItem> |
historyEditorList |
protected org.gcube.common.dbinterface.ColumnDefinition[] |
internalColumndefinition |
protected org.gcube.contentmanagement.timeseriesservice.stubs.types.Status |
isUnderInitialization |
protected String |
resourceId |
protected org.gcube.common.dbinterface.tables.SimpleTable |
resourceTable |
protected String |
ROW_ID_LABEL |
protected boolean |
withoutErrors |
| Constructor and Description |
|---|
Edit(String resourceId,
String fieldId,
org.gcube.common.dbinterface.tables.SimpleTable resourceTable,
int[] fieldlength,
boolean withoutError,
String... rowIdLabel) |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
check() |
void |
dismiss()
exits from edit mode and removes all the temporary tables
|
long |
errorCount()
return the number of errors for this column setting
|
protected org.gcube.common.dbinterface.tables.SimpleTable |
getCorrectsTable() |
protected String |
getCorrectsTableName() |
Edit.TYPE |
getEditorType() |
String |
getFieldId() |
int[] |
getFieldLength() |
LinkedList<CurationHistoryItem> |
getHistoryItems() |
org.gcube.contentmanagement.timeseriesservice.stubs.types.Status |
getIsUnderInitialization()
set the Status for the edit initialization
|
String |
getResultAsJson(org.gcube.common.dbinterface.queries.Select query,
boolean onlyErrors)
allows user to retrieve all the information in the table as JSon
|
protected org.gcube.common.dbinterface.tables.SimpleTable |
getWrongsTable() |
protected String |
getWrongsTableName() |
void |
initialize() |
protected abstract void |
internalInitialize(org.gcube.common.dbinterface.pool.DBSession session) |
int |
removeAllErrors() |
int |
removeSingleError(long rowId) |
void |
save()
saves the current set
|
void |
setHistoryItems(LinkedList<CurationHistoryItem> historyEditorList) |
void |
setIsUnderInitialization(org.gcube.contentmanagement.timeseriesservice.stubs.types.Status isUnderInitialization)
sets the initialization Status
|
void |
setIsUnderInitialization(String isUnderInitialization) |
long |
totalCount()
the total entries count
|
getDistinctErrors, getPossibleValues, getTemporaryColumnDefinition, modifyDistinctEntryId, modifyDistinctEntryValue, modifyEntryId, replaceDistinctIds, replaceDistinctValue, replaceEntryValueWithId, replaceIds, replaceValueprotected Edit.TYPE editorType
protected String ROW_ID_LABEL
protected final String CURATION_TABLE_ALIAS
protected final String DIMENSION_TABLE_ALIAS
protected final String COUNT_ALIAS
protected String fieldId
protected boolean withoutErrors
protected String resourceId
protected int[] fieldlength
protected org.gcube.contentmanagement.timeseriesservice.stubs.types.Status isUnderInitialization
protected org.gcube.common.dbinterface.tables.SimpleTable resourceTable
protected org.gcube.common.dbinterface.ColumnDefinition[] internalColumndefinition
protected LinkedList<CurationHistoryItem> historyEditorList
public String getFieldId()
public Edit.TYPE getEditorType()
public int[] getFieldLength()
protected org.gcube.common.dbinterface.tables.SimpleTable getCorrectsTable()
protected org.gcube.common.dbinterface.tables.SimpleTable getWrongsTable()
public void initialize()
protected abstract void internalInitialize(org.gcube.common.dbinterface.pool.DBSession session)
throws Exception
Exceptionpublic String getResultAsJson(org.gcube.common.dbinterface.queries.Select query, boolean onlyErrors) throws OperationNotSupportedException, Exception
limit - the query limitonlyErrors - if true the method returns only the wrong entriesException - -OperationNotSupportedExceptionpublic long errorCount()
throws Exception
Exceptionpublic long totalCount()
throws Exception
Exceptionpublic void dismiss()
public org.gcube.contentmanagement.timeseriesservice.stubs.types.Status getIsUnderInitialization()
public void setIsUnderInitialization(org.gcube.contentmanagement.timeseriesservice.stubs.types.Status isUnderInitialization)
isUnderInitialization - the Statuspublic void setIsUnderInitialization(String isUnderInitialization)
isUnderInitialization - Status as stringpublic LinkedList<CurationHistoryItem> getHistoryItems()
getHistoryItems in class EditProxypublic void setHistoryItems(LinkedList<CurationHistoryItem> historyEditorList)
historyEditorList - public int removeAllErrors()
throws Exception
Exceptionprotected String getCorrectsTableName()
protected String getWrongsTableName()
Copyright © 2014. All Rights Reserved.