Constraint getFKConstraintForColumns ( Table tableMain , int [ ] mainCols , int [ ] refCols ) { for ( int i = 0 , size = constraintList . length ; i < size ; i ++ ) { Constraint c = constraintList [ i ] ; if ( c . isEquivalent ( tableMain , mainCols , this , refCols ) ) { return c ; } } return null ; }
Returns any foreign key constraint equivalent to the column sets