org.apache.openejb.jee.jpa
Class ManyToOne

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

public class ManyToOne
extends Object
implements RelationField


Field Summary
protected  AccessType access
           
protected  CascadeType cascade
           
protected  FetchType fetch
           
protected  Boolean id
           
protected  List<JoinColumn> joinColumn
           
protected  JoinTable joinTable
           
protected  String mapsId
           
protected  String name
           
protected  Boolean optional
           
protected  RelationField relatedField
           
protected  boolean syntheticField
           
protected  String targetEntity
           
 
Constructor Summary
ManyToOne()
           
 
Method Summary
 AccessType getAccess()
          Gets the value of the access property.
 CascadeType getCascade()
          Gets the value of the cascade property.
 FetchType getFetch()
          Gets the value of the fetch property.
 List<JoinColumn> getJoinColumn()
          Gets the value of the joinColumn property.
 JoinTable getJoinTable()
          Gets the value of the joinTable property.
 Object getKey()
          Gets the immutable key for this object.
 String getMappedBy()
           
 String getMapsId()
          Gets the value of the mapsId property.
 String getName()
          Gets the value of the name property.
 RelationField getRelatedField()
          This is only used for xml converters and will normally return null.
 String getTargetEntity()
          Gets the value of the targetEntity property.
 Boolean isId()
          Gets the value of the id property.
 Boolean isOptional()
          Gets the value of the optional property.
 boolean isSyntheticField()
          This is only used for xml converters and will normally return false.
 void setAccess(AccessType value)
          Sets the value of the access property.
 void setCascade(CascadeType value)
          Sets the value of the cascade property.
 void setFetch(FetchType value)
          Sets the value of the fetch property.
 void setId(Boolean value)
          Sets the value of the id property.
 void setJoinTable(JoinTable value)
          Sets the value of the joinTable property.
 void setMappedBy(String value)
           
 void setMapsId(String value)
          Sets the value of the mapsId property.
 void setName(String value)
          Sets the value of the name property.
 void setOptional(Boolean value)
          Sets the value of the optional 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(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

joinColumn

protected List<JoinColumn> joinColumn

joinTable

protected JoinTable joinTable

cascade

protected CascadeType cascade

fetch

protected FetchType fetch

name

protected String name

optional

protected Boolean optional

targetEntity

protected String targetEntity

relatedField

protected RelationField relatedField

syntheticField

protected boolean syntheticField

access

protected AccessType access

mapsId

protected String mapsId

id

protected Boolean id
Constructor Detail

ManyToOne

public ManyToOne()
Method Detail

getJoinColumn

public List<JoinColumn> getJoinColumn()
Gets the value of the joinColumn property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the joinColumn property.

For example, to add a new item, do as follows:

    getJoinColumn().add(newItem);
 

Objects of the following type(s) are allowed in the list JoinColumn

Specified by:
getJoinColumn in interface RelationField

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

getName

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

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

setName

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

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

isOptional

public Boolean isOptional()
Gets the value of the optional property.

Returns:
possible object is Boolean

setOptional

public void setOptional(Boolean value)
Sets the value of the optional property.

Parameters:
value - allowed object is Boolean

getTargetEntity

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

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

setTargetEntity

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

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

getMappedBy

public String getMappedBy()
Specified by:
getMappedBy in interface RelationField

setMappedBy

public void setMappedBy(String value)
Specified by:
setMappedBy 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 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

getAccess

public AccessType getAccess()
Gets the value of the access property.

Returns:
possible object is AccessType

setAccess

public void setAccess(AccessType value)
Sets the value of the access property.

Parameters:
value - allowed object is AccessType

getMapsId

public String getMapsId()
Gets the value of the mapsId property.

Returns:
possible object is String

setMapsId

public void setMapsId(String value)
Sets the value of the mapsId property.

Parameters:
value - allowed object is String

isId

public Boolean isId()
Gets the value of the id property.

Returns:
possible object is Boolean

setId

public void setId(Boolean value)
Sets the value of the id property.

Parameters:
value - allowed object is Boolean


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.