IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.projector.md
Interface TupleAssociation

All Superinterfaces:
TupleAttribute

public interface TupleAssociation
extends TupleAttribute

The metadata for an association between two entities.

Since:
WAS XD 6.1

Nested Class Summary
static interface TupleAssociation.CascadeInfo
          Cascade information for entity association persistence.
static interface TupleAssociation.OrderByInfo
          Ordering information for multi-valued associations.
 
Method Summary
 AssociationType getAssociationType()
          The cardinality for this end of an association.
 TupleAssociation.CascadeInfo getCascadeInfo()
          Identifies the persistent operations that should be cascaded to the target entity.
 FetchType getFetchType()
          Identifies how to fetch the associated entity from the persistent store.
 String getMappedByAssociationName()
          The attribute name of the owner of a bi-directional association.
 TupleAssociation.OrderByInfo getOrderByInfo()
          Identifies how to order a multi-valued association.
 EntityMetadata getTargetEntityMetadata()
          The EntityMetadata for the target of this association
 String getTargetEntityName()
          The name of the target entity
 
Methods inherited from interface com.ibm.websphere.projector.md.TupleAttribute
getAlias, getName, getTuplePosition, getType, isVersion
 

Method Detail

getAssociationType

AssociationType getAssociationType()
The cardinality for this end of an association.

Returns:
the AssociationType

getTargetEntityMetadata

EntityMetadata getTargetEntityMetadata()
The EntityMetadata for the target of this association

Returns:
the EntityMetadata for the associated entity

getTargetEntityName

String getTargetEntityName()
The name of the target entity

Returns:
the name of the target entity.

getMappedByAssociationName

String getMappedByAssociationName()
The attribute name of the owner of a bi-directional association.

Returns:
the name of the owning side of a bi-directional association.

getCascadeInfo

TupleAssociation.CascadeInfo getCascadeInfo()
Identifies the persistent operations that should be cascaded to the target entity.

Returns:
CascadeInfo associated with this association

getFetchType

FetchType getFetchType()
Identifies how to fetch the associated entity from the persistent store.

Returns:
the fetch type for this association

getOrderByInfo

TupleAssociation.OrderByInfo getOrderByInfo()
Identifies how to order a multi-valued association.

Returns:
the OrderByInfo for this association or null if not present.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.