Package org.hibernate.mapping
Class Component
java.lang.Object
org.hibernate.mapping.SimpleValue
org.hibernate.mapping.Component
- All Implemented Interfaces:
Serializable,KeyValue,MetaAttributable,Value
The mapping for a component, composite element,
composite identifier, etc.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(ValueVisitor visitor) voidvoidvoidaddTuplizer(EntityMode entityMode, String implClassName) createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) boolean[]intboolean[]getMetaAttribute(String attributeName) getOwner()getProperty(String propertyName) intgetType()booleanbooleanbooleanbooleanisKey()voidsetComponentClassName(String componentClass) voidsetDynamic(boolean dynamic) voidsetEmbedded(boolean embedded) voidsetKey(boolean isKey) voidsetMetaAttributes(Map metas) voidsetNodeName(String nodeName) voidsetOwner(PersistentClass owner) voidsetParentProperty(String parentProperty) voidsetRoleName(String roleName) voidsetTypeByReflection(String propertyClass, String propertyName) voidsetTypeUsingReflection(String className, String propertyName) toString()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
-
Constructor Details
-
Component
- Throws:
MappingException
-
Component
- Throws:
MappingException
-
Component
- Throws:
MappingException
-
Component
- Throws:
MappingException
-
-
Method Details
-
getPropertySpan
public int getPropertySpan() -
getPropertyIterator
-
addProperty
-
addColumn
- Overrides:
addColumnin classSimpleValue
-
getColumnSpan
public int getColumnSpan()- Specified by:
getColumnSpanin interfaceValue- Overrides:
getColumnSpanin classSimpleValue
-
getColumnIterator
- Specified by:
getColumnIteratorin interfaceValue- Overrides:
getColumnIteratorin classSimpleValue
-
setTypeByReflection
-
isEmbedded
public boolean isEmbedded() -
getComponentClassName
-
getComponentClass
- Throws:
MappingException
-
getOwner
-
getParentProperty
-
setComponentClassName
-
setEmbedded
public void setEmbedded(boolean embedded) -
setOwner
-
setParentProperty
-
isDynamic
public boolean isDynamic() -
setDynamic
public void setDynamic(boolean dynamic) -
getType
- Specified by:
getTypein interfaceValue- Overrides:
getTypein classSimpleValue- Throws:
MappingException
-
setTypeUsingReflection
- Specified by:
setTypeUsingReflectionin interfaceValue- Overrides:
setTypeUsingReflectionin classSimpleValue- Throws:
MappingException
-
getMetaAttributes
- Specified by:
getMetaAttributesin interfaceMetaAttributable
-
getMetaAttribute
- Specified by:
getMetaAttributein interfaceMetaAttributable
-
setMetaAttributes
- Specified by:
setMetaAttributesin interfaceMetaAttributable
-
accept
- Specified by:
acceptin interfaceValue- Overrides:
acceptin classSimpleValue
-
getColumnInsertability
public boolean[] getColumnInsertability()- Specified by:
getColumnInsertabilityin interfaceValue- Overrides:
getColumnInsertabilityin classSimpleValue
-
getColumnUpdateability
public boolean[] getColumnUpdateability()- Specified by:
getColumnUpdateabilityin interfaceValue- Overrides:
getColumnUpdateabilityin classSimpleValue
-
getNodeName
-
setNodeName
-
isKey
public boolean isKey() -
setKey
public void setKey(boolean isKey) -
hasPojoRepresentation
public boolean hasPojoRepresentation() -
addTuplizer
-
getTuplizerImplClassName
-
getTuplizerMap
-
getProperty
- Throws:
MappingException
-
getRoleName
-
setRoleName
-
toString
- Overrides:
toStringin classSimpleValue
-
createIdentifierGenerator
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) throws MappingException - Specified by:
createIdentifierGeneratorin interfaceKeyValue- Overrides:
createIdentifierGeneratorin classSimpleValue- Throws:
MappingException
-