org.gcube.contentmanagement.codelistmanager.managers.handlers
Class CodeListHandler
java.lang.Object
org.gcube.contentmanagement.codelistmanager.managers.handlers.CodeListHandler
- All Implemented Interfaces:
- CodeListCurationHandler
public class CodeListHandler
- extends Object
- implements CodeListCurationHandler
|
Method Summary |
boolean |
changeColumnDataType(String fieldId,
org.gcube.common.dbinterface.types.Type type,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
|
void |
changeColumnType(String fieldId,
TableField.ColumnType columnType,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping,
String... referenceCL)
|
Integer[] |
checkInvalidValues(String fieldId,
ColumnReference columnReference,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
|
Integer[] |
checkInvalidValues(String fieldId,
org.gcube.common.dbinterface.types.Type type,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
|
boolean |
checkRelationMatch(String relationFieldId,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
|
static CodeListHandler |
get()
|
boolean |
isMappingFinished(org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
|
boolean |
replaceValue(String fieldId,
String newValue,
int rowId,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeListHandler
public CodeListHandler()
get
public static CodeListHandler get()
replaceValue
public boolean replaceValue(String fieldId,
String newValue,
int rowId,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
throws Exception
- Specified by:
replaceValue in interface CodeListCurationHandler
- Throws:
Exception
changeColumnType
public void changeColumnType(String fieldId,
TableField.ColumnType columnType,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping,
String... referenceCL)
throws ColumnTypeNotSelectableException
- Specified by:
changeColumnType in interface CodeListCurationHandler
- Parameters:
fieldId - columnType -
- Throws:
ParentNotSelectableException
ColumnTypeNotSelectableException
checkRelationMatch
public boolean checkRelationMatch(String relationFieldId,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
- Specified by:
checkRelationMatch in interface CodeListCurationHandler
checkInvalidValues
public Integer[] checkInvalidValues(String fieldId,
org.gcube.common.dbinterface.types.Type type,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
throws Exception
- Specified by:
checkInvalidValues in interface CodeListCurationHandler
- Throws:
Exception
checkInvalidValues
public Integer[] checkInvalidValues(String fieldId,
ColumnReference columnReference,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
throws Exception
- Specified by:
checkInvalidValues in interface CodeListCurationHandler
- Throws:
Exception
changeColumnDataType
public boolean changeColumnDataType(String fieldId,
org.gcube.common.dbinterface.types.Type type,
org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
throws NullValuesOnCastException
- Specified by:
changeColumnDataType in interface CodeListCurationHandler
- Throws:
NullValuesOnCastException
isMappingFinished
public boolean isMappingFinished(org.gcube.common.dbinterface.tables.SimpleTable table,
Hashtable<String,TableField> fieldLabelMapping)
- Specified by:
isMappingFinished in interface CodeListCurationHandler
Copyright © 2013. All Rights Reserved.