org.gcube.contentmanagement.timeseriesservice.impl.editing
Class RuleEditor
java.lang.Object
org.gcube.contentmanagement.timeseriesservice.impl.editing.EditProxy
org.gcube.contentmanagement.timeseriesservice.impl.editing.Edit
org.gcube.contentmanagement.timeseriesservice.impl.editing.RuleEditor
- All Implemented Interfaces:
- Serializable
public class RuleEditor
- extends Edit
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class org.gcube.contentmanagement.timeseriesservice.impl.editing.Edit |
Edit.TYPE |
| Fields inherited from class org.gcube.contentmanagement.timeseriesservice.impl.editing.Edit |
COUNT_ALIAS, CURATION_TABLE_ALIAS, DIMENSION_TABLE_ALIAS, editorType, fieldId, fieldlength, historyEditorList, internalColumndefinition, isUnderInitialization, resourceId, resourceTable, ROW_ID_LABEL, withoutErrors |
|
Constructor Summary |
RuleEditor(String resourceId,
String fieldId,
org.gcube.common.dbinterface.tables.SimpleTable resourceTable,
int[] fieldLength,
boolean withoutError,
List<Rule> rules,
ColumnDefinition[] columnsDefinition,
String... rowIdLabel)
|
|
Method Summary |
long |
check()
|
List<ErrorPair> |
getDistinctErrors()
|
String |
getPossibleValues(String word)
|
ColumnDefinition |
getTemporaryColumnDefinition(ColumnDefinition oldColumnDefinition)
|
protected void |
internalInitialize(org.gcube.common.dbinterface.pool.DBSession session)
|
void |
modifyDistinctEntryId(String fieldId,
String newId,
long rowId,
String dimensionId,
String keyName)
|
void |
modifyDistinctEntryValue(String fieldId,
long rowId,
String newValue)
|
void |
modifyEntryId(String fieldId,
String newId,
long rowId)
|
void |
replaceDistinctIds(String fieldId,
String oldId,
String newId,
String keyName)
|
void |
replaceDistinctValue(String fieldId,
String newValue,
String oldValue)
|
void |
replaceEntryValueWithId(String oldValue,
String newId,
String fieldId)
|
void |
replaceIds(String fieldId,
String oldId,
String newId)
|
void |
replaceValue(int rowId,
Object value)
|
| Methods inherited from class org.gcube.contentmanagement.timeseriesservice.impl.editing.Edit |
dismiss, errorCount, getCorrectsTable, getCorrectsTableName, getEditorType, getFieldId, getFieldLength, getHistoryItems, getIsUnderInitialization, getResultAsJson, getWrongsTable, getWrongsTableName, initialize, removeAllErrors, removeSingleError, save, setHistoryItems, setIsUnderInitialization, totalCount |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleEditor
public RuleEditor(String resourceId,
String fieldId,
org.gcube.common.dbinterface.tables.SimpleTable resourceTable,
int[] fieldLength,
boolean withoutError,
List<Rule> rules,
ColumnDefinition[] columnsDefinition,
String... rowIdLabel)
internalInitialize
protected void internalInitialize(org.gcube.common.dbinterface.pool.DBSession session)
throws Exception
- Specified by:
internalInitialize in class Edit
- Throws:
Exception
check
public long check()
throws Exception
- Specified by:
check in class Edit
- Throws:
Exception
replaceValue
public void replaceValue(int rowId,
Object value)
throws Exception
- Specified by:
replaceValue in class EditProxy
- Throws:
Exception
modifyEntryId
public void modifyEntryId(String fieldId,
String newId,
long rowId)
throws Exception
- Specified by:
modifyEntryId in class EditProxy
- Throws:
Exception
modifyDistinctEntryId
public void modifyDistinctEntryId(String fieldId,
String newId,
long rowId,
String dimensionId,
String keyName)
throws Exception
- Specified by:
modifyDistinctEntryId in class EditProxy
- Throws:
Exception
modifyDistinctEntryValue
public void modifyDistinctEntryValue(String fieldId,
long rowId,
String newValue)
throws Exception
- Specified by:
modifyDistinctEntryValue in class EditProxy
- Throws:
Exception
replaceIds
public void replaceIds(String fieldId,
String oldId,
String newId)
throws Exception
- Specified by:
replaceIds in class EditProxy
- Throws:
Exception
replaceDistinctValue
public void replaceDistinctValue(String fieldId,
String newValue,
String oldValue)
throws Exception
- Specified by:
replaceDistinctValue in class EditProxy
- Throws:
Exception
replaceDistinctIds
public void replaceDistinctIds(String fieldId,
String oldId,
String newId,
String keyName)
throws Exception
- Specified by:
replaceDistinctIds in class EditProxy
- Throws:
Exception
replaceEntryValueWithId
public void replaceEntryValueWithId(String oldValue,
String newId,
String fieldId)
throws Exception
- Specified by:
replaceEntryValueWithId in class EditProxy
- Throws:
Exception
getDistinctErrors
public List<ErrorPair> getDistinctErrors()
throws Exception
- Specified by:
getDistinctErrors in class EditProxy
- Throws:
Exception
getPossibleValues
public String getPossibleValues(String word)
throws Exception
- Specified by:
getPossibleValues in class EditProxy
- Throws:
Exception
getTemporaryColumnDefinition
public ColumnDefinition getTemporaryColumnDefinition(ColumnDefinition oldColumnDefinition)
throws Exception
- Specified by:
getTemporaryColumnDefinition in class EditProxy
- Throws:
Exception
Copyright © 2012. All Rights Reserved.