Methods Summary |
---|
public void | addAssociation(SimpleAssociatedEntity association)
association.bindToOwner( this );
|
public SimpleAssociatedEntity | addAssociation(java.lang.String name)
return new SimpleAssociatedEntity( name, this );
|
public java.util.Set | getAssociatedEntities()
return associatedEntities;
|
public java.lang.Long | getId()
return id;
|
public java.util.Set | getManyToManyAssociatedEntities()
return manyToManyAssociatedEntities;
|
public java.lang.String | getName()
return name;
|
public void | removeAssociation(SimpleAssociatedEntity association)
if ( getAssociatedEntities().contains( association ) ) {
association.unbindFromCurrentOwner();
}
else {
throw new IllegalArgumentException( "SimpleAssociatedEntity [" + association + "] not currently bound to this [" + this + "]" );
}
|
public void | setAssociatedEntities(java.util.Set associatedEntities)
this.associatedEntities = associatedEntities;
|
public void | setId(java.lang.Long id)
this.id = id;
|
public void | setManyToManyAssociatedEntities(java.util.Set manyToManyAssociatedEntities)
this.manyToManyAssociatedEntities = manyToManyAssociatedEntities;
|
public void | setName(java.lang.String name)
this.name = name;
|