com.caucho.amber.field
Class MapElementField

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
                  extended by com.caucho.amber.field.MapElementField
All Implemented Interfaces:
AmberField, MapField
Direct Known Subclasses:
MapManyToManyField

public class MapElementField
extends AssociationField
implements MapField

Configuration for a bean's field


Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
MapElementField(EntityType entityType)
           
 
Method Summary
 void generateGetterMethod(JavaWriter out)
          Generates the set property.
 java.lang.String generateLoadSelect(java.lang.String id)
          Generates the select clause.
 java.util.ArrayList<AmberColumn> getIndexColumns()
          Sets the index columns.
 void setIndexColumns(java.util.ArrayList<AmberColumn> columns)
          Sets the index columns.
 
Methods inherited from class com.caucho.amber.field.AssociationField
generateTargetSelect, getLinkColumns, hasInverseJoinColumns, hasJoinColumns, setInverseJoinColumns, setJoinColumns, setLinkColumns
 
Methods inherited from class com.caucho.amber.field.CollectionField
createExpr, generateCopyUpdateObject, generateJoin, 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, 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
 

Field Detail

log

protected static final java.util.logging.Logger log
Constructor Detail

MapElementField

public MapElementField(EntityType entityType)
Method Detail

setIndexColumns

public void setIndexColumns(java.util.ArrayList<AmberColumn> columns)
Sets the index columns.

Specified by:
setIndexColumns in interface MapField

getIndexColumns

public java.util.ArrayList<AmberColumn> getIndexColumns()
Sets the index columns.


generateLoadSelect

public java.lang.String generateLoadSelect(java.lang.String id)
Generates the select clause.

Overrides:
generateLoadSelect in class CollectionField

generateGetterMethod

public void generateGetterMethod(JavaWriter out)
                          throws java.io.IOException
Generates the set property.

Specified by:
generateGetterMethod in interface AmberField
Overrides:
generateGetterMethod in class AbstractField
Throws:
java.io.IOException