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, ProcessorSessionFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnSpan(Mapping mapping)How many columns are used to persist this type?StringgetName()Returns the abbreviated name of the type.intgetPropertyIndex(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.StringgetReturnedClassName()The qualified name of the class handled by this type.Type[]getSubtypes()Get the types of the component propertiesbooleanisComponentType()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, getOnDeleteAction, 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, getTypeForEqualsHashCode, 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, ProcessorSessionFactory factory)
-
-
Method Detail
-
getPropertyIndex
public int getPropertyIndex(String name)
Description copied from interface:CompositeTypeConvenience method for locating the property index for a given property name.- Specified by:
getPropertyIndexin 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:TypeReturns the abbreviated name of the type.
-
getReturnedClassName
public String getReturnedClassName()
Description copied from interface:TypeThe qualified name of the class handled by this type.- Specified by:
getReturnedClassNamein interfaceType- Returns:
- The qualified Java class name.
-
isComponentType
public boolean isComponentType()
Description copied from interface:TypeReturn 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:
isComponentTypein interfaceType- Returns:
- True if this type is also a
CompositeTypeimplementor; false otherwise.
-
getPropertyNames
public String[] getPropertyNames()
Description copied from interface:CompositeTypeGet the names of the component properties- Specified by:
getPropertyNamesin interfaceCompositeType- Returns:
- The component property names
-
getSubtypes
public Type[] getSubtypes()
Description copied from interface:CompositeTypeGet the types of the component properties- Specified by:
getSubtypesin interfaceCompositeType- Returns:
- The component property types.
-
getPropertyNullability
public boolean[] getPropertyNullability()
Description copied from interface:CompositeTypeRetrieve the indicators regarding which component properties are nullable.An optional operation
- Specified by:
getPropertyNullabilityin interfaceCompositeType- Returns:
- nullability of component properties
-
getColumnSpan
public int getColumnSpan(Mapping mapping)
Description copied from interface:TypeHow many columns are used to persist this type?Always the same as
getSqlTypCodes(mapping).length.- Specified by:
getColumnSpanin interfaceType- Parameters:
mapping- The mapping object :/- Returns:
- The number of columns
-
-