|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc
Class to hold meta-information related to an ejb-relation-role Created on Jul 7, 2002
Field Summary | |
protected java.lang.String |
cmrFieldName
|
protected java.lang.Class |
cmrFieldType
|
static byte |
INDEX
This constant can be used to represent an index of a gen class. |
protected boolean |
isJOnASCMR
|
static byte |
MMB
|
static byte |
MMU
|
static byte |
MOB
|
static byte |
MOU
|
static byte |
OMB
|
static byte |
OMU
|
static byte |
OOB
|
static byte |
OOU
|
static byte |
SOURCE
This constant can be used to represent the source of the relation, ie the element which references the other. |
static byte |
TARGET
This constant can be used to represent the target of the relation, ie the element which is referenced by the other. |
Constructor Summary | |
EjbRelationshipRoleDesc(org.objectweb.jonas_ejb.deployment.xml.EjbRelationshipRole role,
boolean target,
EjbRelationDesc ejbRelationDesc,
org.objectweb.jonas_ejb.deployment.xml.EjbRelation ejbRelation)
constructor to be used by parent node |
Method Summary | |
java.lang.String |
getCmrFieldName()
get the name of the cmr-field |
java.lang.Class |
getCmrFieldType()
get the type of the cmr-field when set in the deployment descriptor. |
java.lang.String |
getEjbName()
get name of the ejb involved in this relation-ship-role |
EjbRelationDesc |
getEjbRelationDesc()
get the parent ejb relation |
EntityCmp2Desc |
getLinkedEntityCmp2Desc()
It retrieves the EntityCmp2Desc which is linked to the EntityCmp2Desc associated to this EjbRelationshipRoleDesc. |
EjbRelationshipRoleDesc |
getOppositeEjbRelationshipRoleDesc()
|
byte |
getRelationType()
|
boolean |
hasCmrField()
It retrieves true if the EntityCmp2Desc associated to this EjbRelationshipRoleDesc has a cmr field to the linked EntityCmp2Desc |
boolean |
isCascadeDelete()
get state of field cascade delete |
boolean |
isJOnASCMR()
It returns a boolean value which indicates if the cmr has been added by JOnAS (true) or if the user has specified a cmr field in the descriptor. |
boolean |
isMultiValuedCMR()
get state of field is relation multiple |
boolean |
isTarget()
It retrieves true if the EntityCmp2Desc associated to this EjbRelationshipRoleDesc is the target of the cmr field associated the linked EntityCmp2Desc. |
void |
setCMRFieldName(java.lang.String name)
|
void |
setCMRFieldType(java.lang.String type)
|
void |
setIsJOnASCMR(boolean b)
mark the cmr as added by JOnAS |
void |
setLinkedEntityCmp2Desc(EntityCmp2Desc linkedEntityCmp2Desc)
set the linkedEntityCmp2Desc field. |
java.lang.String |
toString()
String representation of the object for test purpose |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte INDEX
public static final byte SOURCE
public static final byte TARGET
public static final byte OOU
public static final byte OOB
public static final byte OMU
public static final byte OMB
public static final byte MOU
public static final byte MOB
public static final byte MMU
public static final byte MMB
protected java.lang.String cmrFieldName
protected java.lang.Class cmrFieldType
protected boolean isJOnASCMR
Constructor Detail |
public EjbRelationshipRoleDesc(org.objectweb.jonas_ejb.deployment.xml.EjbRelationshipRole role, boolean target, EjbRelationDesc ejbRelationDesc, org.objectweb.jonas_ejb.deployment.xml.EjbRelation ejbRelation) throws DeploymentDescException
Method Detail |
public void setCMRFieldName(java.lang.String name) throws DeploymentDescException
public void setCMRFieldType(java.lang.String type) throws DeploymentDescException
public void setIsJOnASCMR(boolean b)
public boolean isJOnASCMR()
public boolean isCascadeDelete()
public boolean isMultiValuedCMR()
public java.lang.String getEjbName()
public EjbRelationDesc getEjbRelationDesc()
public EjbRelationshipRoleDesc getOppositeEjbRelationshipRoleDesc()
public EntityCmp2Desc getLinkedEntityCmp2Desc()
public void setLinkedEntityCmp2Desc(EntityCmp2Desc linkedEntityCmp2Desc)
public boolean hasCmrField()
public boolean isTarget()
public java.lang.String getCmrFieldName()
public java.lang.Class getCmrFieldType()
public byte getRelationType()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |