public boolean hasForeignkey ( String name ) { String realName = ( name == null ? "" : name ) ; ForeignkeyDef def = null ; for ( Iterator it = getForeignkeys ( ) ; it . hasNext ( ) ; ) { def = ( ForeignkeyDef ) it . next ( ) ; if ( realName . equals ( def . getName ( ) ) ) { return true ; } } return false ; }
Determines whether this table has a foreignkey of the given name .