com.caucho.amber.field
Class Discriminator

java.lang.Object
  extended by com.caucho.amber.field.AbstractField
      extended by com.caucho.amber.field.PropertyField
          extended by com.caucho.amber.field.Discriminator
All Implemented Interfaces:
AmberField

public class Discriminator
extends PropertyField

Configuration for a bean's field


Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
Discriminator(EntityType entityType)
           
Discriminator(EntityType entityType, java.lang.String name)
           
 
Method Summary
 java.lang.String generateLoadSelect(java.lang.String table)
          Generates the load select.
 
Methods inherited from class com.caucho.amber.field.PropertyField
createExpr, generateGetterMethod, generateInsertColumns, generateInsertSet, generateLoad, generateLoadNative, generateLoadSelect, generateNativeColumnNames, generateNull, generateSelect, generateSetterMethod, generateStatementSet, generateUpdate, generateUpdateSet, generateWhere, getColumn, getFieldName, getRelatedSourceType, getTable, getType, init, isInsert, isUpdate, override, setColumn, setInsert, setType, setUpdate
 
Methods inherited from class com.caucho.amber.field.AbstractField
childDelete, generateCastFromObject, generateCopyLoadObject, generateCopyUpdateObject, generateCreateTableSQL, generateDetach, generateDumpRelationships, generateEquals, generateExpire, generateGet, generateGet, generateInsert, generateInvalidateForeign, generateJavaSelect, generateLoadFromObject, generateMergeFrom, generatePostConstructor, generatePostDelete, generatePostLoadSelect, generatePreDelete, generatePrePersist, generatePrologue, generateSet, generateSet, generateStatementSet, generateSuperGetter, generateSuperGetterMethod, generateSuperSetter, generateSuperSetterMethod, generateUpdate, generateUpdateFromObject, getBeanClass, getCreateLoadMask, getEntitySourceType, getGetterMethod, getGetterName, getIndex, getJavaClass, getJavaType, getJavaTypeName, getLoadGroupIndex, getName, getPersistenceUnit, getSetterMethod, getSetterName, getSourceType, hasLoadGroup, isAbstract, isCascadable, isFieldAccess, isKey, isLazy, isOverride, isUpdateable, link, 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

Discriminator

public Discriminator(EntityType entityType,
                     java.lang.String name)
              throws ConfigException
Throws:
ConfigException

Discriminator

public Discriminator(EntityType entityType)
Method Detail

generateLoadSelect

public java.lang.String generateLoadSelect(java.lang.String table)
Generates the load select.