org.hibernate.mapping

Class Property

Implemented Interfaces:
Serializable, MetaAttributable
Known Direct Subclasses:
Backref, IndexBackref

public class Property
extends java.lang.Object
implements Serializable, MetaAttributable

Represents a property as part of an entity or a component.
Author:
Gavin King

Method Summary

String
getAccessorPropertyName(EntityMode mode)
String
getCascade()
CascadeStyle
getCascadeStyle()
Iterator
getColumnIterator()
int
getColumnSpan()
PropertyGeneration
getGeneration()
Getter
getGetter(Class clazz)
MetaAttribute
getMetaAttribute(String attributeName)
java.util.Map
getMetaAttributes()
String
getName()
String
getNodeName()
PersistentClass
getPersistentClass()
PropertyAccessor
getPropertyAccessor(Class clazz)
String
getPropertyAccessorName()
Setter
getSetter(Class clazz)
Type
getType()
Value
getValue()
boolean
isBackRef()
boolean
isBasicPropertyAccessor()
boolean
isComposite()
boolean
isInsertable()
boolean
isLazy()
boolean
isNaturalIdentifier()
boolean
isOptimisticLocked()
boolean
isOptional()
boolean
isPrimitive(Class clazz)
boolean
isSelectable()
boolean
isUpdateable()
boolean
isValid(Mapping mapping)
void
setCascade(String cascade)
void
setGeneration(PropertyGeneration generation)
void
setInsertable(boolean insertable)
void
setLazy(boolean lazy)
void
setMetaAttributes(java.util.Map metas)
void
setName(String name)
void
setNaturalIdentifier(boolean naturalIdentifier)
void
setNodeName(String nodeName)
void
setOptimisticLocked(boolean optimisticLocked)
void
setOptional(boolean optional)
void
setPersistentClass(PersistentClass persistentClass)
void
setPropertyAccessorName(String string)
void
setSelectable(boolean selectable)
void
setUpdateable(boolean mutable)
void
setValue(Value value)
String
toString()

Method Details

getAccessorPropertyName

public String getAccessorPropertyName(EntityMode mode)

getCascade

public String getCascade()

getCascadeStyle

public CascadeStyle getCascadeStyle()
            throws MappingException

getColumnIterator

public Iterator getColumnIterator()

getColumnSpan

public int getColumnSpan()

getGeneration

public PropertyGeneration getGeneration()

getGetter

public Getter getGetter(Class clazz)
            throws PropertyNotFoundException,
                   MappingException

getMetaAttribute

public MetaAttribute getMetaAttribute(String attributeName)
Specified by:
getMetaAttribute in interface MetaAttributable

getMetaAttributes

public java.util.Map getMetaAttributes()
Specified by:
getMetaAttributes in interface MetaAttributable

getName

public String getName()

getNodeName

public String getNodeName()

getPersistentClass

public PersistentClass getPersistentClass()

getPropertyAccessor

public PropertyAccessor getPropertyAccessor(Class clazz)
            throws MappingException

getPropertyAccessorName

public String getPropertyAccessorName()

getSetter

public Setter getSetter(Class clazz)
            throws PropertyNotFoundException,
                   MappingException

getType

public Type getType()
            throws MappingException

getValue

public Value getValue()

isBackRef

public boolean isBackRef()

isBasicPropertyAccessor

public boolean isBasicPropertyAccessor()

isComposite

public boolean isComposite()

isInsertable

public boolean isInsertable()

isLazy

public boolean isLazy()

isNaturalIdentifier

public boolean isNaturalIdentifier()

isOptimisticLocked

public boolean isOptimisticLocked()

isOptional

public boolean isOptional()

isPrimitive

public boolean isPrimitive(Class clazz)

isSelectable

public boolean isSelectable()

isUpdateable

public boolean isUpdateable()

isValid

public boolean isValid(Mapping mapping)
            throws MappingException

setCascade

public void setCascade(String cascade)

setGeneration

public void setGeneration(PropertyGeneration generation)

setInsertable

public void setInsertable(boolean insertable)

setLazy

public void setLazy(boolean lazy)

setMetaAttributes

public void setMetaAttributes(java.util.Map metas)
Specified by:
setMetaAttributes in interface MetaAttributable

setName

public void setName(String name)

setNaturalIdentifier

public void setNaturalIdentifier(boolean naturalIdentifier)

setNodeName

public void setNodeName(String nodeName)

setOptimisticLocked

public void setOptimisticLocked(boolean optimisticLocked)

setOptional

public void setOptional(boolean optional)

setPersistentClass

public void setPersistentClass(PersistentClass persistentClass)

setPropertyAccessorName

public void setPropertyAccessorName(String string)

setSelectable

public void setSelectable(boolean selectable)

setUpdateable

public void setUpdateable(boolean mutable)

setValue

public void setValue(Value value)

toString

public String toString()