public interface CompositeType extends Type
Type | Property and Description |
---|---|
boolean |
hasNotNull
Convenience method to quickly check
getPropertyNullability() for any non-nullable sub-properties. |
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getPropertyIndex(java.lang.String propertyName)
Convenience method for locating the property index for a given property name.
|
java.lang.String[] |
getPropertyNames()
Get the names of the component properties
|
boolean[] |
getPropertyNullability()
Retrieve the indicators regarding which component properties are nullable.
|
java.lang.Object |
getPropertyValue(java.lang.Object component,
int index,
SessionImplementor session)
Extract a particular component property value indicated by index.
|
java.lang.Object[] |
getPropertyValues(java.lang.Object component,
EntityMode entityMode)
Extract the values of the component properties from the given component instance without access to the
session.
|
java.lang.Object[] |
getPropertyValues(java.lang.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 |
hasNotNullProperty()
Convenience method to quickly check
getPropertyNullability() for any non-nullable sub-properties. |
boolean |
isEmbedded()
Is this component embedded? "embedded" indicates that the component is "virtual", that its properties are
"flattened" onto its owner
|
boolean |
isMethodOf(java.lang.reflect.Method method)
Is the given method a member of this component's class?
|
void |
setPropertyValues(java.lang.Object component,
java.lang.Object[] values,
EntityMode entityMode)
Inject property values onto the given component instance
An optional operation
|
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
boolean hasNotNullProperty
getPropertyNullability()
for any non-nullable sub-properties.Type[] getSubtypes()
java.lang.String[] getPropertyNames()
boolean[] getPropertyNullability()
java.lang.Object[] getPropertyValues(java.lang.Object component, SessionImplementor session) throws HibernateException
component
- The component instancesession
- The session from which the request originatesHibernateException
- Indicates a problem access the property values.java.lang.Object[] getPropertyValues(java.lang.Object component, EntityMode entityMode) throws HibernateException
component
- The component instanceentityMode
- The entity modeHibernateException
- Indicates a problem access the property values.java.lang.Object getPropertyValue(java.lang.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(java.lang.Object component, java.lang.Object[] values, EntityMode entityMode) throws HibernateException
component
- The component instancevalues
- The values to injectentityMode
- The entity modeHibernateException
- Indicates an issue performing the injectionCascadeStyle getCascadeStyle(int index)
index
- The property index,FetchMode getFetchMode(int index)
index
- The property index,boolean isMethodOf(java.lang.reflect.Method method)
method
- The method to checkboolean isEmbedded()
boolean hasNotNullProperty()
getPropertyNullability()
for any non-nullable sub-properties.int getPropertyIndex(java.lang.String propertyName)
propertyName
- The (sub-)property name to find.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.