org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.routineeditor.model
Class ProceduralObjectEditModel
java.lang.Object
org.eclipse.datatools.sqltools.schemaobjecteditor.model.AbstractSchemaObjectEditModel
org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.routineeditor.model.ProceduralObjectEditModel
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, ISchemaObjectEditModel
public class ProceduralObjectEditModel
- extends AbstractSchemaObjectEditModel
TODO use a factory to create the edit model
- Author:
- Hui Cao
Method Summary |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
java.lang.String |
getDeltaDDL()
Sub class should override this method to return the delta ddl |
org.eclipse.datatools.sqltools.core.ProcIdentifier |
getProcIdentifier()
|
boolean |
isReservePrivileges()
|
int |
refreshFromDB()
After the model is refreshed, should re-clone these objects |
void |
setReservePrivileges(boolean reservePrivileges)
|
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 |
ProceduralObjectEditModel
public ProceduralObjectEditModel(ISchemaObjectImmutableModel model,
org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier)
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
startLogging
public void startLogging()
- Description copied from interface:
ISchemaObjectEditModel
- Starts logging, this can be manually called when the editing is started. And it is called after the model is
cloned.
- Specified by:
startLogging
in interface ISchemaObjectEditModel
- Overrides:
startLogging
in class AbstractSchemaObjectEditModel
stopLogging
public void stopLogging()
- Description copied from interface:
ISchemaObjectEditModel
- Stops logging, this should be manually called when the editing is finished
- Specified by:
stopLogging
in interface ISchemaObjectEditModel
- Overrides:
stopLogging
in class AbstractSchemaObjectEditModel
getDeltaDDL
public java.lang.String getDeltaDDL()
- Description copied from class:
AbstractSchemaObjectEditModel
- Sub class should override this method to return the delta ddl
- Specified by:
getDeltaDDL
in interface ISchemaObjectEditModel
- Overrides:
getDeltaDDL
in class AbstractSchemaObjectEditModel
- Returns:
getProcIdentifier
public org.eclipse.datatools.sqltools.core.ProcIdentifier getProcIdentifier()
refreshFromDB
public int refreshFromDB()
- Description copied from class:
AbstractSchemaObjectEditModel
- After the model is refreshed, should re-clone these objects
- Specified by:
refreshFromDB
in interface ISchemaObjectEditModel
- Overrides:
refreshFromDB
in class AbstractSchemaObjectEditModel
- Returns:
0
if successfully refresh, returns error code otherwise- See Also:
ISchemaObjectEditModel.FATAL_ERROR_MAIN_OBJ_LOST
,
ISchemaObjectEditModel.ERROR_REFRESH_ADDITIONAL_OBJ
isReservePrivileges
public boolean isReservePrivileges()
setReservePrivileges
public void setReservePrivileges(boolean reservePrivileges)