|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.contentmanagement.timeseriesservice.impl.editing.EditProxy
org.gcube.contentmanagement.timeseriesservice.impl.editing.Edit
org.gcube.contentmanagement.timeseriesservice.impl.editing.DimensionEditor
public class DimensionEditor
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gcube.contentmanagement.timeseriesservice.impl.editing.Edit |
|---|
Edit.TYPE |
| Field Summary | |
|---|---|
protected org.gcube.common.dbinterface.tables.SimpleTable |
dimensionTable
|
| 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 | |
|---|---|
DimensionEditor(String resourceId,
String fieldId,
String codelistId,
String keyId,
org.gcube.common.dbinterface.tables.SimpleTable resourceTable,
int[] fieldlength,
int resourceTableCount,
boolean withoutErrors)
constructor |
|
| Method Summary | |
|---|---|
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<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 |
| Methods inherited from class org.gcube.contentmanagement.timeseriesservice.impl.editing.Edit |
|---|
dismiss, errorCount, getCorrectsTable, getCorrectsTableName, getEditorType, 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 |
| Field Detail |
|---|
protected org.gcube.common.dbinterface.tables.SimpleTable dimensionTable
| Constructor Detail |
|---|
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 table
Exception - -| Method Detail |
|---|
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 name
public void modifyEntryId(String fieldId,
String newId,
long rowId)
throws Exception
modifyEntryId in class EditProxyfieldId - the field idnewId - the new idrowId - the row id
Exception - -
public void modifyDistinctEntryId(String fieldId,
String newId,
long rowId,
String dimensionId,
String keyName)
throws Exception
modifyDistinctEntryId in class EditProxyfieldId - newId - rowId - dimensionId - keyName -
Exception
public void modifyDistinctEntryValue(String fieldId,
long rowId,
String newValue)
throws Exception
modifyDistinctEntryValue in class EditProxyfieldId - rowId - newValue -
Exception
public void replaceIds(String fieldId,
String oldId,
String newId)
throws Exception
replaceIds in class EditProxyfieldId - field idoldId - old value idnewId - new value id
Exception - -
public void replaceDistinctValue(String fieldId,
String newValue,
String oldValue)
throws Exception
replaceDistinctValue in class EditProxyfieldId - field idnewValue - new valueoldValue - old value
Exception - -
public void replaceDistinctIds(String fieldId,
String oldId,
String newId,
String keyName)
throws Exception
replaceDistinctIds in class EditProxyfieldId - field idoldValue - old valuenewValue - new value
Exception - -public int[] getFieldLength()
getFieldLength in class Editpublic void setFieldLength(int[] fieldLength)
fieldLength - the field length
public void replaceEntryValueWithId(String oldValue,
String newId,
String fieldId)
throws Exception
replaceEntryValueWithId in class EditProxyoldValue - old valuenewId - new value idfieldId - field id
Exception - -
public List<ErrorPair> getDistinctErrors()
throws Exception
getDistinctErrors in class EditProxyException
public long check()
throws Exception
check in class EditdimensionId - dimension idfieldId - field idkeyName - key name
Exception - -public org.gcube.common.dbinterface.tables.SimpleTable getDimensionTable()
public void replaceValue(int rowId,
Object value)
throws Exception
replaceValue in class EditProxyException
public String getPossibleValues(String word)
throws Exception
getPossibleValues in class EditProxyException
public org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition getTemporaryColumnDefinition(org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition oldColumnDefinition)
throws Exception
getTemporaryColumnDefinition in class EditProxyException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||