类 Any
- java.lang.Object
-
- org.hibernate.mapping.SimpleValue
-
- org.hibernate.mapping.Any
-
- 所有已实现的接口:
Serializable,KeyValue,Value
public class Any extends SimpleValue
A Hibernate "any" type (ie. polymorphic association to one-of-several tables).- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY
-
-
构造器概要
构造器 构造器 说明 Any(MetadataBuildingContext buildingContext, Table table)Any(MetadataImplementor metadata, Table table)已过时。UseAny(MetadataBuildingContext, Table)instead.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectaccept(ValueVisitor visitor)StringgetIdentifierType()StringgetMetaType()MapgetMetaValues()TypegetType()booleanisLazy()booleanisSame(Any other)booleanisSame(SimpleValue other)voidsetIdentifierType(String identifierType)voidsetLazy(boolean lazy)voidsetMetaType(String type)voidsetMetaValues(Map metaValues)voidsetTypeByReflection(String propertyClass, String propertyName)voidsetTypeUsingReflection(String className, String propertyName)-
从类继承的方法 org.hibernate.mapping.SimpleValue
addColumn, addColumn, addFormula, copyTypeFrom, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, 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, toString
-
-
-
-
构造器详细资料
-
Any
@Deprecated public Any(MetadataImplementor metadata, Table table)
已过时。UseAny(MetadataBuildingContext, Table)instead.
-
Any
public Any(MetadataBuildingContext buildingContext, Table table)
-
-
方法详细资料
-
getIdentifierType
public String getIdentifierType()
-
setIdentifierType
public void setIdentifierType(String identifierType)
-
getType
public Type getType() throws MappingException
- 指定者:
getType在接口中Value- 覆盖:
getType在类中SimpleValue- 抛出:
MappingException
-
getMetaType
public String getMetaType()
-
setMetaType
public void setMetaType(String type)
-
getMetaValues
public Map getMetaValues()
-
setMetaValues
public void setMetaValues(Map metaValues)
-
isLazy
public boolean isLazy()
-
setLazy
public void setLazy(boolean lazy)
-
setTypeUsingReflection
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
- 指定者:
setTypeUsingReflection在接口中Value- 覆盖:
setTypeUsingReflection在类中SimpleValue- 抛出:
MappingException
-
accept
public Object accept(ValueVisitor visitor)
- 指定者:
accept在接口中Value- 覆盖:
accept在类中SimpleValue
-
isSame
public boolean isSame(SimpleValue other)
- 覆盖:
isSame在类中SimpleValue
-
isSame
public boolean isSame(Any other)
-
-