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

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


net.sf.hibernate.mapping
Class Component

java.lang.Object
  extended bynet.sf.hibernate.mapping.SimpleValue
      extended bynet.sf.hibernate.mapping.Component
All Implemented Interfaces:
Value

public class Component
extends SimpleValue

The mapping for a component, composite element, composite identifier, etc.

Author:
Gavin King

Constructor Summary
Component(PersistentClass owner)
           
Component(Table table)
           
 
Method Summary
 void addColumn(Column column)
           
 void addProperty(Property p)
           
 Iterator getColumnIterator()
           
 int getColumnSpan()
           
 Class getComponentClass()
          Returns the componentClass.
 PersistentClass getOwner()
          Returns the owner.
 String getParentProperty()
          Returns the parentProperty.
 Iterator getPropertyIterator()
           
 int getPropertySpan()
           
 boolean isDynamic()
           
 boolean isEmbedded()
           
 void setComponentClass(Class componentClass)
          Sets the componentClass.
 void setDynamic(boolean dynamic)
           
 void setEmbedded(boolean embedded)
          Sets the embedded.
 void setOwner(PersistentClass owner)
          Sets the owner.
 void setParentProperty(String parentProperty)
          Sets the parentProperty.
 void setTypeByReflection(Class propertyClass, String propertyName)
           
 
Methods inherited from class net.sf.hibernate.mapping.SimpleValue
createForeignKey, createForeignKeyOfClass, createIdentifierGenerator, getConstraintColumns, getForeignKeyName, getFormula, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getNullValue, getOuterJoinFetchSetting, getTable, getType, isNullable, isSimpleValue, isUnique, isValid, setForeignKeyName, setFormula, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setType, setUnique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Component

public Component(PersistentClass owner)
          throws MappingException

Component

public Component(Table table)
          throws MappingException
Method Detail

getPropertySpan

public int getPropertySpan()

getPropertyIterator

public Iterator getPropertyIterator()

addProperty

public void addProperty(Property p)

addColumn

public void addColumn(Column column)
Overrides:
addColumn in class SimpleValue

getColumnSpan

public int getColumnSpan()
Specified by:
getColumnSpan in interface Value
Overrides:
getColumnSpan in class SimpleValue

getColumnIterator

public Iterator getColumnIterator()
Specified by:
getColumnIterator in interface Value
Overrides:
getColumnIterator in class SimpleValue

setTypeByReflection

public void setTypeByReflection(Class propertyClass,
                                String propertyName)
                         throws MappingException
Overrides:
setTypeByReflection in class SimpleValue
Throws:
MappingException

isEmbedded

public boolean isEmbedded()

getComponentClass

public Class getComponentClass()
Returns the componentClass.

Returns:
Class

getOwner

public PersistentClass getOwner()
Returns the owner.

Returns:
PersistentClass

getParentProperty

public String getParentProperty()
Returns the parentProperty.

Returns:
String

setComponentClass

public void setComponentClass(Class componentClass)
Sets the componentClass.

Parameters:
componentClass - The componentClass to set

setEmbedded

public void setEmbedded(boolean embedded)
Sets the embedded.

Parameters:
embedded - The embedded to set

setOwner

public void setOwner(PersistentClass owner)
Sets the owner.

Parameters:
owner - The owner to set

setParentProperty

public void setParentProperty(String parentProperty)
Sets the parentProperty.

Parameters:
parentProperty - The parentProperty to set

isDynamic

public boolean isDynamic()
Returns:
Returns the dynamic.

setDynamic

public void setDynamic(boolean dynamic)
Parameters:
dynamic - The dynamic to set.