Class IDRSReport

java.lang.Object
  |
  +--IDRSReport

public class IDRSReport
extends java.lang.Object

Parses an RML document and produces a full HTML or JSP document


Constructor Summary
IDRSReport(java.io.PrintWriter out, java.lang.String source, boolean isFile, int UserNum, java.util.Hashtable conns, int docId, java.lang.String url)
          Pre:out is a valid PrintStream, soucre contains either a filename for or the source of an RML document , isFile says if source is a filename Post:initializes as instance variables
 
Method Summary
 void addVar(java.lang.String val, java.lang.String ID)
          adds a value to a variable list
 void addVarList(java.lang.String ID)
          adds a list of parameters
 void addVarName(java.lang.String val, java.lang.String ID)
          Needed for the idrs servlet in order to generate next and previouse links
 void buildReport()
          Public method for building the report.
 void clearVarList()
          clears the var list
 void clearVars(java.lang.String ID)
          clears a variable list for a db
 void editVar(int index, java.lang.String val, java.lang.String ID)
          changes a value in a variable list
 java.util.Hashtable getCacheDBs()
           
 java.util.Hashtable getConns()
          Retrieves all connections used by the report
 void removeVar(int index, java.lang.String ID)
          removes a value from a variable list
 void removeVarList(java.lang.String ID)
          removes a list of variables
 void setCache(java.util.Hashtable cache)
           
 void setPageFirst(java.lang.String db, int first)
          Sets the first record for a report's db
 void setPageSize(java.lang.String db, int size)
          Sets the pagesize for a report's db
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDRSReport

public IDRSReport(java.io.PrintWriter out,
                  java.lang.String source,
                  boolean isFile,
                  int UserNum,
                  java.util.Hashtable conns,
                  int docId,
                  java.lang.String url)
           throws java.lang.Exception
Pre:out is a valid PrintStream, soucre contains either a filename for or the source of an RML document , isFile says if source is a filename Post:initializes as instance variables
Method Detail

setCache

public void setCache(java.util.Hashtable cache)
              throws java.lang.Exception

buildReport

public void buildReport()
                 throws java.lang.Exception
Public method for building the report. once completed the report has benn fully built

getConns

public java.util.Hashtable getConns()
                             throws java.lang.Exception
Retrieves all connections used by the report

addVarList

public void addVarList(java.lang.String ID)
                throws java.lang.Exception
adds a list of parameters

removeVarList

public void removeVarList(java.lang.String ID)
                   throws java.lang.Exception
removes a list of variables

clearVarList

public void clearVarList()
                  throws java.lang.Exception
clears the var list

addVar

public void addVar(java.lang.String val,
                   java.lang.String ID)
            throws java.lang.Exception
adds a value to a variable list

addVarName

public void addVarName(java.lang.String val,
                       java.lang.String ID)
                throws java.lang.Exception
Needed for the idrs servlet in order to generate next and previouse links

removeVar

public void removeVar(int index,
                      java.lang.String ID)
               throws java.lang.Exception
removes a value from a variable list

editVar

public void editVar(int index,
                    java.lang.String val,
                    java.lang.String ID)
             throws java.lang.Exception
changes a value in a variable list

clearVars

public void clearVars(java.lang.String ID)
               throws java.lang.Exception
clears a variable list for a db

setPageSize

public void setPageSize(java.lang.String db,
                        int size)
                 throws java.lang.Exception
Sets the pagesize for a report's db

setPageFirst

public void setPageFirst(java.lang.String db,
                         int first)
                  throws java.lang.Exception
Sets the first record for a report's db

getCacheDBs

public java.util.Hashtable getCacheDBs()
                                throws java.lang.Exception