/** Adds a referencing key to the list of keys in this mapping table. * @param referencingKey referencing key element to be added * @exception ModelException if impossible */ public void addReferencingKey (MappingReferenceKeyElement referencingKey) throws ModelException { try { fireVetoableChange(PROP_REFERENCING_KEYS, null, null); getReferencingKeys().add(referencingKey); firePropertyChange(PROP_REFERENCING_KEYS, null, null); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Adds a referencing key to the list of keys in this mapping table. * @param referencingKey referencing key element to be added * @exception ModelException if impossible */ public void addReferencingKey (MappingReferenceKeyElement referencingKey) throws ModelException { try { fireVetoableChange(PROP_REFERENCING_KEYS, null, null); getReferencingKeys().add(referencingKey); firePropertyChange(PROP_REFERENCING_KEYS, null, null); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
Iterator keyIterator = getReferencingKeys().iterator();
Iterator keyIterator = getReferencingKeys().iterator();
public static void printMappingTableElements(int tabs, ArrayList tables) { final int count = ((tables != null) ? tables.size() : 0); if (count > 0) { println(tabs, "--> tables "); //NOI18N for (int i = 0; i < count; i++) { MappingTableElementImpl mte = (MappingTableElementImpl) tables.get(i); println(tabs, "[" + i + "] " + mte.getClass()); //NOI18N println(tabs+1, "table = " + mte.getTable()); //NOI18N println(tabs+1, "tableObject = " + mte.getTableObject()); //NOI18N println(tabs+1, "key = " + mte.getKey()); //NOI18N println(tabs+1, "keyObjects = " + mte.getKeyObjects()); //NOI18N printMappingRefKeyElements(tabs+1, mte.getReferencingKeys()); } println(tabs, "<-- tables "); //NOI18N } }
public static void printMappingTableElements(int tabs, ArrayList tables) { final int count = ((tables != null) ? tables.size() : 0); if (count > 0) { println(tabs, "--> tables "); //NOI18N for (int i = 0; i < count; i++) { MappingTableElementImpl mte = (MappingTableElementImpl) tables.get(i); println(tabs, "[" + i + "] " + mte.getClass()); //NOI18N println(tabs+1, "table = " + mte.getTable()); //NOI18N println(tabs+1, "tableObject = " + mte.getTableObject()); //NOI18N println(tabs+1, "key = " + mte.getKey()); //NOI18N println(tabs+1, "keyObjects = " + mte.getKeyObjects()); //NOI18N printMappingRefKeyElements(tabs+1, mte.getReferencingKeys()); } println(tabs, "<-- tables "); //NOI18N } }