org.hibernate.mapping
Class Component
java.lang.Object
org.hibernate.mapping.SimpleValue
org.hibernate.mapping.Component
- All Implemented Interfaces:
- java.io.Serializable, KeyValue, MetaAttributable, Value
public class Component
- extends SimpleValue
- implements MetaAttributable
The mapping for a component, composite element,
composite identifier, etc.
- Author:
- Gavin King
- See Also:
- Serialized Form
| Methods inherited from class org.hibernate.mapping.SimpleValue |
addFormula, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, getConstraintColumns, getFetchMode, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getNullValue, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNullable, isSimpleValue, isTypeSpecified, isUpdateable, isValid, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeName, setTypeParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Component
public Component(PersistentClass owner)
throws MappingException
- Throws:
MappingException
Component
public Component(Component component)
throws MappingException
- Throws:
MappingException
Component
public Component(Join join)
throws MappingException
- Throws:
MappingException
Component
public Component(Collection collection)
throws MappingException
- Throws:
MappingException
getPropertySpan
public int getPropertySpan()
getPropertyIterator
public java.util.Iterator getPropertyIterator()
addProperty
public void addProperty(Property p)
addColumn
public void addColumn(Column column)
- Overrides:
addColumn in class SimpleValue
getColumnSpan
public int getColumnSpan()
- Specified by:
getColumnSpan in interface Value- Overrides:
getColumnSpan in class SimpleValue
getColumnIterator
public java.util.Iterator getColumnIterator()
- Specified by:
getColumnIterator in interface Value- Overrides:
getColumnIterator in class SimpleValue
setTypeByReflection
public void setTypeByReflection(java.lang.String propertyClass,
java.lang.String propertyName)
isEmbedded
public boolean isEmbedded()
getComponentClassName
public java.lang.String getComponentClassName()
getComponentClass
public java.lang.Class getComponentClass()
throws MappingException
- Throws:
MappingException
getOwner
public PersistentClass getOwner()
getParentProperty
public java.lang.String getParentProperty()
setComponentClassName
public void setComponentClassName(java.lang.String componentClass)
setEmbedded
public void setEmbedded(boolean embedded)
setOwner
public void setOwner(PersistentClass owner)
setParentProperty
public void setParentProperty(java.lang.String parentProperty)
isDynamic
public boolean isDynamic()
setDynamic
public void setDynamic(boolean dynamic)
getType
public Type getType()
throws MappingException
- Specified by:
getType in interface Value- Overrides:
getType in class SimpleValue
- Throws:
MappingException
setTypeUsingReflection
public void setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName)
throws MappingException
- Specified by:
setTypeUsingReflection in interface Value- Overrides:
setTypeUsingReflection in class SimpleValue
- Throws:
MappingException
getMetaAttributes
public java.util.Map getMetaAttributes()
- Specified by:
getMetaAttributes in interface MetaAttributable
getMetaAttribute
public MetaAttribute getMetaAttribute(java.lang.String attributeName)
- Specified by:
getMetaAttribute in interface MetaAttributable
setMetaAttributes
public void setMetaAttributes(java.util.Map metas)
- Specified by:
setMetaAttributes in interface MetaAttributable
accept
public java.lang.Object accept(ValueVisitor visitor)
- Specified by:
accept in interface Value- Overrides:
accept in class SimpleValue
getColumnInsertability
public boolean[] getColumnInsertability()
- Specified by:
getColumnInsertability in interface Value- Overrides:
getColumnInsertability in class SimpleValue
getColumnUpdateability
public boolean[] getColumnUpdateability()
- Specified by:
getColumnUpdateability in interface Value- Overrides:
getColumnUpdateability in class SimpleValue
getNodeName
public java.lang.String getNodeName()
setNodeName
public void setNodeName(java.lang.String nodeName)
isKey
public boolean isKey()
setKey
public void setKey(boolean isKey)
hasPojoRepresentation
public boolean hasPojoRepresentation()
addTuplizer
public void addTuplizer(EntityMode entityMode,
java.lang.String implClassName)
getTuplizerImplClassName
public java.lang.String getTuplizerImplClassName(EntityMode mode)
getTuplizerMap
public java.util.Map getTuplizerMap()
getProperty
public Property getProperty(java.lang.String propertyName)
throws MappingException
- Throws:
MappingException
getRoleName
public java.lang.String getRoleName()
setRoleName
public void setRoleName(java.lang.String roleName)
toString
public java.lang.String toString()
- Overrides:
toString in class SimpleValue
Copyright © 2008 Hibernate.org. All Rights Reserved.