Class ProcessorSessionFactory.Component
java.lang.Object
org.hibernate.processor.validation.ProcessorSessionFactory.Component
- All Implemented Interfaces:
Serializable
,CompositeType
,Type
- Enclosing class:
- ProcessorSessionFactory
public abstract static class ProcessorSessionFactory.Component
extends Object
implements CompositeType
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionComponent
(TypeElement type, String entityName, String path, AccessType defaultAccessType, ProcessorSessionFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionint
getColumnSpan
(MappingContext mapping) How many columns are used to persist this type?getName()
Returns the abbreviated name of the type.int
getPropertyIndex
(String name) Convenience method for locating the property index for a given property name.String[]
Get the names of the component propertiesboolean[]
Retrieve the indicators regarding which component properties are nullable.The qualified name of the class handled by this type.Type[]
Get the types of the component propertiesboolean
Return true if the implementation is castable toCompositeType
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.type.CompositeType
getCascadeStyle, getFetchMode, getPropertyValue, getPropertyValues, getPropertyValues, hasNotNullProperty, hasNullProperty, isEmbedded, isMethodOf, replacePropertyValues, setPropertyValues
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, compare, deepCopy, disassemble, disassemble, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSqlTypeCodes, getSqlTypeCodes, getTypeForEqualsHashCode, isAnyType, isAssociationType, isCollectionType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, nullSafeSet, replace, replace, toColumnNullness, toColumnNullness, toLoggableString
-
Constructor Details
-
Component
public Component(TypeElement type, String entityName, String path, AccessType defaultAccessType, ProcessorSessionFactory factory)
-
-
Method Details
-
getPropertyIndex
Description copied from interface:CompositeType
Convenience method for locating the property index for a given property name.- Specified by:
getPropertyIndex
in interfaceCompositeType
- Parameters:
name
- The (sub-)property name to find.- Returns:
- The (sub-)property index, relative to all the array-valued method returns defined on this contract.
-
getName
Description copied from interface:Type
Returns the abbreviated name of the type. -
getReturnedClassName
Description copied from interface:Type
The qualified name of the class handled by this type.- Specified by:
getReturnedClassName
in interfaceType
- Returns:
- The qualified Java class name.
-
isComponentType
public boolean isComponentType()Description copied from interface:Type
Return true if the implementation is castable toCompositeType
. Shortcut fortype instanceof CompositeType
.A component type may own collections or associations and hence must provide certain extra functionality.
- Specified by:
isComponentType
in interfaceType
- Returns:
- True if this type is also a
CompositeType
implementor; false otherwise.
-
getPropertyNames
Description copied from interface:CompositeType
Get the names of the component properties- Specified by:
getPropertyNames
in interfaceCompositeType
- Returns:
- The component property names
-
getSubtypes
Description copied from interface:CompositeType
Get the types of the component properties- Specified by:
getSubtypes
in interfaceCompositeType
- Returns:
- The component property types.
-
getPropertyNullability
public boolean[] getPropertyNullability()Description copied from interface:CompositeType
Retrieve the indicators regarding which component properties are nullable.An optional operation
- Specified by:
getPropertyNullability
in interfaceCompositeType
- Returns:
- nullability of component properties
-
getColumnSpan
Description copied from interface:Type
How many columns are used to persist this type?Always the same as
getSqlTypCodes(mappingContext).length
.- Specified by:
getColumnSpan
in interfaceType
- Parameters:
mapping
- The mapping Context objectMappingContext
- Returns:
- The number of columns
-