com.caucho.amber.type
Class EmbeddableType

java.lang.Object
  extended by com.caucho.amber.type.AmberType
      extended by com.caucho.amber.type.AbstractEnhancedType
          extended by com.caucho.amber.type.AmberBeanType
              extended by com.caucho.amber.type.EmbeddableType

public class EmbeddableType
extends AmberBeanType

Represents an embeddable type


Constructor Summary
EmbeddableType(AmberPersistenceUnit amberPersistenceUnit)
           
 
Method Summary
 Embeddable createObject()
          Creates an embeddable object of this type.
 java.lang.String generateLoadSelect(AmberTable table, java.lang.String id)
          Generates the select clause for a load.
 ClassComponent getComponentGenerator()
          Gets a component generator.
 java.lang.Class getInstanceClass()
          Gets the instance class.
 boolean isEmbeddable()
          Returns true for an embeddable
 
Methods inherited from class com.caucho.amber.type.AmberBeanType
addCompletionField, addDependency, addDependency, addField, containsCompletionField, generateCastFromObject, generateExpire, generateInvalidateForeign, generateLoad, generateLoadSelect, generateLoadSelect, generatePrePersist, getCreateLoadMask, getDependencies, getDiscriminator, getField, getField, getFields, getGetter, getGetter, getJavaTypeName, getSelfFields, getSetter, init, isEntity, isFieldAccess, removeAllCompletionFields, setBeanClass, setDiscriminator, setFieldAccess, startConfigure
 
Methods inherited from class com.caucho.amber.type.AbstractEnhancedType
addCallback, addPostLoadCallback, addPostPersistCallback, addPostRemoveCallback, addPostUpdateCallback, addPrePersistCallback, addPreRemoveCallback, addPreUpdateCallback, addStubMethod, getBeanClass, getCallbacks, getClassName, getComponentInterfaceName, getConfigException, getInstance, getInstanceClass, getInstanceClassName, getJavaBeanClass, getMethods, getName, getPersistenceUnit, getPostLoadCallbacks, getPostPersistCallbacks, getPostRemoveCallbacks, getPostUpdateCallbacks, getPrePersistCallbacks, getPreRemoveCallbacks, getPreUpdateCallbacks, isEnhanced, isGenerated, isIdClass, isInit, setConfigException, setEnhanced, setGenerated, setIdClass, setInstance, setInstanceClassLoader, setInstanceClassName, setName, toString
 
Methods inherited from class com.caucho.amber.type.AmberType
findItem, fromObject, generateCreateColumnSQL, generateEquals, generateIncrementVersion, generateIsNull, generateLoad, generateLoad, generateLoadForeign, generateLoadNative, generateNull, generateSet, generateSetNull, generateSetVersion, getColumnCount, getForeignType, getForeignTypeName, getObject, getObject, isAssignableTo, isAutoIncrement, isBoolean, isNumeric, setParameter, toObject, toObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmbeddableType

public EmbeddableType(AmberPersistenceUnit amberPersistenceUnit)
Method Detail

isEmbeddable

public boolean isEmbeddable()
Returns true for an embeddable

Overrides:
isEmbeddable in class AmberBeanType

getComponentGenerator

public ClassComponent getComponentGenerator()
Gets a component generator.

Overrides:
getComponentGenerator in class AbstractEnhancedType

getInstanceClass

public java.lang.Class getInstanceClass()
Gets the instance class.

Overrides:
getInstanceClass in class AbstractEnhancedType

generateLoadSelect

public java.lang.String generateLoadSelect(AmberTable table,
                                           java.lang.String id)
Generates the select clause for a load.

Specified by:
generateLoadSelect in class AmberBeanType

createObject

public Embeddable createObject()
                        throws java.sql.SQLException
Creates an embeddable object of this type.

Throws:
java.sql.SQLException