站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

Property (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.mapping
Class Property

java.lang.Object
  extended bynet.sf.hibernate.mapping.Property

public class Property
extends Object

Mapping for a property of a Java class (entity or component)

Author:
Gavin King

Constructor Summary
Property()
           
 
Method Summary
 String getCascade()
          Returns the cascade.
 Cascades.CascadeStyle getCascadeStyle()
           
 Iterator getColumnIterator()
           
 int getColumnSpan()
           
 Formula getFormula()
           
 Getter getGetter(Class clazz)
           
 MetaAttribute getMetaAttribute(String name)
           
 Map getMetaAttributes()
           
 String getName()
           
 String getNullValue()
           
protected  PropertyAccessor getPropertyAccessor()
           
 String getPropertyAccessorName()
           
 Setter getSetter(Class clazz)
           
 Type getType()
           
 Value getValue()
           
 boolean isBasicPropertyAccessor()
           
 boolean isComposite()
           
 boolean isFormula()
           
 boolean isInsertable()
          Returns the insertable.
 boolean isNullable()
          Approximate!
 boolean isUpdateable()
           
 boolean isValid(Mapping mapping)
           
 void setCascade(String cascade)
          Sets the cascade.
 void setInsertable(boolean insertable)
          Sets the insertable.
 void setMetaAttributes(Map metas)
           
 void setName(String name)
          Sets the name.
 void setPropertyAccessorName(String string)
           
 void setUpdateable(boolean mutable)
          Sets the mutable.
 void setValue(Value value)
          Sets the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property()
Method Detail

getType

public Type getType()

getColumnSpan

public int getColumnSpan()

getColumnIterator

public Iterator getColumnIterator()

getName

public String getName()

isUpdateable

public boolean isUpdateable()

isComposite

public boolean isComposite()

getValue

public Value getValue()

getCascadeStyle

public Cascades.CascadeStyle getCascadeStyle()
                                      throws MappingException
Throws:
MappingException

getCascade

public String getCascade()
Returns the cascade.

Returns:
String

setCascade

public void setCascade(String cascade)
Sets the cascade.

Parameters:
cascade - The cascade to set

setUpdateable

public void setUpdateable(boolean mutable)
Sets the mutable.

Parameters:
mutable - The mutable to set

setName

public void setName(String name)
Sets the name.

Parameters:
name - The name to set

setValue

public void setValue(Value value)
Sets the value.

Parameters:
value - The value to set

isInsertable

public boolean isInsertable()
Returns the insertable.

Returns:
boolean

setInsertable

public void setInsertable(boolean insertable)
Sets the insertable.

Parameters:
insertable - The insertable to set

getFormula

public Formula getFormula()

isFormula

public boolean isFormula()

getPropertyAccessorName

public String getPropertyAccessorName()

setPropertyAccessorName

public void setPropertyAccessorName(String string)

isNullable

public boolean isNullable()
Approximate!


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

protected PropertyAccessor getPropertyAccessor()
                                        throws MappingException
Throws:
MappingException

isBasicPropertyAccessor

public boolean isBasicPropertyAccessor()

getMetaAttributes

public Map getMetaAttributes()

getMetaAttribute

public MetaAttribute getMetaAttribute(String name)

setMetaAttributes

public void setMetaAttributes(Map metas)

isValid

public boolean isValid(Mapping mapping)
                throws MappingException
Throws:
MappingException

getNullValue

public String getNullValue()