org.devaki.nextobjects.workspace.models.objects
Class Association

java.lang.Object
  extended byorg.devaki.nextobjects.workspace.models.objects.BaseObject
      extended byorg.devaki.nextobjects.workspace.models.objects.BaseClass
          extended byorg.devaki.nextobjects.workspace.models.objects.Association
All Implemented Interfaces:
java.io.Serializable

public class Association
extends BaseClass
implements java.io.Serializable

This class describe an association

Author:
Emmanuel Florent
See Also:
Serialized Form

Constructor Summary
Association(Association pObject)
          Clone new 'Association' object
Association(ConceptualModel pModel)
          Create a new 'Association' object
Association(ConceptualModel pModel, Entity pEntityBegin, Entity pEntityEnd)
          Construct a new 'Association' object
 
Method Summary
 AssociationLink addAssociationLink(Entity pEntity)
          Add an association link
 AssociationLink addAssociationLink(Entity pEntity, int pCard)
          Add an association link
 int countMyAssociationLinks()
          Number of association links
 java.util.Vector getAllIdentifierAt(int position)
          Get all identifiers according to the position given as parameter
 AssociationLink getAssociationLinkAt(int i)
          Get the association link to the given parameter
 java.util.Vector getAssociationLinks()
          Return the list of association links
 int getCardAt(int position)
          Get the cardinlity according to the position given as parameter
 Entity getEntityAt(int position)
          Get the entity according to the given parameter
 Column getIdentifierAt(int position)
          Get the identifier according to the position given as parameter
 ObjectView getObjectView()
          Get the AssociationView
 void setCardAt(int position, int pValue)
          Set the cardinality to the position given as parameter
 
Methods inherited from class org.devaki.nextobjects.workspace.models.objects.BaseClass
getAbstractClass, getAlias, getBaseClass, getBasePeer, getColumnForId, getHeavyIndexing, getIdMethod, getIndexes, getJavaName, getJavaNamingMethod, getSkipSql, getUniques, setAbstractClass, setAlias, setBaseClass, setBasePeer, setData, setHeavyIndexing, setIdMethod, setIndexes, setJavaName, setJavaNamingMethod, setSkipSql, setUniques
 
Methods inherited from class org.devaki.nextobjects.workspace.models.objects.BaseObject
getCode, getColumns, getData, getDataChanged, getDescription, getDynamicTreeNode, getMyModel, getName, getNotes, resetModelStatus, setCode, setColumns, setDataChanged, setDescription, setDynamicTreeNode, setMyModel, setName, setNotes, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Association

public Association(ConceptualModel pModel,
                   Entity pEntityBegin,
                   Entity pEntityEnd)
Construct a new 'Association' object

Parameters:
pModel - the context model
pEntityBegin - the left entity
pEntityEnd - the right entity

Association

public Association(Association pObject)
Clone new 'Association' object

Parameters:
pObject - the association to clone

Association

public Association(ConceptualModel pModel)
Create a new 'Association' object

Parameters:
pModel - the context model
Method Detail

getAssociationLinks

public final java.util.Vector getAssociationLinks()
Return the list of association links

Returns:
the association links

getObjectView

public final ObjectView getObjectView()
Get the AssociationView

Specified by:
getObjectView in class BaseClass
Returns:
the association view

getIdentifierAt

public final Column getIdentifierAt(int position)
Get the identifier according to the position given as parameter

Parameters:
position - the index
Returns:
the column

getAllIdentifierAt

public final java.util.Vector getAllIdentifierAt(int position)
Get all identifiers according to the position given as parameter

Parameters:
position - indexed position
Returns:
all identifiers

getCardAt

public final int getCardAt(int position)
Get the cardinlity according to the position given as parameter

Parameters:
position - the index
Returns:
the cardianlity

getAssociationLinkAt

public final AssociationLink getAssociationLinkAt(int i)
Get the association link to the given parameter

Parameters:
i - the index
Returns:
the association link

getEntityAt

public final Entity getEntityAt(int position)
Get the entity according to the given parameter

Parameters:
position - the index
Returns:
the entity

setCardAt

public final void setCardAt(int position,
                            int pValue)
Set the cardinality to the position given as parameter

Parameters:
position - the index
pValue - the cards

addAssociationLink

public final AssociationLink addAssociationLink(Entity pEntity,
                                                int pCard)
Add an association link

Parameters:
pEntity - the index
pCard - the card
Returns:
the new association link

addAssociationLink

public final AssociationLink addAssociationLink(Entity pEntity)
Add an association link

Parameters:
pEntity - the entity
Returns:
the association link

countMyAssociationLinks

public final int countMyAssociationLinks()
Number of association links

Returns:
the association it have


Copyright © 2002-2004 devaki.org. All Rights Reserved.