1    package com.instantbank.component.job.util;
2    
3    
4    /**
5     *  Description of a participant table in a job SQL sentence
6     *
7     * @author InstantBank (Consuelo Franky)
8     * @created October 2002
9     */
10   public class ParticipantTable {
11   
12     /**
13      * name of table alias
14      */
15     private String alias;
16     /**
17      * checks if alias was already processed for building joins or not
18      */
19     private boolean joinCheck;
20   
21   
22     /**
23      *  Constructor for the ParticipantTable object
24      *
25      * @param alias Description of the Parameter
26      * @param joinCheck Description of the Parameter
27      */
28     public ParticipantTable(String alias, boolean joinCheck) {
29       this.alias = alias;
30       this.joinCheck = joinCheck;
31     }
32   
33   
34     /**
35      *  Gets the alias attribute of the ParticipantTable object
36      *
37      * @return The alias value
38      */
39     public String getAlias() {
40       return (this.alias);
41     }
42   
43   
44     /**
45      *  Gets the joinCheck attribute of the ParticipantTable object
46      *
47      * @return The joinCheck value
48      */
49     public boolean getJoinCheck() {
50       return (this.joinCheck);
51     }
52   
53   
54     /**
55      *  Sets the joinCheck attribute of the ParticipantTable object
56      *
57      * @param joinCheck The new joinCheck value
58      */
59     public void setJoinCheck(boolean joinCheck) {
60       this.joinCheck = joinCheck;
61     }
62   
63   
64     /**
65      *  Textual representation of ParticipantTable
66      *
67      * @return text of ParticipantTable instance
68      */
69     public String toString() {
70   
71       StringBuffer toString = new StringBuffer();
72       toString.append("\nalias = ");
73       toString.append(alias);
74       toString.append("\njoinCheck = ");
75       toString.append(joinCheck);
76       toString.append("\n");
77   
78       return new String(toString);
79     }
80   
81   }
82