eu.bootstrep.Utilities
Class GeneralMethods

java.lang.Object
  extended by eu.bootstrep.Utilities.GeneralMethods

public class GeneralMethods
extends java.lang.Object

This class contains general purpose methods to clear and load data into tables.


Field Summary
(package private)  DbMethods DB
          DB
(package private)  Variables LOV
          Variables
(package private)  Logger xmlLog
          Logger
 
Constructor Summary
GeneralMethods()
          Creates a new instance of StagingTables
 
Method Summary
 void clearTables(PropertyBean PB, MainBean MB, MessageBean mesBn, TableBean tabBn, ListBean LB, java.lang.Integer when, java.lang.Boolean clean)
          This method creates table lists at various process steps.
 void clearTablesAtStart(PropertyBean PB, MainBean MB, MessageBean mesBn, java.lang.String tName)
          This method clears tables.
 void executeSelectTargetTables(PropertyBean PB, MainBean MB, MessageBean mesBn, TableBean tabBn, ListBean LB, java.lang.Integer when)
          This method executes select instructions to load data into tables belonging to target frame.
 void loadIntoTables(PropertyBean PB, MainBean MB, MessageBean mesBn, TableBean tabBn, ListBean LB, java.lang.Integer when)
          This method loads data into staging/target tables.
 void prepareTargetTables(PropertyBean PB, MainBean MB, MessageBean mesBn, TableBean tabBn, ListBean LB, java.lang.Integer when, java.lang.String alias)
          This method manages the TheTable bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOV

Variables LOV
Variables


DB

DbMethods DB
DB


xmlLog

Logger xmlLog
Logger

Constructor Detail

GeneralMethods

public GeneralMethods()
Creates a new instance of StagingTables

Method Detail

clearTables

public void clearTables(PropertyBean PB,
                        MainBean MB,
                        MessageBean mesBn,
                        TableBean tabBn,
                        ListBean LB,
                        java.lang.Integer when,
                        java.lang.Boolean clean)
This method creates table lists at various process steps. The when parameter identifies these steps: When clear is true, the clearTablesAtStart method is executed and tables are cleaned, otherwise TableBean bean is updated with lists of tables

Parameters:
PB - The PropertyBean
MB - The MainBean
mesBn - The MessageBean
tabBn - The TableBean
LB - The ListBean
when - The kind of table
clean - Boolean, true to clean tables

clearTablesAtStart

public void clearTablesAtStart(PropertyBean PB,
                               MainBean MB,
                               MessageBean mesBn,
                               java.lang.String tName)
This method clears tables.

Parameters:
PB - The PropertyBean
MB - The MainBean
mesBn - The MessageBean
tName - Table to clear

loadIntoTables

public void loadIntoTables(PropertyBean PB,
                           MainBean MB,
                           MessageBean mesBn,
                           TableBean tabBn,
                           ListBean LB,
                           java.lang.Integer when)
This method loads data into staging/target tables. Input parameter when selects kind of tables.
For staging tables, when=0, this method performs the following steps: For other tables, this method performs:

Parameters:
PB - The PropertyBean
MB - The MainBean
mesBn - The MessageBean
tabBn - The TableBean
LB - The ListBean

executeSelectTargetTables

public void executeSelectTargetTables(PropertyBean PB,
                                      MainBean MB,
                                      MessageBean mesBn,
                                      TableBean tabBn,
                                      ListBean LB,
                                      java.lang.Integer when)
This method executes select instructions to load data into tables belonging to target frame.
Target and Staging frame, in the BioLexicon database, are in 1 to many relationship. This means that 1 "target" table contains data from 1 or more "staging" tables.
This method performs the following steps:

Parameters:
PB - The PropertyBean
MB - The MainBean
mesBn - The MessageBean
tabBn - The TableBean
LB - The ListBean

prepareTargetTables

public void prepareTargetTables(PropertyBean PB,
                                MainBean MB,
                                MessageBean mesBn,
                                TableBean tabBn,
                                ListBean LB,
                                java.lang.Integer when,
                                java.lang.String alias)
This method manages the TheTable bean. This is an essential method for loading target frame tables. Target frame and staging frame, in the BioLexicon database, are in 1 to many relationship. This means that 1 "target" table contains data from 1 or more "staging" tables.
This method performs the following steps: This method is executed before the executeSelectTargetTable() method

Parameters:
PB - The PropertyBean
MB - The MainBean
mesBn - The MessageBean
tabBn - The TableBean
LB - The ListBean
when - An integer to select table type
alias - A string. Default is X, however C and S are used to manage tables defined by same XML element at various deep. For example, <Relation / > defines SENSERELATION table both with deep 4, as subnode of <Cluster /gt; (alias=C) and with deep 8 as subnode of <Entry /> (alias=S)