|
||||||||||
| 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
public abstract class Edit
| Nested Class Summary | |
|---|---|
static class |
Edit.TYPE
|
| Field Summary | |
|---|---|
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 Status |
isUnderInitialization
|
protected String |
resourceId
|
protected org.gcube.common.dbinterface.tables.SimpleTable |
resourceTable
|
protected String |
ROW_ID_LABEL
|
protected boolean |
withoutErrors
|
| Constructor Summary | |
|---|---|
Edit(String resourceId,
String fieldId,
org.gcube.common.dbinterface.tables.SimpleTable resourceTable,
int[] fieldlength,
boolean withoutError,
String... rowIdLabel)
|
|
| Method Summary | |
|---|---|
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()
|
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(Status isUnderInitialization)
sets the initialization Status |
long |
totalCount()
the total entries count |
| Methods inherited from class org.gcube.contentmanagement.timeseriesservice.impl.editing.EditProxy |
|---|
getDistinctErrors, getPossibleValues, getTemporaryColumnDefinition, modifyDistinctEntryId, modifyDistinctEntryValue, modifyEntryId, replaceDistinctIds, replaceDistinctValue, replaceEntryValueWithId, replaceIds, replaceValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected 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 Status isUnderInitialization
protected org.gcube.common.dbinterface.tables.SimpleTable resourceTable
protected org.gcube.common.dbinterface.ColumnDefinition[] internalColumndefinition
protected LinkedList<CurationHistoryItem> historyEditorList
| Constructor Detail |
|---|
public Edit(String resourceId,
String fieldId,
org.gcube.common.dbinterface.tables.SimpleTable resourceTable,
int[] fieldlength,
boolean withoutError,
String... rowIdLabel)
| Method Detail |
|---|
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
Exception
public abstract long check()
throws Exception
Exception
public void save()
throws Exception
Exception - -
public 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 entries
Exception - -
OperationNotSupportedException
public long errorCount()
throws Exception
Exception
public long totalCount()
throws Exception
Exceptionpublic void dismiss()
public Status getIsUnderInitialization()
public void setIsUnderInitialization(Status isUnderInitialization)
isUnderInitialization - the Statuspublic LinkedList<CurationHistoryItem> getHistoryItems()
getHistoryItems in class EditProxypublic void setHistoryItems(LinkedList<CurationHistoryItem> historyEditorList)
historyEditorList -
public int removeAllErrors()
throws Exception
Exception
public int removeSingleError(long rowId)
throws Exception
Exceptionprotected String getCorrectsTableName()
protected String getWrongsTableName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||