com.joanju.cg.core
Class SessionSupers

java.lang.Object
  extended by com.joanju.cg.core.SessionSupers

public class SessionSupers
extends java.lang.Object

Provides static services for SessionSupers.


Constructor Summary
SessionSupers()
           
 
Method Summary
static void addSessionSuper(int cuid)
          Ensure that a super CUID is indexed and cross referenced.
static void checkForDropped()
          Check if any session supers are no longer being instantiated as such.
static java.util.HashSet<int[]> lookupForProcNameID(int procnameID)
          Lookup a set of session supers {cuid, procaddress} for a procedure name ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionSupers

public SessionSupers()
Method Detail

addSessionSuper

public static void addSessionSuper(int cuid)
                            throws java.sql.SQLException,
                                   java.io.IOException
Ensure that a super CUID is indexed and cross referenced. Ensures that there is a DeclsnsupInstr record for the CUID. If it's not already there, then it's added, and cross reference updates are done for the procedure names it defines.

Throws:
java.sql.SQLException
java.io.IOException

checkForDropped

public static void checkForDropped()
                            throws java.sql.SQLException,
                                   java.io.IOException
Check if any session supers are no longer being instantiated as such. This is called at the start of Checkvals. We examine each of the bytecode instructions in CUID_SESSIONSUPERS, and if there are no xref links from an AddsnsuperInstr to it, then it is no longer being instantiated.

Throws:
java.sql.SQLException
java.io.IOException

lookupForProcNameID

public static java.util.HashSet<int[]> lookupForProcNameID(int procnameID)
                                                    throws java.sql.SQLException,
                                                           java.io.IOException
Lookup a set of session supers {cuid, procaddress} for a procedure name ID.

Returns:
An empty set if none found. (Does not return null.)
Throws:
java.sql.SQLException
java.io.IOException


Copyright © 2008 Joanju Software. All Rights Reserved.