Interface Queryable

All Superinterfaces:
AttributeSource, Bindable, Discriminable, EntityMappingType, EntityMutationTarget, EntityPersister, EntityValuedModelPart, FetchableContainer, FilterRestrictable, JdbcMappingContainer, Joinable, Loadable, Loadable, ManagedMappingType, MappingModelExpressible, MappingType, ModelPart, ModelPartContainer, MutationTarget<EntityTableMapping>, PropertyMapping, Restrictable, RootTableGroupProducer, SoftDeletableModelPart, TableGroupProducer, WhereRestrictable
All Known Subinterfaces:
DeprecatedEntityStuff
All Known Implementing Classes:
AbstractEntityPersister, JoinedSubclassEntityPersister, MockEntityPersister, ProcessorSessionFactory.EntityPersister, SingleTableEntityPersister, UnionSubclassEntityPersister

@Deprecated(since="6.0") public interface Queryable extends Loadable, PropertyMapping, Joinable
Deprecated.
Use EntityMappingType instead
Extends the generic EntityPersister contract to add operations required by the Hibernate Query Language
  • Method Details

    • isAbstract

      boolean isAbstract()
      Deprecated.
      Is this an abstract class?
      Specified by:
      isAbstract in interface EntityMappingType
      Specified by:
      isAbstract in interface Loadable
      See Also:
    • isExplicitPolymorphism

      boolean isExplicitPolymorphism()
      Deprecated.
      Is this class explicit polymorphism only?
      Specified by:
      isExplicitPolymorphism in interface EntityMappingType
      See Also:
    • getMappedSuperclass

      String getMappedSuperclass()
      Deprecated.
      Get the class that this class is mapped as a subclass of - not necessarily the direct superclass
      Specified by:
      getMappedSuperclass in interface EntityMappingType
      See Also:
    • getDiscriminatorSQLValue

      String getDiscriminatorSQLValue()
      Deprecated.
      Get the discriminator value for this particular concrete subclass, as a string that may be embedded in a select statement
      Specified by:
      getDiscriminatorSQLValue in interface EntityMappingType
      See Also:
    • getIdentifierColumnNames

      String[] getIdentifierColumnNames()
      Deprecated.
      Get the names of columns used to persist the identifier
      Specified by:
      getIdentifierColumnNames in interface EntityPersister
      Specified by:
      getIdentifierColumnNames in interface Loadable
    • isMultiTable

      @Deprecated(since="6.0") default boolean isMultiTable()
      Is the inheritance hierarchy described by this persister contained across multiple tables?
      Returns:
      True if the inheritance hierarchy is spread across multiple tables; false otherwise.
    • getConstraintOrderedTableNameClosure

      String[] getConstraintOrderedTableNameClosure()
      Deprecated.
      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.
      Returns:
      The ordered array of table names.
    • getContraintOrderedTableKeyColumnClosure

      String[][] getContraintOrderedTableKeyColumnClosure()
      Deprecated.
      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)
      Deprecated.
      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)...

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

      Queryable.Declarer getSubclassPropertyDeclarer(String propertyPath)
      Deprecated.
      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)

      Parameters:
      propertyPath - The property name.
      Returns:
      The property declarer
    • getSubclassTableName

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

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

      String generateFilterConditionAlias(String rootAlias)
      Deprecated.
      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.

      Parameters:
      rootAlias - The root alias
      Returns:
      The alias used for "filter conditions" within the where clause.
    • getTypeDiscriminatorMetadata

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

      String[][] getSubclassPropertyFormulaTemplateClosure()
      Deprecated.