Interface Queryable

    • Method Detail

      • isAbstract

        boolean isAbstract()
        Is this an abstract class?
        Specified by:
        isAbstract in interface Loadable
      • isExplicitPolymorphism

        boolean isExplicitPolymorphism()
        Is this class explicit polymorphism only?
      • getMappedSuperclass

        String getMappedSuperclass()
        Get the class that this class is mapped as a subclass of - not necessarily the direct superclass
      • getDiscriminatorSQLValue

        String getDiscriminatorSQLValue()
        Get the discriminator value for this particular concrete subclass, as a string that may be embedded in a select statement
      • identifierSelectFragment

        String identifierSelectFragment​(String name,
                                        String suffix)
        Given a query alias and an identifying suffix, render the identifier select fragment.
      • propertySelectFragment

        String propertySelectFragment​(String alias,
                                      String suffix,
                                      boolean allProperties)
        Given a query alias and an identifying suffix, render the property select fragment.
      • propertySelectFragmentFragment

        SelectFragment propertySelectFragmentFragment​(String alias,
                                                      String suffix,
                                                      boolean allProperties)
      • isMultiTable

        boolean isMultiTable()
        Is the inheritance hierarchy described by this persister contained across multiple tables?
        True if the inheritance hierarchy is spread across multiple tables; false otherwise.
      • getConstraintOrderedTableNameClosure

        String[] getConstraintOrderedTableNameClosure()
        Get the names of all tables used in the hierarchy (up and down) ordered such that deletes in the given order would not cause constraint violations.
        The ordered array of table names.
      • getContraintOrderedTableKeyColumnClosure

        String[][] getContraintOrderedTableKeyColumnClosure()
        For each table specified in getConstraintOrderedTableNameClosure(), get the columns that define the key between the various hierarchy classes.

        The first dimension here corresponds to the table indexes returned in getConstraintOrderedTableNameClosure().

        The second dimension should have the same length across all the elements in the first dimension. If not, that would be a problem ;)

      • getSubclassPropertyTableNumber

        int getSubclassPropertyTableNumber​(String propertyPath)
        Given a property name, determine the number of the table which contains the column to which this property is mapped.

        Note that this is not relative to the results from getConstraintOrderedTableNameClosure(). It is relative to the subclass table name closure maintained internal to the persister (yick!). It is also relative to the indexing used to resolve getSubclassTableName(int)...

        propertyPath - The name of the property.
        The number of the table to which the property is mapped.
      • getSubclassPropertyDeclarer

        Queryable.Declarer getSubclassPropertyDeclarer​(String propertyPath)
        Determine whether the given property is declared by our mapped class, our super class, or one of our subclasses...

        Note: the method is called 'subclass property...' simply for consistency sake (e.g. getSubclassPropertyTableNumber(java.lang.String)

        propertyPath - The property name.
        The property declarer
      • getSubclassTableName

        String getSubclassTableName​(int number)
        Get the name of the table with the given index from the internal array.
        number - The index into the internal array.
      • isVersionPropertyInsertable

        boolean isVersionPropertyInsertable()
        Is the version property included in insert statements?
      • generateFilterConditionAlias

        String generateFilterConditionAlias​(String rootAlias)
        The alias used for any filter conditions (mapped where-fragments or enabled-filters).

        This may or may not be different from the root alias depending upon the inheritance mapping strategy.
        rootAlias - The root alias
        The alias used for "filter conditions" within the where clause.
      • getTypeDiscriminatorMetadata

        DiscriminatorMetadata getTypeDiscriminatorMetadata()
        Retrieve the information needed to properly deal with this entity's discriminator in a query.
        The entity discriminator metadata
      • getSubclassPropertyFormulaTemplateClosure

        String[][] getSubclassPropertyFormulaTemplateClosure()