com.caucho.amber.field
Class AssociationField

java.lang.Object
  extended by com.caucho.amber.field.AbstractField
      extended by com.caucho.amber.field.CascadableField
          extended by com.caucho.amber.field.CollectionField
              extended by com.caucho.amber.field.AssociationField
All Implemented Interfaces:
AmberField
Direct Known Subclasses:
ElementCollectionField, ManyToManyField, MapElementField

public class AssociationField
extends CollectionField

Configuration for a bean's field


Constructor Summary
AssociationField(EntityType relatedType)
           
AssociationField(EntityType relatedType, java.lang.String name, CascadeType[] cascadeTypes)
           
 
Method Summary
 java.lang.String generateTargetSelect(java.lang.String id)
          Generates the target select.
 LinkColumns getLinkColumns()
          Gets the result.
 boolean hasInverseJoinColumns()
          Returns true if this field is annotated with
 boolean hasJoinColumns()
          Returns true if this field is annotated with
 void setInverseJoinColumns(boolean hasInverseJoinColumns)
          Sets true if this field is annotated with
 void setJoinColumns(boolean hasJoinColumns)
          Sets true if this field is annotated with
 void setLinkColumns(LinkColumns columns)
          Sets the result columns.
 
Methods inherited from class com.caucho.amber.field.CollectionField
createExpr, generateCopyUpdateObject, generateJoin, generateLoadSelect, generatePostCascade, generatePreCascade, generateStatementSet, generateUpdate, getSourceColumn, getTableName, getTargetType, setTable, setType
 
Methods inherited from class com.caucho.amber.field.CascadableField
generateFlushCheck, generateInternalCascade, getCascadeType, isCascadable, isCascade, setCascadeType
 
Methods inherited from class com.caucho.amber.field.AbstractField
childDelete, generateCastFromObject, generateCopyLoadObject, generateCreateTableSQL, generateDetach, generateDumpRelationships, generateEquals, generateExpire, generateGet, generateGet, generateGetterMethod, generateInsert, generateInsertColumns, generateInsertSet, generateInvalidateForeign, generateJavaSelect, generateLoad, generateLoadFromObject, generateLoadNative, generateLoadSelect, generateMergeFrom, generateNativeColumnNames, generateNull, generatePostConstructor, generatePostDelete, generatePostLoadSelect, generatePreDelete, generatePrePersist, generatePrologue, generateSelect, generateSet, generateSet, generateSetterMethod, generateStatementSet, generateSuperGetter, generateSuperGetterMethod, generateSuperSetter, generateSuperSetterMethod, generateUpdate, generateUpdateFromObject, generateUpdateSet, generateWhere, getBeanClass, getColumn, getCreateLoadMask, getEntitySourceType, getFieldName, getGetterMethod, getGetterName, getIndex, getJavaClass, getJavaType, getJavaTypeName, getLoadGroupIndex, getName, getPersistenceUnit, getSetterMethod, getSetterName, getSourceType, getTable, hasLoadGroup, init, isAbstract, isFieldAccess, isKey, isLazy, isOverride, isUpdateable, link, override, setColumn, setIndex, setJavaType, setLazy, setLoadGroupIndex, setName, setOverride, toObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssociationField

public AssociationField(EntityType relatedType,
                        java.lang.String name,
                        CascadeType[] cascadeTypes)
                 throws ConfigException
Throws:
ConfigException

AssociationField

public AssociationField(EntityType relatedType)
Method Detail

hasJoinColumns

public boolean hasJoinColumns()
Returns true if this field is annotated with


setJoinColumns

public void setJoinColumns(boolean hasJoinColumns)
Sets true if this field is annotated with


hasInverseJoinColumns

public boolean hasInverseJoinColumns()
Returns true if this field is annotated with


setInverseJoinColumns

public void setInverseJoinColumns(boolean hasInverseJoinColumns)
Sets true if this field is annotated with


setLinkColumns

public void setLinkColumns(LinkColumns columns)
Sets the result columns.

Overrides:
setLinkColumns in class CollectionField

getLinkColumns

public LinkColumns getLinkColumns()
Gets the result.

Overrides:
getLinkColumns in class CollectionField

generateTargetSelect

public java.lang.String generateTargetSelect(java.lang.String id)
Generates the target select.

Overrides:
generateTargetSelect in class CollectionField