use of org.datanucleus.store.rdbms.table.Table in project datanucleus-rdbms by datanucleus.
the class TimesTenAdapter method isSelfReferencingForeignKey.
/**
* Returns true if foreign key is self-referencing
* @param fk foreign key
* @return true if foreign key is self-referencing
*/
private static boolean isSelfReferencingForeignKey(ForeignKey fk) {
if (fk != null) {
String sql = fk.toString();
Table obj = fk.getTable();
if (obj != null) {
String container = obj.toString();
return isSelfReferencingForeignKey(sql, container);
}
}
return false;
}
Aggregations