类 Property
- java.lang.Object
-
- org.hibernate.mapping.Property
-
- 所有已实现的接口:
Serializable,MetaAttributable
- 直接已知子类:
Backref,IndexBackref,SyntheticProperty
public class Property extends Object implements Serializable, MetaAttributable
Represents a property as part of an entity or a component.- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 Property()
-
方法概要
-
-
-
方法详细资料
-
isBackRef
public boolean isBackRef()
-
isSynthetic
public boolean isSynthetic()
Does this property represent a synthetic property? A synthetic property is one we create during metamodel binding to represent a collection of columns but which does not represent a property physically available on the entity.- 返回:
- True if synthetic; false otherwise.
-
getType
public Type getType() throws MappingException
- 抛出:
MappingException
-
getColumnSpan
public int getColumnSpan()
-
getColumnIterator
public Iterator getColumnIterator()
-
getName
public String getName()
-
isComposite
public boolean isComposite()
-
getValue
public Value getValue()
-
isPrimitive
public boolean isPrimitive(Class clazz)
-
getCascadeStyle
public CascadeStyle getCascadeStyle() throws MappingException
- 抛出:
MappingException
-
getCascade
public String getCascade()
-
setCascade
public void setCascade(String cascade)
-
setName
public void setName(String name)
-
setValue
public void setValue(Value value)
-
isUpdateable
public boolean isUpdateable()
-
isInsertable
public boolean isInsertable()
-
getValueGenerationStrategy
public ValueGeneration getValueGenerationStrategy()
-
setValueGenerationStrategy
public void setValueGenerationStrategy(ValueGeneration valueGenerationStrategy)
-
setUpdateable
public void setUpdateable(boolean mutable)
-
setInsertable
public void setInsertable(boolean insertable)
-
getPropertyAccessorName
public String getPropertyAccessorName()
-
setPropertyAccessorName
public void setPropertyAccessorName(String string)
-
isBasicPropertyAccessor
public boolean isBasicPropertyAccessor()
-
getMetaAttributes
public Map getMetaAttributes()
- 指定者:
getMetaAttributes在接口中MetaAttributable
-
getMetaAttribute
public MetaAttribute getMetaAttribute(String attributeName)
- 指定者:
getMetaAttribute在接口中MetaAttributable
-
setMetaAttributes
public void setMetaAttributes(Map metas)
- 指定者:
setMetaAttributes在接口中MetaAttributable
-
isValid
public boolean isValid(Mapping mapping) throws MappingException
- 抛出:
MappingException
-
setLazy
public void setLazy(boolean lazy)
-
isLazy
public boolean isLazy()
Is this property lazy in the "bytecode" sense? Lazy here means whether we should push *something* to the entity instance for this field in its "base fetch group". Mainly it affects whether we should list this property's columns in the SQL select for the owning entity when we load its "base fetch group". The "something" we push varies based on the nature (basic, etc) of the property.
-
getLazyGroup
public String getLazyGroup()
-
setLazyGroup
public void setLazyGroup(String lazyGroup)
-
isOptimisticLocked
public boolean isOptimisticLocked()
-
setOptimisticLocked
public void setOptimisticLocked(boolean optimisticLocked)
-
isOptional
public boolean isOptional()
-
setOptional
public void setOptional(boolean optional)
-
getPersistentClass
public PersistentClass getPersistentClass()
-
setPersistentClass
public void setPersistentClass(PersistentClass persistentClass)
-
isSelectable
public boolean isSelectable()
-
setSelectable
public void setSelectable(boolean selectable)
-
getAccessorPropertyName
public String getAccessorPropertyName(EntityMode mode)
-
getGetter
public Getter getGetter(Class clazz) throws PropertyNotFoundException, MappingException
-
getSetter
public Setter getSetter(Class clazz) throws PropertyNotFoundException, MappingException
-
getPropertyAccessStrategy
public PropertyAccessStrategy getPropertyAccessStrategy(Class clazz) throws MappingException
- 抛出:
MappingException
-
resolveServiceRegistry
protected ServiceRegistry resolveServiceRegistry()
-
isNaturalIdentifier
public boolean isNaturalIdentifier()
-
setNaturalIdentifier
public void setNaturalIdentifier(boolean naturalIdentifier)
-
isLob
public boolean isLob()
-
setLob
public void setLob(boolean lob)
-
-