|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.schemaobjecteditor.model.AbstractSchemaObjectEditModel
public abstract class AbstractSchemaObjectEditModel
The class is resoponsible for cloning SQL objects for edit purpose.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.datatools.sqltools.schemaobjecteditor.model.ISchemaObjectEditModel |
|---|
ERROR_REFRESH_ADDITIONAL_OBJ, FATAL_ERROR_MAIN_OBJ_LOST, REFRESH_SUCCESSFUL |
| Constructor Summary | |
|---|---|
AbstractSchemaObjectEditModel(ISchemaObjectImmutableModel model,
org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier)
|
|
| 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 |
java.lang.String |
getBackupedDDL()
if the Main SQLObject is lost, to call the method to get the backuped DDL. |
org.eclipse.emf.ecore.util.EcoreUtil.Copier |
getCopier()
Returns the copier |
java.lang.String |
getDeltaDDL()
Sub class should override this method to return the delta ddl |
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()
After the model is refreshed, should re-clone these objects |
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 class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Constructor Detail |
|---|
public AbstractSchemaObjectEditModel(ISchemaObjectImmutableModel model,
org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier)
| Method Detail |
|---|
public java.util.Map getAdditionalSQLObjects()
ISchemaObjectEditModelISchemaObjectImmutableModel
getAdditionalSQLObjects in interface ISchemaObjectEditModelpublic org.eclipse.emf.ecore.util.EcoreUtil.Copier getCopier()
ISchemaObjectEditModel
getCopier in interface ISchemaObjectEditModelpublic SQLObject getMainSQLObject()
ISchemaObjectEditModel
getMainSQLObject in interface ISchemaObjectEditModelpublic ISchemaObjectImmutableModel getSchemaObjectImmutableModel()
ISchemaObjectEditModel
getSchemaObjectImmutableModel in interface ISchemaObjectEditModelpublic int refreshFromDB()
refreshFromDB in interface ISchemaObjectEditModel0 if successfully refresh, returns error code otherwiseISchemaObjectEditModel.FATAL_ERROR_MAIN_OBJ_LOST,
ISchemaObjectEditModel.ERROR_REFRESH_ADDITIONAL_OBJpublic void revert()
ISchemaObjectEditModel
revert in interface ISchemaObjectEditModelpublic boolean checkModelExistence()
ISchemaObjectEditModel
checkModelExistence in interface ISchemaObjectEditModelpublic void startLogging()
ISchemaObjectEditModel
startLogging in interface ISchemaObjectEditModelpublic void stopLogging()
ISchemaObjectEditModel
stopLogging in interface ISchemaObjectEditModelpublic java.lang.String getDeltaDDL()
getDeltaDDL in interface ISchemaObjectEditModelpublic java.lang.String getEditorTooltipText()
ISchemaObjectEditModel
getEditorTooltipText in interface ISchemaObjectEditModelpublic java.lang.String getBackupedDDL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||