Interface Loadable

    • Method Detail

      • getDiscriminatorType

        Type getDiscriminatorType()
        Get the discriminator type
      • getIdentifierColumnNames

        String[] getIdentifierColumnNames()
        Get the names of columns used to persist the identifier
      • getIdentifierAliases

        String[] getIdentifierAliases​(String suffix)
        Get the result set aliases used for the identifier columns, given a suffix
      • getPropertyAliases

        String[] getPropertyAliases​(String suffix,
                                    int i)
        Get the result set aliases used for the property columns, given a suffix (properties of this class, only).
      • getPropertyColumnNames

        String[] getPropertyColumnNames​(int i)
        Get the result set column names mapped for this property (properties of this class, only).
      • getDiscriminatorAlias

        String getDiscriminatorAlias​(String suffix)
        Get the result set aliases used for the identifier columns, given a suffix
      • getDiscriminatorColumnName

        String getDiscriminatorColumnName()
        the column name for the discriminator as specified in the mapping.
      • hasRowId

        boolean hasRowId()
        Does the result set contain rowids?
      • registerAffectingFetchProfile

        void registerAffectingFetchProfile​(String fetchProfileName)
        Register the name of a fetch profile determined to have an affect on the underlying loadable in regards to the fact that the underlying load SQL needs to be adjust when the given fetch profile is enabled.
        fetchProfileName - The name of the profile affecting this.
      • getTableAliasForColumn

        String getTableAliasForColumn​(String columnName,
                                      String rootAlias)
        Given a column name and the root table alias in use for the entity hierarchy, determine the proper table alias for the table in that hierarchy that contains said column.

        NOTE : Generally speaking the column is not validated to exist. Most implementations simply return the root alias; the exception is JoinedSubclassEntityPersister

        columnName - The column name
        rootAlias - The hierarchy root alias
        The proper table alias for qualifying the given column.