|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.bootstrep.newbiolex.Process
public class Process
This class models ETL process. The loading of data from an input file into target tables is an ETL process. The three phases can be summarized as follows:
| Field Summary | |
|---|---|
(package private) DbMethods |
DBM
Instance of DbMethods Class |
(package private) iniETL |
ETL
Instance of iniETL Class |
(package private) GeneralMethods |
GM
Instance of GeneralMethods Class |
(package private) IOMethods |
IOM
Instance of IOMethods Class |
(package private) ListBean |
LB
Instance of ListBean object |
(package private) Logger |
Log
Instance of Logger Class |
(package private) Platform |
plat
Instance of Platform Class |
(package private) TableBean |
tabBn
Instance of TableBean object |
(package private) WorkDictionary |
WD
Instance of WorkDictionary Class |
| Constructor Summary | |
|---|---|
Process()
Void constructor: creates a new instance of Process. |
|
Process(java.lang.String[] args)
This constructor creates a new instance of the Process class. |
|
| Method Summary | |
|---|---|
private java.lang.Boolean |
checkForInputFile(PropertyBean PB,
MainBean MB,
MessageBean mesBn)
This method reads the property file by executing the readPropFile method. |
private java.lang.Boolean |
connect2DB(PropertyBean PB,
MainBean MB,
MessageBean mesBn)
This method connects to the database. |
private void |
disconnectFromDB(MainBean MB)
This method diconnect the current database connection |
private void |
loadBL(PropertyBean PB,
MessageBean mesBn,
MainBean MB,
ListBean LB,
java.lang.String strRule,
java.lang.String strLoad,
java.lang.Integer when,
java.lang.String alias,
java.lang.Boolean clear)
This method loads data into tables. |
private java.lang.String |
readProperty(java.io.PrintStream out,
java.lang.String propName,
java.lang.String propFile,
MessageBean mesBn)
This method reads the property file by executing the readPropFile method. |
private MessageBean |
setMessageBeans(PropertyBean PB,
MainBean MB,
MessageBean mesBn)
This method retrieves messages from the database. |
private java.io.PrintStream |
setPs()
This method sets the printstream to the standard output. |
private java.io.PrintStream |
setPs(java.io.File file)
This method sets the printstream to the log file encoded in the property file The method exits if the printstream is not created. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Logger Log
Platform plat
IOMethods IOM
DbMethods DBM
TableBean tabBn
ListBean LB
GeneralMethods GM
WorkDictionary WD
iniETL ETL
| Constructor Detail |
|---|
public Process()
public Process(java.lang.String[] args)
This methods performs the following steps:
args - The arguments passed from the main method.| Method Detail |
|---|
private void loadBL(PropertyBean PB,
MessageBean mesBn,
MainBean MB,
ListBean LB,
java.lang.String strRule,
java.lang.String strLoad,
java.lang.Integer when,
java.lang.String alias,
java.lang.Boolean clear)
The input parameter when selects the type of tables:
If the when parameter is different from 0, this method prepares the target tables to be loaded, by executing two general pourpose methods:
This method writes down the data files, for each value of the when parameter.
PB - The propertyBeanmesBn - The messageBeanMB - The mainBeanLB - The listBeanstrRule - The rule to load data: IGNORE or REPLACEstrLoad - The load sql instructionwhen - An integer to select which kind of tables have to be loadedalias - The alias. Default value is Xclear - A boolean indicating if the list of tables have to be truncated, before loaded.private void disconnectFromDB(MainBean MB)
MB - The mainBean. This bean contains the current connection.
private java.lang.Boolean connect2DB(PropertyBean PB,
MainBean MB,
MessageBean mesBn)
PB - The propertyBeanMB - The mainBeanmesBn - The messageBean
private java.lang.String readProperty(java.io.PrintStream out,
java.lang.String propName,
java.lang.String propFile,
MessageBean mesBn)
out - The printStreampropFile - The property filepropName - Name of the propertymesBn - The messageBean
private java.io.PrintStream setPs()
private java.io.PrintStream setPs(java.io.File file)
file - log file
private MessageBean setMessageBeans(PropertyBean PB,
MainBean MB,
MessageBean mesBn)
PB - The propertyBeanMB - The mainBeanmesBn - The messageBean
private java.lang.Boolean checkForInputFile(PropertyBean PB,
MainBean MB,
MessageBean mesBn)
PB - The propertyBeanMB - The mainBeanmesBn - The messageBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||