|
||||||||||
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()
ISchemaObjectEditModel
ISchemaObjectImmutableModel
getAdditionalSQLObjects
in interface ISchemaObjectEditModel
public org.eclipse.emf.ecore.util.EcoreUtil.Copier getCopier()
ISchemaObjectEditModel
getCopier
in interface ISchemaObjectEditModel
public SQLObject getMainSQLObject()
ISchemaObjectEditModel
getMainSQLObject
in interface ISchemaObjectEditModel
public ISchemaObjectImmutableModel getSchemaObjectImmutableModel()
ISchemaObjectEditModel
getSchemaObjectImmutableModel
in interface ISchemaObjectEditModel
public int refreshFromDB()
refreshFromDB
in interface ISchemaObjectEditModel
0
if successfully refresh, returns error code otherwiseISchemaObjectEditModel.FATAL_ERROR_MAIN_OBJ_LOST
,
ISchemaObjectEditModel.ERROR_REFRESH_ADDITIONAL_OBJ
public void revert()
ISchemaObjectEditModel
revert
in interface ISchemaObjectEditModel
public boolean checkModelExistence()
ISchemaObjectEditModel
checkModelExistence
in interface ISchemaObjectEditModel
public void startLogging()
ISchemaObjectEditModel
startLogging
in interface ISchemaObjectEditModel
public void stopLogging()
ISchemaObjectEditModel
stopLogging
in interface ISchemaObjectEditModel
public java.lang.String getDeltaDDL()
getDeltaDDL
in interface ISchemaObjectEditModel
public java.lang.String getEditorTooltipText()
ISchemaObjectEditModel
getEditorTooltipText
in interface ISchemaObjectEditModel
public java.lang.String getBackupedDDL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |