try {
if (_ncommandtype == com.sun.star.sdb.CommandType.TABLE){
if (xDBMetaData.supportsIntegrityEnhancementFacility()){
java.util.Vector TableVector = new java.util.Vector();
Object oTable = xTableNames.getByName(_stablename);
XKeysSupplier xKeysSupplier = (XKeysSupplier) UnoRuntime.queryInterface(XKeysSupplier.class, oTable);
xIndexKeys = xKeysSupplier.getKeys();
for (int i = 0; i < xIndexKeys.getCount(); i++){
XPropertySet xPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xIndexKeys.getByIndex(i) );
int curtype = AnyConverter.toInt(xPropertySet.getPropertyValue("Type"));
if (curtype == KeyType.FOREIGN){
// getImportedKeys (RelationController.cxx /source/ui/relationdesign) /Zeile 475