类 Component
- java.lang.Object
-
- org.hibernate.mapping.SimpleValue
-
- org.hibernate.mapping.Component
-
- 所有已实现的接口:
Serializable,KeyValue,MetaAttributable,Value
public class Component extends SimpleValue implements MetaAttributable
The mapping for a component, composite element, composite identifier, etc.- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classComponent.StandardGenerationContextLocatorstatic classComponent.ValueGenerationPlan
-
字段概要
-
从类继承的字段 org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY
-
-
构造器概要
构造器 构造器 说明 Component(MetadataBuildingContext metadata, Collection collection)Component(MetadataBuildingContext metadata, Component component)Component(MetadataBuildingContext metadata, Join join)Component(MetadataBuildingContext metadata, PersistentClass owner)Component(MetadataBuildingContext metadata, Table table, PersistentClass owner)Component(MetadataImplementor metadata, Collection collection)已过时。UserComponent(MetadataBuildingContext, Collection)instead.Component(MetadataImplementor metadata, Component component)已过时。UserComponent(MetadataBuildingContext, Component)instead.Component(MetadataImplementor metadata, Join join)已过时。UserComponent(MetadataBuildingContext, Join)instead.Component(MetadataImplementor metadata, PersistentClass owner)已过时。UserComponent(MetadataBuildingContext, PersistentClass)instead.Component(MetadataImplementor metadata, Table table, PersistentClass owner)已过时。
-
方法概要
-
从类继承的方法 org.hibernate.mapping.SimpleValue
addColumn, addFormula, copyTypeFrom, createForeignKey, createForeignKeyOfEntity, getConstraintColumns, getFetchMode, getForeignKeyDefinition, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMetadata, getNullValue, getServiceRegistry, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isLob, isNationalized, isNullable, isSame, isSame, isSimpleValue, isTypeSpecified, isUpdateable, isValid, isVersion, makeLob, makeNationalized, makeVersion, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, setTable, setTypeName, setTypeParameters
-
-
-
-
构造器详细资料
-
Component
@Deprecated public Component(MetadataImplementor metadata, PersistentClass owner) throws MappingException
已过时。UserComponent(MetadataBuildingContext, PersistentClass)instead.- 抛出:
MappingException
-
Component
@Deprecated public Component(MetadataImplementor metadata, Component component) throws MappingException
已过时。UserComponent(MetadataBuildingContext, Component)instead.- 抛出:
MappingException
-
Component
@Deprecated public Component(MetadataImplementor metadata, Join join) throws MappingException
已过时。UserComponent(MetadataBuildingContext, Join)instead.- 抛出:
MappingException
-
Component
@Deprecated public Component(MetadataImplementor metadata, Collection collection) throws MappingException
已过时。UserComponent(MetadataBuildingContext, Collection)instead.- 抛出:
MappingException
-
Component
@Deprecated public Component(MetadataImplementor metadata, Table table, PersistentClass owner) throws MappingException
已过时。- 抛出:
MappingException
-
Component
public Component(MetadataBuildingContext metadata, PersistentClass owner) throws MappingException
- 抛出:
MappingException
-
Component
public Component(MetadataBuildingContext metadata, Component component) throws MappingException
- 抛出:
MappingException
-
Component
public Component(MetadataBuildingContext metadata, Join join) throws MappingException
- 抛出:
MappingException
-
Component
public Component(MetadataBuildingContext metadata, Collection collection) throws MappingException
- 抛出:
MappingException
-
Component
public Component(MetadataBuildingContext metadata, Table table, PersistentClass owner) throws MappingException
- 抛出:
MappingException
-
-
方法详细资料
-
getPropertySpan
public int getPropertySpan()
-
getPropertyIterator
public Iterator getPropertyIterator()
-
addProperty
public void addProperty(Property p)
-
addColumn
public void addColumn(Column column)
- 覆盖:
addColumn在类中SimpleValue
-
getColumnSpan
public int getColumnSpan()
- 指定者:
getColumnSpan在接口中Value- 覆盖:
getColumnSpan在类中SimpleValue
-
getColumnIterator
public Iterator<Selectable> getColumnIterator()
- 指定者:
getColumnIterator在接口中Value- 覆盖:
getColumnIterator在类中SimpleValue
-
isEmbedded
public boolean isEmbedded()
-
getComponentClassName
public String getComponentClassName()
-
getComponentClass
public Class getComponentClass() throws MappingException
- 抛出:
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
- 指定者:
getType在接口中Value- 覆盖:
getType在类中SimpleValue- 抛出:
MappingException
-
setTypeUsingReflection
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
- 指定者:
setTypeUsingReflection在接口中Value- 覆盖:
setTypeUsingReflection在类中SimpleValue- 抛出:
MappingException
-
getMetaAttributes
public Map getMetaAttributes()
- 指定者:
getMetaAttributes在接口中MetaAttributable
-
getMetaAttribute
public MetaAttribute getMetaAttribute(String attributeName)
- 指定者:
getMetaAttribute在接口中MetaAttributable
-
setMetaAttributes
public void setMetaAttributes(Map metas)
- 指定者:
setMetaAttributes在接口中MetaAttributable
-
accept
public Object accept(ValueVisitor visitor)
- 指定者:
accept在接口中Value- 覆盖:
accept在类中SimpleValue
-
isSame
public boolean isSame(SimpleValue other)
- 覆盖:
isSame在类中SimpleValue
-
isSame
public boolean isSame(Component other)
-
getColumnInsertability
public boolean[] getColumnInsertability()
- 指定者:
getColumnInsertability在接口中Value- 覆盖:
getColumnInsertability在类中SimpleValue
-
getColumnUpdateability
public boolean[] getColumnUpdateability()
- 指定者:
getColumnUpdateability在接口中Value- 覆盖:
getColumnUpdateability在类中SimpleValue
-
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
- 抛出:
MappingException
-
getRoleName
public String getRoleName()
-
setRoleName
public void setRoleName(String roleName)
-
toString
public String toString()
- 覆盖:
toString在类中SimpleValue
-
createIdentifierGenerator
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) throws MappingException
- 指定者:
createIdentifierGenerator在接口中KeyValue- 覆盖:
createIdentifierGenerator在类中SimpleValue- 抛出:
MappingException
-
-