org.d2rq.mapgen
Class FilterMatchColumn

java.lang.Object
  extended by org.d2rq.mapgen.Filter
      extended by org.d2rq.mapgen.FilterMatchColumn

public class FilterMatchColumn
extends Filter


Nested Class Summary
 
Nested classes/interfaces inherited from class org.d2rq.mapgen.Filter
Filter.IdentifierMatcher
 
Field Summary
 
Fields inherited from class org.d2rq.mapgen.Filter
ALL, NOTHING, NULL_MATCHER
 
Constructor Summary
FilterMatchColumn(Filter.IdentifierMatcher schema, Filter.IdentifierMatcher table, Filter.IdentifierMatcher column, boolean matchParents)
           
 
Method Summary
 String getSingleSchema()
           
 boolean matchesColumn(String schema, String table, String column)
           
 boolean matchesSchema(String schema)
           
 boolean matchesTable(String schema, String table)
           
 String toString()
           
 
Methods inherited from class org.d2rq.mapgen.Filter
createPatternMatcher, createStringMatcher, matches, matches, matches, matchesAll, matchesAll, matchesAll, sameSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterMatchColumn

public FilterMatchColumn(Filter.IdentifierMatcher schema,
                         Filter.IdentifierMatcher table,
                         Filter.IdentifierMatcher column,
                         boolean matchParents)
Method Detail

matchesSchema

public boolean matchesSchema(String schema)
Specified by:
matchesSchema in class Filter

matchesTable

public boolean matchesTable(String schema,
                            String table)
Specified by:
matchesTable in class Filter

matchesColumn

public boolean matchesColumn(String schema,
                             String table,
                             String column)
Specified by:
matchesColumn in class Filter

getSingleSchema

public String getSingleSchema()
Specified by:
getSingleSchema in class Filter
Returns:
If the filter matches only a single schema, then its name; otherwise, null

toString

public String toString()
Overrides:
toString in class Object