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.sqltools.schemaobjecteditor.model.AbstractSchemaObjectEditModel
       org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.routineeditor.model.ProceduralObjectEditModel
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:
- startLoggingin interface- ISchemaObjectEditModel
- Overrides:
- startLoggingin 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:
- stopLoggingin interface- ISchemaObjectEditModel
- Overrides:
- stopLoggingin 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:
- getDeltaDDLin interface- ISchemaObjectEditModel
- Overrides:
- getDeltaDDLin 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:
- refreshFromDBin interface- ISchemaObjectEditModel
- Overrides:
- refreshFromDBin class- AbstractSchemaObjectEditModel
 
- 
- Returns:
- 0if 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)
-