| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.debugger.model.SPDebugModelUtil
public class SPDebugModelUtil
Utility class to process routine debug model objects.
| Constructor Summary | |
|---|---|
| SPDebugModelUtil() | |
| Method Summary | |
|---|---|
| static void | changeAllBreakpointForSP(org.eclipse.datatools.sqltools.core.ProcIdentifier procid,
                         org.eclipse.datatools.sqltools.core.ProcIdentifier newprocid)Renames procid to newprocid in all breakpoints. | 
| static void | changeProfileName(java.lang.String oldName,
                  java.lang.String newName)Changes the profile name hold in DatabaseIdentifier of ProcIdentifier | 
| static SPLineBreakpoint | createLineBreakpoint(org.eclipse.datatools.sqltools.core.ProcIdentifier procid,
                     int lineNumber,
                     boolean register)Creates a line breakpoint at the specified line for the specified proc. | 
| static java.util.List | findAllLineBreakpoint(org.eclipse.datatools.sqltools.core.ProcIdentifier procid,
                      int lineNumber)Finds breakpoints of all types in a Routineidentified byprocid, at linelineNumber | 
| static java.util.List | findAllSPLineBreakpointForSP(org.eclipse.datatools.sqltools.core.ProcIdentifier procid)Finds all breakpoints belonging to the specified routine | 
| static SPLineBreakpoint | findLineBreakpoint(org.eclipse.datatools.sqltools.core.ProcIdentifier procid,
                   int lineNumber)Returns the breakpoint object in a Routineidentified byprocid, at linelineNumber | 
| static java.lang.String | getModelIdentifier()Returns the identifier of the debug model presentation the SPLineBreakpointis
 associated with. | 
| static java.lang.String[] | hasProcInDebugging(java.lang.String connectionProfileName)Tests whether there is a procedural object is in debugging session | 
| static boolean | isProcInDebugging(org.eclipse.datatools.sqltools.core.ProcIdentifier procid) | 
| static boolean | isSPBreakpointMarker(org.eclipse.core.resources.IMarker marker,
                     org.eclipse.datatools.sqltools.core.ProcIdentifier proc)Tests whether the marker is a SP breakpoint marker for the specified routine. | 
| static boolean | isSPBreakpointMarkerDelta(org.eclipse.core.resources.IMarkerDelta markerDelta,
                          org.eclipse.datatools.sqltools.core.ProcIdentifier identifier)Tests whether the markerDelta is a SP breakpoint marker delta for the specified routine. | 
| static void | removeAllBreakpointForSP(org.eclipse.datatools.sqltools.core.ProcIdentifier procid)Removes all breakpoints for a particular routine. | 
| static boolean | supportCondition(SPLineBreakpoint bp)Tests whether a breakpoint support condition. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SPDebugModelUtil()
| Method Detail | 
|---|
public static java.lang.String getModelIdentifier()
SPLineBreakpoint is
 associated with.
public static SPLineBreakpoint createLineBreakpoint(org.eclipse.datatools.sqltools.core.ProcIdentifier procid,
                                                    int lineNumber,
                                                    boolean register)
                                             throws org.eclipse.core.runtime.CoreException
procid - Routine identifierlineNumber - breakpoint line
org.eclipse.core.runtime.CoreException
public static SPLineBreakpoint findLineBreakpoint(org.eclipse.datatools.sqltools.core.ProcIdentifier procid,
                                                  int lineNumber)
Routine identified by procid, at line lineNumber
procid - Routine identifierlineNumber - line number
SPLineBreakpoint if any, otherwise null.
public static java.util.List findAllLineBreakpoint(org.eclipse.datatools.sqltools.core.ProcIdentifier procid,
                                                   int lineNumber)
Routine identified by procid, at line lineNumber
procid - Routine identifierlineNumber - line number
IBreakpoint, may be empty
public static boolean isSPBreakpointMarker(org.eclipse.core.resources.IMarker marker,
                                           org.eclipse.datatools.sqltools.core.ProcIdentifier proc)
marker - proc - Routine identifier
public static boolean isSPBreakpointMarkerDelta(org.eclipse.core.resources.IMarkerDelta markerDelta,
                                                org.eclipse.datatools.sqltools.core.ProcIdentifier identifier)
markerDelta - identifier - 
public static boolean supportCondition(SPLineBreakpoint bp)
                                throws org.eclipse.core.runtime.CoreException
bp - 
org.eclipse.core.runtime.CoreExceptionpublic static java.util.List findAllSPLineBreakpointForSP(org.eclipse.datatools.sqltools.core.ProcIdentifier procid)
procid - Routine identifier
SPLineBreakpoint, may be emptypublic static void removeAllBreakpointForSP(org.eclipse.datatools.sqltools.core.ProcIdentifier procid)
procid - Routine identifier
public static void changeAllBreakpointForSP(org.eclipse.datatools.sqltools.core.ProcIdentifier procid,
                                            org.eclipse.datatools.sqltools.core.ProcIdentifier newprocid)
procid - old Routine identifiernewprocid - new Routine identifierpublic static boolean isProcInDebugging(org.eclipse.datatools.sqltools.core.ProcIdentifier procid)
public static java.lang.String[] hasProcInDebugging(java.lang.String connectionProfileName)
connectionProfileName - name of connection profile
public static void changeProfileName(java.lang.String oldName,
                                     java.lang.String newName)
oldName - newName - | 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||