|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISchemaObjectEditModel
The schema object edit model is defined for schema object editor, as part of editor input, this model provides data
to the schema object editor, modifications are also stored in this model as well.
The underlying SQL model object in this model is a cloned one from SchemaObjectImmutableModel
The initial status of the underlying SQL model object is kept in the ISchemaObjectImmutableModel
, which
is the real SQL model object in the big SQL model instances map.
Field Summary | |
---|---|
static int |
ERROR_REFRESH_ADDITIONAL_OBJ
|
static int |
FATAL_ERROR_MAIN_OBJ_LOST
|
static int |
REFRESH_SUCCESSFUL
|
Method Summary | |
---|---|
boolean |
checkModelExistence()
Check model existence |
java.util.Map |
getAdditionalSQLObjects()
Returns the additional SQL objects, the items defined here should has an onte-to-one relationship with those additional SQL objects defined in ISchemaObjectImmutableModel |
org.eclipse.emf.ecore.util.EcoreUtil.Copier |
getCopier()
Returns the copier |
java.lang.String |
getDeltaDDL()
Returns the delta ddl which will be used to execute |
java.lang.String |
getEditorTooltipText()
Returns the tooltip text for the editor in which this edit model is being edited |
SQLObject |
getMainSQLObject()
Returns the underlying SQL object |
ISchemaObjectImmutableModel |
getSchemaObjectImmutableModel()
Returns the immutable model of this edit model |
int |
refreshFromDB()
Refreshes the edit model to make it sychronize with DB, this will be delegated to the immutable model to refresh |
void |
revert()
Reverts the edit model using the immutable model |
void |
startLogging()
Starts logging, this can be manually called when the editing is started. |
void |
stopLogging()
Stops logging, this should be manually called when the editing is finished |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
static final int REFRESH_SUCCESSFUL
static final int FATAL_ERROR_MAIN_OBJ_LOST
static final int ERROR_REFRESH_ADDITIONAL_OBJ
Method Detail |
---|
void revert()
ISchemaObjectImmutableModel getSchemaObjectImmutableModel()
int refreshFromDB()
0
if successfully refresh, returns error code otherwiseFATAL_ERROR_MAIN_OBJ_LOST
,
ERROR_REFRESH_ADDITIONAL_OBJ
SQLObject getMainSQLObject()
java.util.Map getAdditionalSQLObjects()
ISchemaObjectImmutableModel
org.eclipse.emf.ecore.util.EcoreUtil.Copier getCopier()
java.lang.String getDeltaDDL()
void startLogging()
void stopLogging()
java.lang.String getEditorTooltipText()
boolean checkModelExistence()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |