org.apache.openejb.jee.jpa
Interface RelationField

All Known Implementing Classes:
ManyToMany, ManyToOne, OneToMany, OneToOne

public interface RelationField


Method Summary
 CascadeType getCascade()
           
 FetchType getFetch()
           
 List<JoinColumn> getJoinColumn()
           
 JoinTable getJoinTable()
           
 String getMappedBy()
           
 String getName()
           
 RelationField getRelatedField()
          This is only used for xml converters and will normally return null.
 String getTargetEntity()
           
 boolean isSyntheticField()
          This is only used for xml converters and will normally return false.
 void setCascade(CascadeType value)
           
 void setFetch(FetchType value)
           
 void setJoinTable(JoinTable value)
           
 void setMappedBy(String value)
           
 void setName(String value)
           
 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)
           
 

Method Detail

getJoinColumn

List<JoinColumn> getJoinColumn()

getJoinTable

JoinTable getJoinTable()

setJoinTable

void setJoinTable(JoinTable value)

getCascade

CascadeType getCascade()

setCascade

void setCascade(CascadeType value)

getFetch

FetchType getFetch()

setFetch

void setFetch(FetchType value)

getMappedBy

String getMappedBy()

setMappedBy

void setMappedBy(String value)

getName

String getName()

setName

void setName(String value)

getTargetEntity

String getTargetEntity()

setTargetEntity

void setTargetEntity(String value)

getRelatedField

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

Returns:
the field on the target entity for this relationship.

setRelatedField

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

Parameters:
value - field on the target entity for this relationship.

isSyntheticField

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.

Returns:
true if this field was generated for CMR back references.

setSyntheticField

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.



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