boolean isEquivalent ( Table mainTable , int [ ] mainCols , Table refTable , int [ ] refCols ) { if ( constType != Constraint . MAIN && constType != Constraint . FOREIGN_KEY ) { return false ; } if ( mainTable != core . mainTable || refTable != core . refTable ) { return false ; } return ArrayUtil . areEqualSets ( core . mainCols , mainCols ) && ArrayUtil . areEqualSets ( core . refCols , refCols ) ; }
Compares this with another constraint column set . This implementation only checks FOREIGN KEY constraints .