isql.predicate
Class DoublePredicate.AddRowOnlyIfInJustInOne

java.lang.Object
  extended by isql.predicate.DoublePredicate.AddRowOnlyIfInJustInOne
All Implemented Interfaces:
DoublePredicate.IAddRow
Enclosing class:
DoublePredicate

public static class DoublePredicate.AddRowOnlyIfInJustInOne
extends java.lang.Object
implements DoublePredicate.IAddRow

Add row to the result view only if only one of the views have, for that row, a specific index in the merge table In this case the other table will have dummy values (-1) for the column indices in that row

Author:
SHZ Oct 18, 2007

Constructor Summary
DoublePredicate.AddRowOnlyIfInJustInOne()
           
 
Method Summary
 void addRow(WhereView viewA, WhereView viewB, java.lang.String mergeTable, WhereView viewRes, int viewRowA, java.util.List<java.lang.Integer> lstViewRowBForMergeTableRowA)
          Adds the row index to the result view
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoublePredicate.AddRowOnlyIfInJustInOne

public DoublePredicate.AddRowOnlyIfInJustInOne()
Method Detail

addRow

public void addRow(WhereView viewA,
                   WhereView viewB,
                   java.lang.String mergeTable,
                   WhereView viewRes,
                   int viewRowA,
                   java.util.List<java.lang.Integer> lstViewRowBForMergeTableRowA)
Description copied from interface: DoublePredicate.IAddRow
Adds the row index to the result view

Specified by:
addRow in interface DoublePredicate.IAddRow
Parameters:
viewA - the first view to merge
viewB - the second view to merge
mergeTable - the table in common between the two views that is used to merge them
viewRes - the result view
lstViewRowBForMergeTableRowA - the