程序包 org.hibernate
接口 CustomEntityDirtinessStrategy.AttributeInformation
-
public static interface CustomEntityDirtinessStrategy.AttributeInformationProvidesCustomEntityDirtinessStrategy.AttributeCheckerwith meta information about the attributes being checked.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 intgetAttributeIndex()Many of Hibernate internals use arrays to define information about attributes.EntityPersistergetContainingPersister()Get a reference to the persister for the entity containing this attribute.ObjectgetCurrentValue()Get the current value of this attribute.ObjectgetLoadedValue()Get the loaded value of this attribute.StringgetName()Get the name of this attribute.TypegetType()Get the mapping type of this attribute.
-
-
-
方法详细资料
-
getContainingPersister
EntityPersister getContainingPersister()
Get a reference to the persister for the entity containing this attribute.- 返回:
- The entity persister.
-
getAttributeIndex
int getAttributeIndex()
Many of Hibernate internals use arrays to define information about attributes. This value provides this index into those arrays for this particular attribute. It can be useful if needing to leverage those Hibernate internals.- 返回:
- The attribute index.
-
getName
String getName()
Get the name of this attribute.- 返回:
- The attribute name
-
getType
Type getType()
Get the mapping type of this attribute.- 返回:
- The mapping type.
-
getCurrentValue
Object getCurrentValue()
Get the current value of this attribute.- 返回:
- The attributes current value
-
getLoadedValue
Object getLoadedValue()
Get the loaded value of this attribute. NOTE : A call to this method may require hitting the database in cases where the loaded state is not known. In those cases the db hit is incurred only once per entity, not for each attribute.- 返回:
- The attributes loaded value
-
-