Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.javatools.db.diff
Class DefaultResultSetFilter

java.lang.Object
  extended by oracle.javatools.db.diff.DefaultResultSetFilter
All Implemented Interfaces:
DifferenceFilter

public class DefaultResultSetFilter
extends java.lang.Object
implements DifferenceFilter

Default implementation of the ResultSetFilter interface.


Constructor Summary
DefaultResultSetFilter()
           
 
Method Summary
 void addFilteredProps(java.lang.String commaSepPropertyPaths)
          Overloaded method for addFilteredProps(String[]) allowing a single property path regular expression, or comma seperated list of expressions, to be passed.
 void addFilteredProps(java.lang.String[] propertyPathsArray)
          Adds an array of property path regular expressions to will be ignored.
 boolean isFilteredProperty(Difference rs, java.lang.String prop)
          When applying a ResultSetFilter to a ResultSet, the following method will be called on the given ResultSetFilter for each ResultSet that is marked as not being the "same".
 boolean isFilteredProperty(ResultSet rs, java.lang.String prop)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResultSetFilter

public DefaultResultSetFilter()
Method Detail

addFilteredProps

public void addFilteredProps(java.lang.String commaSepPropertyPaths)
Overloaded method for addFilteredProps(String[]) allowing a single property path regular expression, or comma seperated list of expressions, to be passed.

Parameters:
commaSepPropertyPaths - comma seperated list of property path regular expressions to ignore
See Also:
addFilteredProps(String[]), Pattern

addFilteredProps

public void addFilteredProps(java.lang.String[] propertyPathsArray)
Adds an array of property path regular expressions to will be ignored. NB: Property paths that include lists have an entry for the name of the object in the list (or <n> where n is the position in the list, if no name exists), so the regular expression needs to take this into account. As a shortcut, any occurance of "//" in the property path is replaced by "/[^/]*/" which matches any string which does not contain a slash, surrounded by slashes.

For example: would all match the property path for the default value of the EMPNO column of a Table.

Parameters:
propertyPathsArray - the array of property path regular expressions to ignore
See Also:
addFilteredProps(String), Pattern

isFilteredProperty

@Deprecated
public boolean isFilteredProperty(ResultSet rs,
                                             java.lang.String prop)
Deprecated. 


isFilteredProperty

public boolean isFilteredProperty(Difference rs,
                                  java.lang.String prop)
Description copied from interface: DifferenceFilter
When applying a ResultSetFilter to a ResultSet, the following method will be called on the given ResultSetFilter for each ResultSet that is marked as not being the "same". The format of the argument prop is a slash seperated path of property names. When the property is a list, the immediate children of that propeerty will be the name of the child (or position in the list <0>, <1>, etc). For example, the default property of the EMPNO column on a Table would have the property path: The SQLText propery of the second expression of an Index would have the property path The implementation of this interface can use what ever algorithm is appropriate to determine if this particular property should be ignored or not. If this method returns true, then the "same" property on the ResultSet will be updated to true.

Specified by:
isFilteredProperty in interface DifferenceFilter

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.