org.hibernate.mapping

Class Component

Implemented Interfaces:
KeyValue, MetaAttributable, Serializable, Value

public class Component
extends SimpleValue
implements MetaAttributable

The mapping for a component, composite element, composite identifier, etc.
Author:
Gavin King

Constructor Summary

Component(Collection collection)
Component(Component component)
Component(Join join)
Component(PersistentClass owner)

Method Summary

Object
accept(ValueVisitor visitor)
void
addColumn(Column column)
void
addProperty(Property p)
void
addTuplizer(EntityMode entityMode, String implClassName)
boolean[]
getColumnInsertability()
Iterator
getColumnIterator()
int
getColumnSpan()
boolean[]
getColumnUpdateability()
Class
getComponentClass()
String
getComponentClassName()
MetaAttribute
getMetaAttribute(String attributeName)
Map
getMetaAttributes()
String
getNodeName()
PersistentClass
getOwner()
String
getParentProperty()
Property
getProperty(String propertyName)
Iterator
getPropertyIterator()
int
getPropertySpan()
String
getRoleName()
String
getTuplizerImplClassName(EntityMode mode)
Map
getTuplizerMap()
Type
getType()
boolean
hasPojoRepresentation()
boolean
isDynamic()
boolean
isEmbedded()
boolean
isKey()
void
setComponentClassName(String componentClass)
void
setDynamic(boolean dynamic)
void
setEmbedded(boolean embedded)
void
setKey(boolean isKey)
void
setMetaAttributes(Map metas)
void
setNodeName(String nodeName)
void
setOwner(PersistentClass owner)
void
setParentProperty(String parentProperty)
void
setRoleName(String roleName)
void
setTypeByReflection(String propertyClass, String propertyName)
void
setTypeUsingReflection(String className, String propertyName)
String
toString()

Methods inherited from class org.hibernate.mapping.SimpleValue

accept, addColumn, addFormula, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getFetchMode, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getNullValue, getTable, getType, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNullable, isSimpleValue, isTypeSpecified, isUpdateable, isValid, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeName, setTypeParameters, setTypeUsingReflection, toString

Constructor Details

Component

public Component(Collection collection)
            throws MappingException

Component

public Component(Component component)
            throws MappingException

Component

public Component(Join join)
            throws MappingException

Component

public Component(PersistentClass owner)
            throws MappingException

Method Details

accept

public Object accept(ValueVisitor visitor)
Specified by:
accept in interface Value
Overrides:
accept in interface SimpleValue

addColumn

public void addColumn(Column column)
Overrides:
addColumn in interface SimpleValue

addProperty

public void addProperty(Property p)

addTuplizer

public void addTuplizer(EntityMode entityMode,
                        String implClassName)

getColumnInsertability

public boolean[] getColumnInsertability()
Specified by:
getColumnInsertability in interface Value
Overrides:
getColumnInsertability in interface SimpleValue

getColumnIterator

public Iterator getColumnIterator()
Specified by:
getColumnIterator in interface Value
Overrides:
getColumnIterator in interface SimpleValue

getColumnSpan

public int getColumnSpan()
Specified by:
getColumnSpan in interface Value
Overrides:
getColumnSpan in interface SimpleValue

getColumnUpdateability

public boolean[] getColumnUpdateability()
Specified by:
getColumnUpdateability in interface Value
Overrides:
getColumnUpdateability in interface SimpleValue

getComponentClass

public Class getComponentClass()
            throws MappingException

getComponentClassName

public String getComponentClassName()

getMetaAttribute

public MetaAttribute getMetaAttribute(String attributeName)
Specified by:
getMetaAttribute in interface MetaAttributable

getMetaAttributes

public Map getMetaAttributes()
Specified by:
getMetaAttributes in interface MetaAttributable

getNodeName

public String getNodeName()

getOwner

public PersistentClass getOwner()

getParentProperty

public String getParentProperty()

getProperty

public Property getProperty(String propertyName)
            throws MappingException

getPropertyIterator

public Iterator getPropertyIterator()

getPropertySpan

public int getPropertySpan()

getRoleName

public String getRoleName()

getTuplizerImplClassName

public String getTuplizerImplClassName(EntityMode mode)

getTuplizerMap

public Map getTuplizerMap()

getType

public Type getType()
            throws MappingException
Specified by:
getType in interface Value
Overrides:
getType in interface SimpleValue

hasPojoRepresentation

public boolean hasPojoRepresentation()

isDynamic

public boolean isDynamic()

isEmbedded

public boolean isEmbedded()

isKey

public boolean isKey()

setComponentClassName

public void setComponentClassName(String componentClass)

setDynamic

public void setDynamic(boolean dynamic)

setEmbedded

public void setEmbedded(boolean embedded)

setKey

public void setKey(boolean isKey)

setMetaAttributes

public void setMetaAttributes(Map metas)

setNodeName

public void setNodeName(String nodeName)

setOwner

public void setOwner(PersistentClass owner)

setParentProperty

public void setParentProperty(String parentProperty)

setRoleName

public void setRoleName(String roleName)

setTypeByReflection

public void setTypeByReflection(String propertyClass,
                                String propertyName)

setTypeUsingReflection

public void setTypeUsingReflection(String className,
                                   String propertyName)
            throws MappingException
Specified by:
setTypeUsingReflection in interface Value
Overrides:
setTypeUsingReflection in interface SimpleValue

toString

public String toString()
Overrides:
toString in interface SimpleValue