public class DimensionEditor extends Edit
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.common.dbinterface.tables.SimpleTable |
dimensionTable |
COUNT_ALIAS, CURATION_TABLE_ALIAS, DIMENSION_TABLE_ALIAS, editorType, fieldId, fieldlength, historyEditorList, internalColumndefinition, isUnderInitialization, resourceId, resourceTable, ROW_ID_LABEL, withoutErrors| Constructor and Description |
|---|
DimensionEditor(String resourceId,
String fieldId,
String codelistId,
String keyId,
org.gcube.common.dbinterface.tables.SimpleTable resourceTable,
int[] fieldlength,
int resourceTableCount,
boolean withoutErrors)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
check()
checks how many errors there will be in edit mode for a specific dimension setting
|
String |
getCodelistId() |
org.gcube.common.dbinterface.tables.SimpleTable |
getDimensionTable() |
String |
getDimensionTableNameHuman()
returns the table name human readable
|
List<org.gcube.contentmanagement.timeseriesservice.stubs.ErrorPair> |
getDistinctErrors() |
String |
getFieldId() |
int[] |
getFieldLength() |
String |
getKeyId() |
org.gcube.common.dbinterface.types.Type |
getKeyType() |
String |
getPossibleValues(String word) |
org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition |
getTemporaryColumnDefinition(org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition oldColumnDefinition) |
void |
internalInitialize(org.gcube.common.dbinterface.pool.DBSession session)
initializes the Field Editor
|
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)
modifies an entry with a specific fieldId with the entry corresponding to the newId in the entry with selected row id
|
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) |
void |
setCodelistId(String codelistId)
sets the dimension id
|
void |
setDimensionTableNameHuman(String dimensionTableNameHuman)
sets the dimension table name human
|
void |
setFieldLength(int[] fieldLength) |
void |
setKeyName(String keyId)
sets the key name
|
void |
setKeyType(org.gcube.common.dbinterface.types.Type keyType)
set the key type
|
dismiss, errorCount, getCorrectsTable, getCorrectsTableName, getEditorType, getHistoryItems, getIsUnderInitialization, getResultAsJson, getWrongsTable, getWrongsTableName, initialize, removeAllErrors, removeSingleError, save, setHistoryItems, setIsUnderInitialization, setIsUnderInitialization, totalCountprotected org.gcube.common.dbinterface.tables.SimpleTable dimensionTable
public DimensionEditor(String resourceId, String fieldId, String codelistId, String keyId, org.gcube.common.dbinterface.tables.SimpleTable resourceTable, int[] fieldlength, int resourceTableCount, boolean withoutErrors) throws Exception
resourceId - the associated resource idfieldId - the field iddimensionId - the dimension idkeyName - the key nameresourceTableName - the resource table namewithoutError - the error checkfieldlength - the length of the fieldsresourceTableCount - the number of entries in the original tableException - -public void internalInitialize(org.gcube.common.dbinterface.pool.DBSession session)
throws Exception
internalInitialize in class EditExceptionpublic String getFieldId()
getFieldId in class Editpublic org.gcube.common.dbinterface.types.Type getKeyType()
public void setKeyType(org.gcube.common.dbinterface.types.Type keyType)
keyType - key type to setpublic String getKeyId()
public void setKeyName(String keyId)
keyName - key name to setpublic String getCodelistId()
public void setCodelistId(String codelistId)
dimensionId - dimension idpublic String getDimensionTableNameHuman()
public void setDimensionTableNameHuman(String dimensionTableNameHuman)
dimensionTableNameHuman - the table namepublic void modifyEntryId(String fieldId, String newId, long rowId) throws Exception
modifyEntryId in class EditProxyfieldId - the field idnewId - the new idrowId - the row idException - -public void modifyDistinctEntryId(String fieldId, String newId, long rowId, String dimensionId, String keyName) throws Exception
modifyDistinctEntryId in class EditProxyfieldId - newId - rowId - dimensionId - keyName - Exceptionpublic void modifyDistinctEntryValue(String fieldId, long rowId, String newValue) throws Exception
modifyDistinctEntryValue in class EditProxyfieldId - rowId - newValue - Exceptionpublic void replaceIds(String fieldId, String oldId, String newId) throws Exception
replaceIds in class EditProxyfieldId - field idoldId - old value idnewId - new value idException - -public void replaceDistinctValue(String fieldId, String newValue, String oldValue) throws Exception
replaceDistinctValue in class EditProxyfieldId - field idnewValue - new valueoldValue - old valueException - -public void replaceDistinctIds(String fieldId, String oldId, String newId, String keyName) throws Exception
replaceDistinctIds in class EditProxyfieldId - field idoldValue - old valuenewValue - new valueException - -public int[] getFieldLength()
getFieldLength in class Editpublic void setFieldLength(int[] fieldLength)
fieldLength - the field lengthpublic void replaceEntryValueWithId(String oldValue, String newId, String fieldId) throws Exception
replaceEntryValueWithId in class EditProxyoldValue - old valuenewId - new value idfieldId - field idException - -public List<org.gcube.contentmanagement.timeseriesservice.stubs.ErrorPair> getDistinctErrors() throws Exception
getDistinctErrors in class EditProxyExceptionpublic long check()
throws Exception
public org.gcube.common.dbinterface.tables.SimpleTable getDimensionTable()
public void replaceValue(int rowId,
Object value)
throws Exception
replaceValue in class EditProxyExceptionpublic String getPossibleValues(String word) throws Exception
getPossibleValues in class EditProxyExceptionpublic org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition getTemporaryColumnDefinition(org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition oldColumnDefinition)
throws Exception
getTemporaryColumnDefinition in class EditProxyExceptionCopyright © 2015. All Rights Reserved.