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
 Cascades.CascadeStyle getCascadeStyle(int i)
           
 FetchMode getFetchMode(int i)
           
 String[] getPropertyNames()
           
 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)
           
 Type[] getSubtypes()
           
 boolean isMethodOf(Method method)
           
 void setPropertyValues(Object component, Object[] values, EntityMode entityMode)
          Optional operation
 
Methods inherited from interface org.hibernate.type.Type
assemble, compare, deepCopy, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toLoggableString
 

Method Detail

getSubtypes

public Type[] getSubtypes()

getPropertyNames

public String[] getPropertyNames()

getPropertyNullability

public boolean[] getPropertyNullability()
Optional operation

Returns:
nullability of component properties

getPropertyValues

public Object[] getPropertyValues(Object component,
                                  SessionImplementor session)
                           throws HibernateException
Throws:
HibernateException

getPropertyValues

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

Parameters:
entityMode -
Throws:
HibernateException

setPropertyValues

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

Parameters:
entityMode - TODO
Throws:
HibernateException

getPropertyValue

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

getCascadeStyle

public Cascades.CascadeStyle getCascadeStyle(int i)

getFetchMode

public FetchMode getFetchMode(int i)

isMethodOf

public boolean isMethodOf(Method method)