gistoolkit.datasources.filter
Class Join

java.lang.Object
  extended bygistoolkit.datasources.filter.Join
All Implemented Interfaces:
Filter
Direct Known Subclasses:
SQLJoin

public class Join
extends java.lang.Object
implements Filter

Class to handle multiple filters.


Field Summary
static int AND
          Takes the logical AND of the two filters.
static int OR
          Takes the logical OR of the two filters.
 
Constructor Summary
Join()
          Creates new Expression for use with the set node method only.
Join(Filter inFilter1, int inComparison, Filter inFilter2)
          Creates new Expression
 
Method Summary
 boolean contains(Record inRecord)
          Determines if this record should or should not be returned as part of the resulting dataset.
 int getComparison()
          Return the comparison to perform on the two filters.
 Filter getFilter1()
          Return the first filter.
 Filter getFilter2()
          Return the second filter.
 java.lang.String getFilterName()
          Get the name for this filter.
 Node getNode()
          Get the configuration information for the filter.
 void setFilterName(java.lang.String inFilterName)
          Set the name for this filter.
 void setNode(Node inNode)
          Set the configuration information in the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AND

public static final int AND
Takes the logical AND of the two filters.

See Also:
Constant Field Values

OR

public static final int OR
Takes the logical OR of the two filters.

See Also:
Constant Field Values
Constructor Detail

Join

public Join()
Creates new Expression for use with the set node method only.


Join

public Join(Filter inFilter1,
            int inComparison,
            Filter inFilter2)
Creates new Expression

Method Detail

setFilterName

public void setFilterName(java.lang.String inFilterName)
Set the name for this filter.


getFilterName

public java.lang.String getFilterName()
Get the name for this filter.

Specified by:
getFilterName in interface Filter

getFilter1

public Filter getFilter1()
Return the first filter.


getComparison

public int getComparison()
Return the comparison to perform on the two filters.


getFilter2

public Filter getFilter2()
Return the second filter.


contains

public boolean contains(Record inRecord)
Determines if this record should or should not be returned as part of the resulting dataset.

Returns True if the record should be included, and returns False if it should not.

Specified by:
contains in interface Filter

getNode

public Node getNode()
Get the configuration information for the filter.

Specified by:
getNode in interface Filter

setNode

public void setNode(Node inNode)
             throws java.lang.Exception
Set the configuration information in the filter.

Specified by:
setNode in interface Filter
Throws:
java.lang.Exception