Package org.hibernate.mapping
Class Property
java.lang.Object
org.hibernate.mapping.Property
- All Implemented Interfaces:
Serializable,MetaAttributable
- Direct Known Subclasses:
Backref,IndexBackref,SyntheticProperty
Represents a property as part of an entity or a component.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetMetaAttribute(String attributeName) getName()getPropertyAccessor(Class clazz) getType()getValue()booleanbooleanbooleanbooleanbooleanisLazy()booleanbooleanbooleanbooleanisPrimitive(Class clazz) booleanbooleanDoes 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.booleanbooleanvoidsetCascade(String cascade) voidsetGeneration(PropertyGeneration generation) voidsetInsertable(boolean insertable) voidsetLazy(boolean lazy) voidsetMetaAttributes(Map metas) voidvoidsetNaturalIdentifier(boolean naturalIdentifier) voidsetNodeName(String nodeName) voidsetOptimisticLocked(boolean optimisticLocked) voidsetOptional(boolean optional) voidsetPersistentClass(PersistentClass persistentClass) voidsetPropertyAccessorName(String string) voidsetSelectable(boolean selectable) voidsetUpdateable(boolean mutable) voidtoString()
-
Constructor Details
-
Property
public Property()
-
-
Method Details
-
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.- Returns:
- True if synthetic; false otherwise.
-
getType
- Throws:
MappingException
-
getColumnSpan
public int getColumnSpan() -
getColumnIterator
-
getName
-
isComposite
public boolean isComposite() -
getValue
-
isPrimitive
-
getCascadeStyle
- Throws:
MappingException
-
getCascade
-
setCascade
-
setName
-
setValue
-
isUpdateable
public boolean isUpdateable() -
isInsertable
public boolean isInsertable() -
getGeneration
-
setGeneration
-
setUpdateable
public void setUpdateable(boolean mutable) -
setInsertable
public void setInsertable(boolean insertable) -
getPropertyAccessorName
-
setPropertyAccessorName
-
isBasicPropertyAccessor
public boolean isBasicPropertyAccessor() -
getMetaAttributes
- Specified by:
getMetaAttributesin interfaceMetaAttributable
-
getMetaAttribute
- Specified by:
getMetaAttributein interfaceMetaAttributable
-
setMetaAttributes
- Specified by:
setMetaAttributesin interfaceMetaAttributable
-
isValid
- Throws:
MappingException
-
toString
-
setLazy
public void setLazy(boolean lazy) -
isLazy
public boolean isLazy() -
isOptimisticLocked
public boolean isOptimisticLocked() -
setOptimisticLocked
public void setOptimisticLocked(boolean optimisticLocked) -
isOptional
public boolean isOptional() -
setOptional
public void setOptional(boolean optional) -
getPersistentClass
-
setPersistentClass
-
isSelectable
public boolean isSelectable() -
setSelectable
public void setSelectable(boolean selectable) -
getNodeName
-
setNodeName
-
getAccessorPropertyName
-
getGetter
-
getSetter
-
getPropertyAccessor
- Throws:
MappingException
-
isNaturalIdentifier
public boolean isNaturalIdentifier() -
setNaturalIdentifier
public void setNaturalIdentifier(boolean naturalIdentifier)
-