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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Component(TypeElement type, String entityName, String path, AccessType defaultAccessType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnSpan(Mapping mapping)
How many columns are used to persist this type?String
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[]
getPropertyNames()
Get the names of the component propertiesboolean[]
getPropertyNullability()
Retrieve the indicators regarding which component properties are nullable.String
getReturnedClassName()
The qualified name of the class handled by this type.Type[]
getSubtypes()
Get the types of the component propertiesboolean
isComponentType()
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, getHashCode, getHashCode, getReturnedClass, getSqlTypeCodes, isAnyType, isAssociationType, isCollectionType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, nullSafeSet, replace, replace, toColumnNullness, toLoggableString
-
-
-
-
Constructor Detail
-
Component
public Component(TypeElement type, String entityName, String path, AccessType defaultAccessType)
-
-
Method Detail
-
getPropertyIndex
public int getPropertyIndex(String name)
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
public String getName()
Description copied from interface:Type
Returns the abbreviated name of the type.
-
getReturnedClassName
public String 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
public String[] getPropertyNames()
Description copied from interface:CompositeType
Get the names of the component properties- Specified by:
getPropertyNames
in interfaceCompositeType
- Returns:
- The component property names
-
getSubtypes
public Type[] 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
public int getColumnSpan(Mapping mapping)
Description copied from interface:Type
How many columns are used to persist this type?Always the same as
getSqlTypCodes(mapping).length
.- Specified by:
getColumnSpan
in interfaceType
- Parameters:
mapping
- The mapping object :/- Returns:
- The number of columns
-
-