org.hibernate.mapping
Class Component
java.lang.Object
org.hibernate.mapping.SimpleValue
org.hibernate.mapping.Component
- All Implemented Interfaces:
- Serializable, KeyValue, MetaAttributable, Value
public class Component
- extends SimpleValue
- implements MetaAttributable
The mapping for a component, composite element,
composite identifier, etc.
- Author:
- Gavin King, Steve Ebersole
- See Also:
- Serialized Form
Methods inherited from class org.hibernate.mapping.SimpleValue |
addFormula, createForeignKey, createForeignKeyOfEntity, getConstraintColumns, getFetchMode, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMappings, getNullValue, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNullable, isSimpleValue, isTypeSpecified, isUpdateable, isValid, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeName, setTypeParameters |
Component
public Component(Mappings mappings,
PersistentClass owner)
throws MappingException
- Throws:
MappingException
Component
public Component(Mappings mappings,
Component component)
throws MappingException
- Throws:
MappingException
Component
public Component(Mappings mappings,
Join join)
throws MappingException
- Throws:
MappingException
Component
public Component(Mappings mappings,
Collection collection)
throws MappingException
- Throws:
MappingException
getPropertySpan
public int getPropertySpan()
getPropertyIterator
public 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 Iterator getColumnIterator()
- Specified by:
getColumnIterator
in interface Value
- Overrides:
getColumnIterator
in class SimpleValue
setTypeByReflection
public void setTypeByReflection(String propertyClass,
String propertyName)
isEmbedded
public boolean isEmbedded()
getComponentClassName
public String getComponentClassName()
getComponentClass
public Class getComponentClass()
throws MappingException
- Throws:
MappingException
getOwner
public PersistentClass getOwner()
getParentProperty
public String getParentProperty()
setComponentClassName
public void setComponentClassName(String componentClass)
setEmbedded
public void setEmbedded(boolean embedded)
setOwner
public void setOwner(PersistentClass owner)
setParentProperty
public void setParentProperty(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(String className,
String propertyName)
throws MappingException
- Specified by:
setTypeUsingReflection
in interface Value
- Overrides:
setTypeUsingReflection
in class SimpleValue
- Throws:
MappingException
getMetaAttributes
public Map getMetaAttributes()
- Specified by:
getMetaAttributes
in interface MetaAttributable
getMetaAttribute
public MetaAttribute getMetaAttribute(String attributeName)
- Specified by:
getMetaAttribute
in interface MetaAttributable
setMetaAttributes
public void setMetaAttributes(Map metas)
- Specified by:
setMetaAttributes
in interface MetaAttributable
accept
public 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 String getNodeName()
setNodeName
public void setNodeName(String nodeName)
isKey
public boolean isKey()
setKey
public void setKey(boolean isKey)
hasPojoRepresentation
public boolean hasPojoRepresentation()
addTuplizer
public void addTuplizer(EntityMode entityMode,
String implClassName)
getTuplizerImplClassName
public String getTuplizerImplClassName(EntityMode mode)
getTuplizerMap
public Map getTuplizerMap()
getProperty
public Property getProperty(String propertyName)
throws MappingException
- Throws:
MappingException
getRoleName
public String getRoleName()
setRoleName
public void setRoleName(String roleName)
toString
public String toString()
- Overrides:
toString
in class SimpleValue
createIdentifierGenerator
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory,
Dialect dialect,
String defaultCatalog,
String defaultSchema,
RootClass rootClass)
throws MappingException
- Specified by:
createIdentifierGenerator
in interface KeyValue
- Overrides:
createIdentifierGenerator
in class SimpleValue
- Throws:
MappingException
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.