/// <summary> /// Handle any of the static commands /// </summary> /// <param name="commandId"></param> /// <returns></returns> private bool HandleStaticCommand(int commandId) { switch ((uint)commandId) { case PkgCmdIDList.cmdCreateTable: case PkgCmdIDList.cmdidGlobalCreateTable: TableNode.CreateNew(DataViewHierarchyAccessor); return(true); case PkgCmdIDList.cmdCreateProcedure: case PkgCmdIDList.cmdidGlobalCreateProcedure: StoredProcedureNode.CreateNew(DataViewHierarchyAccessor, false); return(true); case PkgCmdIDList.cmdCreateFunction: case PkgCmdIDList.cmdidGlobalCreateFunction: StoredProcedureNode.CreateNew(DataViewHierarchyAccessor, true); return(true); case PkgCmdIDList.cmdCreateView: case PkgCmdIDList.cmdidGlobalCreateView: ViewNode.CreateNew(DataViewHierarchyAccessor); return(true); case PkgCmdIDList.cmdCreateUDF: case PkgCmdIDList.cmdidGlobalCreateUDF: UdfNode.CreateNew(DataViewHierarchyAccessor); return(true); } return(false); }