|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompositeType
Contract for value types to hold collections and have cascades, etc. The notion is that of composition. JPA terms this an embeddable.
Method Summary | |
---|---|
CascadeStyle |
getCascadeStyle(int index)
Retrieve the cascade style of the indicated component property. |
FetchMode |
getFetchMode(int index)
Retrieve the fetch mode of the indicated component property. |
String[] |
getPropertyNames()
Get the names of the component properties |
boolean[] |
getPropertyNullability()
Retrieve the indicators regarding which component properties are nullable. |
Object |
getPropertyValue(Object component,
int index,
SessionImplementor session)
Extract a particular component property value indicated by index. |
Object[] |
getPropertyValues(Object component,
EntityMode entityMode)
Extract the values of the component properties from the given component instance without access to the session. |
Object[] |
getPropertyValues(Object component,
SessionImplementor session)
Extract the values of the component properties from the given component instance |
Type[] |
getSubtypes()
Get the types of the component properties |
boolean |
isEmbedded()
Is this component embedded? "embedded" indicates that the component is "virtual", that its properties are "flattened" onto its owner |
boolean |
isMethodOf(Method method)
Is the given method a member of this component's class? |
void |
setPropertyValues(Object component,
Object[] values,
EntityMode entityMode)
Inject property values onto the given component instance An optional operation |
Methods inherited from interface org.hibernate.type.Type |
---|
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, 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 |
---|
Type[] getSubtypes()
String[] getPropertyNames()
boolean[] getPropertyNullability()
Object[] getPropertyValues(Object component, SessionImplementor session) throws HibernateException
component
- The component instancesession
- The session from which the request originates
HibernateException
- Indicates a problem access the property values.Object[] getPropertyValues(Object component, EntityMode entityMode) throws HibernateException
component
- The component instanceentityMode
- The entity mode
HibernateException
- Indicates a problem access the property values.Object getPropertyValue(Object component, int index, SessionImplementor session) throws HibernateException
component
- The component instanceindex
- The index of the property whose value is to be extractedsession
- The session from which the request originates.
HibernateException
- Indicates a problem access the property value.void setPropertyValues(Object component, Object[] values, EntityMode entityMode) throws HibernateException
component
- The component instancevalues
- The values to injectentityMode
- The entity mode
HibernateException
- Indicates an issue performing the injectionCascadeStyle getCascadeStyle(int index)
index
- The property index,
FetchMode getFetchMode(int index)
index
- The property index,
boolean isMethodOf(Method method)
method
- The method to check
boolean isEmbedded()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |