|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.common.filter.sql.FilterTable
This data class is responsible for holding information needed by the Fitler module about the tables that are defined by the PollerDatabaseSchema.xml file. As that file is parsed by the FilterSchemaParser object the information for each table will be stored in on of these class instances.
Field Summary | |
private Hashtable |
columns
Data structure to hold the column names associated with this table. |
private boolean |
driver
Indicates if this table is to be used as the driver for determining the join conditions. |
private HashMap |
joinConditions
Data structure to hold the join conditions associated with this table. |
private String |
tableName
Holds the table name. |
Constructor Summary | |
FilterTable()
Defaut constructor, initializes data structures and sets driver to false as defaut. |
|
FilterTable(String aTableName)
Initializes a new FilterTable with the table name. |
Method Summary | |
void |
addColumn(String aColumn)
This method adds a column name the hashmap. |
void |
addJoinCondition(JoinCondition aJoinCondition)
This method adds a JoinCondition object to the joinConditions hashmap, keyed on the name of the foreign table (from a foreign key type relationship). |
String[] |
getColumnNames()
This method returns a list of the column names belonging to this table. |
Hashtable |
getColumnsHash()
This method returns the hashtable of columns |
HashMap |
getJoinConditions()
This method returns the list of join conditions for this table. |
JoinCondition |
getJoinConditions(String aTableName)
Returns the Join Condition object associated with the table name supplied. |
String |
getTableName()
This method returns the table name. |
boolean |
isDriver()
This method returns the value of the variable driver. |
void |
setDriver()
This method sets the driver variable to true. |
String |
toString()
This method returns a string representation of the table |
Methods inherited from class java.lang.Object |
|
Field Detail |
private String tableName
private boolean driver
private Hashtable columns
private HashMap joinConditions
Constructor Detail |
public FilterTable()
public FilterTable(String aTableName)
String
- aTableName, name of the new tableMethod Detail |
public void addJoinCondition(JoinCondition aJoinCondition)
JoinCondition
- aJoinCondition, new join condition to be addedpublic HashMap getJoinConditions()
public JoinCondition getJoinConditions(String aTableName)
String
- aTableName, name of the table to get the join condition forpublic void setDriver()
public boolean isDriver()
public void addColumn(String aColumn)
String
- aColumn, the name of the new column to be addedpublic String[] getColumnNames()
public Hashtable getColumnsHash()
public String getTableName()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |