org.apache.openejb.jee.jpa
Class ManyToMany

java.lang.Object
  extended by org.apache.openejb.jee.jpa.ManyToMany
All Implemented Interfaces:
RelationField, Keyable

public class ManyToMany
extends java.lang.Object
implements RelationField


Field Summary
protected  CascadeType cascade
           
protected  FetchType fetch
           
protected  JoinTable joinTable
           
protected  MapKey mapKey
           
protected  java.lang.String mappedBy
           
protected  java.lang.String name
           
protected  java.lang.String orderBy
           
protected  RelationField relatedField
           
protected  boolean syntheticField
           
protected  java.lang.String targetEntity
           
 
Constructor Summary
ManyToMany()
           
 
Method Summary
 CascadeType getCascade()
          Gets the value of the cascade property.
 FetchType getFetch()
          Gets the value of the fetch property.
 java.util.List<JoinColumn> getJoinColumn()
           
 JoinTable getJoinTable()
          Gets the value of the joinTable property.
 java.lang.Object getKey()
          Gets the immutable key for this object.
 MapKey getMapKey()
          Gets the value of the mapKey property.
 java.lang.String getMappedBy()
          Gets the value of the mappedBy property.
 java.lang.String getName()
          Gets the value of the name property.
 java.lang.String getOrderBy()
          Gets the value of the orderBy property.
 RelationField getRelatedField()
          This is only used for xml converters and will normally return null.
 java.lang.String getTargetEntity()
          Gets the value of the targetEntity property.
 boolean isSyntheticField()
          This is only used for xml converters and will normally return false.
 void setCascade(CascadeType value)
          Sets the value of the cascade property.
 void setFetch(FetchType value)
          Sets the value of the fetch property.
 void setJoinTable(JoinTable value)
          Sets the value of the joinTable property.
 void setMapKey(MapKey value)
          Sets the value of the mapKey property.
 void setMappedBy(java.lang.String value)
          Sets the value of the mappedBy property.
 void setName(java.lang.String value)
          Sets the value of the name property.
 void setOrderBy(java.lang.String value)
          Sets the value of the orderBy property.
 void setRelatedField(RelationField value)
          Gets the field on the target entity for this relationship.
 void setSyntheticField(boolean syntheticField)
          This is only used for xml converters and will normally return false.
 void setTargetEntity(java.lang.String value)
          Sets the value of the targetEntity property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orderBy

protected java.lang.String orderBy

mapKey

protected MapKey mapKey

joinTable

protected JoinTable joinTable

cascade

protected CascadeType cascade

fetch

protected FetchType fetch

mappedBy

protected java.lang.String mappedBy

name

protected java.lang.String name

targetEntity

protected java.lang.String targetEntity

relatedField

protected RelationField relatedField

syntheticField

protected boolean syntheticField
Constructor Detail

ManyToMany

public ManyToMany()
Method Detail

getOrderBy

public java.lang.String getOrderBy()
Gets the value of the orderBy property.

Returns:
possible object is String

setOrderBy

public void setOrderBy(java.lang.String value)
Sets the value of the orderBy property.

Parameters:
value - allowed object is String

getMapKey

public MapKey getMapKey()
Gets the value of the mapKey property.

Returns:
possible object is MapKey

setMapKey

public void setMapKey(MapKey value)
Sets the value of the mapKey property.

Parameters:
value - allowed object is MapKey

getJoinTable

public JoinTable getJoinTable()
Gets the value of the joinTable property.

Specified by:
getJoinTable in interface RelationField
Returns:
possible object is JoinTable

setJoinTable

public void setJoinTable(JoinTable value)
Sets the value of the joinTable property.

Specified by:
setJoinTable in interface RelationField
Parameters:
value - allowed object is JoinTable

getCascade

public CascadeType getCascade()
Gets the value of the cascade property.

Specified by:
getCascade in interface RelationField
Returns:
possible object is CascadeType

setCascade

public void setCascade(CascadeType value)
Sets the value of the cascade property.

Specified by:
setCascade in interface RelationField
Parameters:
value - allowed object is CascadeType

getFetch

public FetchType getFetch()
Gets the value of the fetch property.

Specified by:
getFetch in interface RelationField
Returns:
possible object is FetchType

setFetch

public void setFetch(FetchType value)
Sets the value of the fetch property.

Specified by:
setFetch in interface RelationField
Parameters:
value - allowed object is FetchType

getMappedBy

public java.lang.String getMappedBy()
Gets the value of the mappedBy property.

Specified by:
getMappedBy in interface RelationField
Returns:
possible object is String

setMappedBy

public void setMappedBy(java.lang.String value)
Sets the value of the mappedBy property.

Specified by:
setMappedBy in interface RelationField
Parameters:
value - allowed object is String

getName

public java.lang.String getName()
Gets the value of the name property.

Specified by:
getName in interface RelationField
Returns:
possible object is String

setName

public void setName(java.lang.String value)
Sets the value of the name property.

Specified by:
setName in interface RelationField
Parameters:
value - allowed object is String

getTargetEntity

public java.lang.String getTargetEntity()
Gets the value of the targetEntity property.

Specified by:
getTargetEntity in interface RelationField
Returns:
possible object is String

setTargetEntity

public void setTargetEntity(java.lang.String value)
Sets the value of the targetEntity property.

Specified by:
setTargetEntity in interface RelationField
Parameters:
value - allowed object is String

getJoinColumn

public java.util.List<JoinColumn> getJoinColumn()
Specified by:
getJoinColumn in interface RelationField

getRelatedField

public RelationField getRelatedField()
This is only used for xml converters and will normally return null. Gets the field on the target entity for this relationship.

Specified by:
getRelatedField in interface RelationField
Returns:
the field on the target entity for this relationship.

setRelatedField

public void setRelatedField(RelationField value)
Gets the field on the target entity for this relationship.

Specified by:
setRelatedField in interface RelationField
Parameters:
value - field on the target entity for this relationship.

isSyntheticField

public boolean isSyntheticField()
This is only used for xml converters and will normally return false. A true value indicates that this field was generated for CMR back references.

Specified by:
isSyntheticField in interface RelationField
Returns:
true if this field was generated for CMR back references.

setSyntheticField

public void setSyntheticField(boolean syntheticField)
This is only used for xml converters and will normally return false. A true value indicates that this field was generated for CMR back references.

Specified by:
setSyntheticField in interface RelationField

getKey

public java.lang.Object getKey()
Description copied from interface: Keyable
Gets the immutable key for this object.

Specified by:
getKey in interface Keyable
Returns:
gets the immutable key for this object


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.