/** * <p> * The other association end owned by this end's association. * </p> * @see AssociationEndFacade#getOtherEnd() */ public AssociationEndFacade getOtherEnd() { return this.getSuperEntityAssociationEnd().getOtherEnd(); }
/** * <p> * The classifier attached to this association end. * </p> * @see AssociationEndFacade#getType() */ public ClassifierFacade getType() { return this.getSuperEntityAssociationEnd().getType(); }
public boolean evaluate(final Object object) { boolean valid = false; if (object != null && EntityAssociationEnd.class.isAssignableFrom(object.getClass())) { final EntityAssociationEnd end = (EntityAssociationEnd)object; valid = end.isForeignIdentifier(); } return valid; } });
final Object taggedValueObject = associationEnd.findTaggedValue( UMLProfile.TAGGEDVALUE_PERSISTENCE_FOREIGN_KEY_CONSTRAINT_NAME); if (taggedValueObject == null) final ClassifierFacade type = associationEnd.getOtherEnd().getType(); if (type instanceof Entity) buffer.append(associationEnd.getColumnName()); constraintName = buffer.toString();
/** * Checks to see if this entity has any associations where the foreign identifier flag may be set, and if so creates * and adds identifiers just like the foreign entity to this entity. * * @return true if any identifiers were added, false otherwise */ private boolean checkForAndAddForeignIdentifiers() { boolean identifiersAdded = false; final EntityAssociationEnd end = this.getForeignIdentifierEnd(); if (end != null && end.getType() instanceof Entity) { final Entity foreignEntity = (Entity)end.getOtherEnd().getType(); final Collection<EntityAttribute> identifiers = EntityMetafacadeUtils.getIdentifiers( foreignEntity, true); for (final Iterator<EntityAttribute> iterator = identifiers.iterator(); iterator.hasNext();) { final AttributeFacade identifier = iterator.next(); this.createIdentifier( identifier.getName(), identifier.getType().getFullyQualifiedName(true), identifier.getVisibility()); identifiersAdded = true; } } return identifiersAdded; }
/** * <p> * The name of the column that makes up the foreign key. * </p> * @see EntityAssociationEnd#getColumnName() */ public String getColumnName() { return this.getSuperEntityAssociationEnd().getColumnName(); }
/** * <p> * Finds the tagged value with the specified 'tagName'. In case * there are more values the first one found will be returned. * </p> * @see ModelElementFacade#findTaggedValue(String tagName) */ public Object findTaggedValue(String tagName) { return this.getSuperEntityAssociationEnd().findTaggedValue(tagName); }
/** * <p> * Returns all the values for the tagged value with the specified * name. The returned collection will contains only String * instances, or will be empty. Never null. * </p> * @see ModelElementFacade#findTaggedValues(String tagName) */ public Collection findTaggedValues(String tagName) { return this.getSuperEntityAssociationEnd().findTaggedValues(tagName); }
/** * <p> * A name suitable for use when adding new elements to this * association end in programming code. * </p> * @see AssociationEndFacade#getAdderName() */ public String getAdderName() { return this.getSuperEntityAssociationEnd().getAdderName(); }
/** * <p> * Copies all tagged values from the given ModelElementFacade to * this model element facade. * </p> * @see ModelElementFacade#copyTaggedValues(ModelElementFacade element) */ public void copyTaggedValues(ModelElementFacade element) { this.getSuperEntityAssociationEnd().copyTaggedValues(element); }
final Object taggedValueObject = associationEnd.findTaggedValue( UMLProfile.TAGGEDVALUE_PERSISTENCE_FOREIGN_KEY_CONSTRAINT_NAME); if (taggedValueObject == null) final ClassifierFacade type = associationEnd.getOtherEnd().getType(); if (type instanceof Entity) buffer.append(associationEnd.getColumnName()); constraintName = buffer.toString();
/** * Checks to see if this entity has any associations where the foreign * identifier flag may be set, and if so creates and adds identifiers just * like the foreign entity to this entity. * * @return true if any identifiers were added, false otherwise */ private boolean checkForAndAddForeignIdentifiers() { boolean identifiersAdded = false; final EntityAssociationEnd end = this.getForeignIdentifierEnd(); if (end != null && end.getType() instanceof Entity) { final Entity foreignEntity = (Entity)end.getOtherEnd().getType(); final Collection<EntityAttribute> identifiers = EntityMetafacadeUtils.getIdentifiers( foreignEntity, true); for (AttributeFacade identifier : identifiers) { this.createIdentifier( identifier.getName(), identifier.getType().getFullyQualifiedName(true), identifier.getVisibility()); identifiersAdded = true; } } return identifiersAdded; }
/** * <p> * The name of the column that makes up the foreign key. * </p> * @see EntityAssociationEnd#getColumnName() */ public String getColumnName() { return this.getSuperEntityAssociationEnd().getColumnName(); }
/** * <p> * Finds the tagged value with the specified 'tagName'. In case * there are more values the first one found will be returned. * </p> * @see ModelElementFacade#findTaggedValue(String tagName) */ public Object findTaggedValue(String tagName) { return this.getSuperEntityAssociationEnd().findTaggedValue(tagName); }
/** * <p> * Returns all the values for the tagged value with the specified * name. The returned collection will contains only String * instances, or will be empty. Never null. * </p> * @see ModelElementFacade#findTaggedValues(String tagName) */ public Collection findTaggedValues(String tagName) { return this.getSuperEntityAssociationEnd().findTaggedValues(tagName); }
/** * <p> * A name suitable for use when adding new elements to this * association end in programming code. * </p> * @see AssociationEndFacade#getAdderName() */ public String getAdderName() { return this.getSuperEntityAssociationEnd().getAdderName(); }
/** * <p> * Copies all tagged values from the given ModelElementFacade to * this model element facade. * </p> * @see ModelElementFacade#copyTaggedValues(ModelElementFacade element) */ public void copyTaggedValues(ModelElementFacade element) { this.getSuperEntityAssociationEnd().copyTaggedValues(element); }
/** * Checks to see if this entity has any associations where the foreign * identifier flag may be set, and if so creates and adds identifiers just * like the foreign entity to this entity. * * @return true if any identifiers were added, false otherwise */ private boolean checkForAndAddForeignIdentifiers() { boolean identifiersAdded = false; final EntityAssociationEnd end = this.getForeignIdentifierEnd(); if (end != null && end.getType() instanceof Entity) { final Entity foreignEntity = (Entity)end.getOtherEnd().getType(); final Collection<EntityAttribute> identifiers = EntityMetafacadeUtils.getIdentifiers( foreignEntity, true); for (AttributeFacade identifier : identifiers) { this.createIdentifier( identifier.getName(), identifier.getType().getFullyQualifiedName(true), identifier.getVisibility()); identifiersAdded = true; } } return identifiersAdded; }
public boolean evaluate(Object object) { boolean valid = false; if (object != null && EntityAssociationEnd.class.isAssignableFrom(object.getClass())) { EntityAssociationEnd end = (EntityAssociationEnd)object; valid = end.isForeignIdentifier(); } return valid; } });
/** * <p> * The other association end owned by this end's association. * </p> * @see AssociationEndFacade#getOtherEnd() */ public AssociationEndFacade getOtherEnd() { return this.getSuperEntityAssociationEnd().getOtherEnd(); }