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

AbstractComponentType (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.type
Interface AbstractComponentType

All Superinterfaces:
Serializable, Type
All Known Implementing Classes:
AnyType, ComponentType, CompositeCustomType

public interface AbstractComponentType
extends Type

Enables other Component-like types to hold collections and have cascades, etc.

Author:
Gavin King
See Also:
ComponentType, AnyType

Method Summary
 CascadeStyle getCascadeStyle(int i)
           
 FetchMode getFetchMode(int i)
           
 String[] getPropertyNames()
          Get the names of the component properties
 boolean[] getPropertyNullability()
          Optional operation
 Object getPropertyValue(Object component, int i, SessionImplementor session)
           
 Object[] getPropertyValues(Object component, EntityMode entityMode)
          Optional operation
 Object[] getPropertyValues(Object component, SessionImplementor session)
          Get the values of the component properties of a component instance
 Type[] getSubtypes()
          Get the types of the component properties
 boolean isEmbedded()
           
 boolean isMethodOf(Method method)
           
 void setPropertyValues(Object component, Object[] values, EntityMode entityMode)
          Optional operation
 
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString
 

Method Detail

getSubtypes

public Type[] getSubtypes()
Get the types of the component properties


getPropertyNames

public String[] getPropertyNames()
Get the names of the component properties


getPropertyNullability

public boolean[] getPropertyNullability()
Optional operation

Returns:
nullability of component properties

getPropertyValues

public Object[] getPropertyValues(Object component,
                                  SessionImplementor session)
                           throws HibernateException
Get the values of the component properties of a component instance

Throws:
HibernateException

getPropertyValues

public Object[] getPropertyValues(Object component,
                                  EntityMode entityMode)
                           throws HibernateException
Optional operation

Throws:
HibernateException

setPropertyValues

public void setPropertyValues(Object component,
                              Object[] values,
                              EntityMode entityMode)
                       throws HibernateException
Optional operation

Throws:
HibernateException

getPropertyValue

public Object getPropertyValue(Object component,
                               int i,
                               SessionImplementor session)
                        throws HibernateException
Throws:
HibernateException

getCascadeStyle

public CascadeStyle getCascadeStyle(int i)

getFetchMode

public FetchMode getFetchMode(int i)

isMethodOf

public boolean isMethodOf(Method method)

isEmbedded

public boolean isEmbedded()