org.hibernate.mapping
Class Property
java.lang.Object
   org.hibernate.mapping.Property
org.hibernate.mapping.Property
- All Implemented Interfaces: 
- Serializable, MetaAttributable
- Direct Known Subclasses: 
- Backref, IndexBackref, SyntheticProperty
- public class Property 
- extends Object- implements Serializable, MetaAttributable
Represents a property as part of an entity or a component.
- Author:
- Gavin King
- See Also:
- Serialized Form
 
 
 
Property
public 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.
 
- 
 
- 
- Returns:
- True if synthetic; false otherwise.
 
getType
public Type getType()
             throws MappingException
- 
 
- 
- Throws:
- 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
- 
 
- 
- Throws:
- 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()
- 
 
- 
 
getGeneration
public PropertyGeneration getGeneration()
- 
 
- 
 
setGeneration
public void setGeneration(PropertyGeneration generation)
- 
 
- 
 
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()
- 
- Specified by:
- getMetaAttributesin interface- MetaAttributable
 
- 
 
getMetaAttribute
public MetaAttribute getMetaAttribute(String attributeName)
- 
- Specified by:
- getMetaAttributein interface- MetaAttributable
 
- 
 
setMetaAttributes
public void setMetaAttributes(Map metas)
- 
- Specified by:
- setMetaAttributesin interface- MetaAttributable
 
- 
 
isValid
public boolean isValid(Mapping mapping)
                throws MappingException
- 
 
- 
- Throws:
- MappingException
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
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
public PersistentClass getPersistentClass()
- 
 
- 
 
setPersistentClass
public void setPersistentClass(PersistentClass persistentClass)
- 
 
- 
 
isSelectable
public boolean isSelectable()
- 
 
- 
 
setSelectable
public void setSelectable(boolean selectable)
- 
 
- 
 
getNodeName
public String getNodeName()
- 
 
- 
 
setNodeName
public void setNodeName(String nodeName)
- 
 
- 
 
getAccessorPropertyName
public String getAccessorPropertyName(EntityMode mode)
- 
 
- 
 
getGetter
public Getter getGetter(Class clazz)
                 throws PropertyNotFoundException,
                        MappingException
- 
 
- 
- Throws:
- PropertyNotFoundException
- MappingException
 
getSetter
public Setter getSetter(Class clazz)
                 throws PropertyNotFoundException,
                        MappingException
- 
 
- 
- Throws:
- PropertyNotFoundException
- MappingException
 
getPropertyAccessor
public PropertyAccessor getPropertyAccessor(Class clazz)
                                     throws MappingException
- 
 
- 
- Throws:
- MappingException
 
isNaturalIdentifier
public boolean isNaturalIdentifier()
- 
 
- 
 
setNaturalIdentifier
public void setNaturalIdentifier(boolean naturalIdentifier)
- 
 
- 
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.