Class ProcessorSessionFactory.Component

    • 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 interface CompositeType
        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.
        Specified by:
        getName in interface Type
        Returns:
        the Hibernate type name
      • getReturnedClassName

        public String getReturnedClassName()
        Description copied from interface: Type
        The qualified name of the class handled by this type.
        Specified by:
        getReturnedClassName in interface Type
        Returns:
        The qualified Java class name.
      • isComponentType

        public boolean isComponentType()
        Description copied from interface: Type
        Return true if the implementation is castable to CompositeType. Shortcut for type instanceof CompositeType.

        A component type may own collections or associations and hence must provide certain extra functionality.

        Specified by:
        isComponentType in interface Type
        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 interface CompositeType
        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 interface CompositeType
        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 interface CompositeType
        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 interface Type
        Parameters:
        mapping - The mapping object :/
        Returns:
        The number of columns