Interface Queryable
-
- All Superinterfaces:
AttributeSource
,Bindable
,Discriminable
,EntityMappingType
,EntityPersister
,EntityValuedModelPart
,FetchableContainer
,FilterRestrictable
,JdbcMappingContainer
,Joinable
,Loadable
,Loadable
,ManagedMappingType
,MappingModelExpressible
,MappingType
,ModelPart
,ModelPartContainer
,PropertyMapping
,Restrictable
,RootTableGroupProducer
,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.UseEntityMappingType
insteadExtends the genericEntityPersister
contract to add operations required by the Hibernate Query Language
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Queryable.Declarer
Deprecated.-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.EntityMappingType
EntityMappingType.ConstraintOrderedTableConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer
-
-
Field Summary
-
Fields inherited from interface org.hibernate.persister.entity.EntityPersister
ENTITY_ID
-
Fields inherited from interface org.hibernate.persister.entity.Loadable
ROWID_ALIAS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description String
generateFilterConditionAlias(String rootAlias)
Deprecated.The alias used for any filter conditions (mapped where-fragments or enabled-filters).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.String[][]
getContraintOrderedTableKeyColumnClosure()
Deprecated.For each table specified ingetConstraintOrderedTableNameClosure()
, get the columns that define the key between the various hierarchy classes.String
getDiscriminatorSQLValue()
Deprecated.Get the discriminator value for this particular concrete subclass, as a string that may be embedded in a select statementString[]
getIdentifierColumnNames()
Deprecated.Get the names of columns used to persist the identifierString
getMappedSuperclass()
Deprecated.Get the class that this class is mapped as a subclass of - not necessarily the direct superclassQueryable.Declarer
getSubclassPropertyDeclarer(String propertyPath)
Deprecated.Determine whether the given property is declared by our mapped class, our super class, or one of our subclasses...String[][]
getSubclassPropertyFormulaTemplateClosure()
Deprecated.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.String
getSubclassTableName(int number)
Deprecated.Get the name of the table with the given index from the internal array.DiscriminatorMetadata
getTypeDiscriminatorMetadata()
Deprecated.Retrieve the information needed to properly deal with this entity's discriminator in a query.boolean
isAbstract()
Deprecated.Is this an abstract class?boolean
isExplicitPolymorphism()
Deprecated.Is this class explicit polymorphism only?default boolean
isMultiTable()
Deprecated.boolean
isVersionPropertyInsertable()
Deprecated.Is the version property included in insert statements?-
Methods inherited from interface org.hibernate.persister.walking.spi.AttributeSource
getPropertyIndex
-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.metamodel.mapping.EntityMappingType
applyBaseRestrictions, applyDiscriminator, applyFilterRestrictions, applyWhereRestrictions, asEntityMappingType, createPrimaryTableReference, createRootTableGroup, createTableReferenceJoin, extractConcreteTypeStateValues, findContainingEntityMapping, findDeclaredAttributeMapping, findSubPart, findSubTypesSubPart, forEachAttributeMapping, getAttributeMappings, getContributor, getDeclaredAttributeMappings, getDiscriminatorMapping, getEntityPersister, getFetchable, getIdentifierMapping, getIdentifierTableDetails, getJavaType, getJdbcTypeCount, getMappedJavaType, getMappedTableDetails, getNaturalIdMapping, getNumberOfAttributeMappings, getNumberOfDeclaredAttributeMappings, getNumberOfFetchables, getPartMappingType, getPartName, getRootEntityDescriptor, getRootPathName, getRowIdMapping, getSubclassEntityNames, getSubclassId, getSubMappingTypes, getSuperMappingType, getVersionMapping, hasWhereRestrictions, isAffectedByEnabledFetchProfiles, isAffectedByEnabledFilters, isAffectedByEntityGraph, isTypeOrSuperType, isTypeOrSuperType, optimisticLockStyle, pruneForSubclasses, pruneForSubclasses, visitAttributeMappings, visitConstraintOrderedTables, visitDeclaredAttributeMappings, visitSubTypeAttributeMappings, visitSuperTypeAttributeMappings
-
Methods inherited from interface org.hibernate.persister.entity.EntityPersister
addToCacheKey, afterInitialize, afterReassociate, breakDownJdbcValues, buildCacheEntry, canExtractIdOutOfEntity, canReadFromCache, canUseReferenceCacheEntries, canWriteToCache, createProxy, delete, findDirty, findModified, forceVersionIncrement, forceVersionIncrement, getAttributeMapping, getBatchSize, getBytecodeEnhancementMetadata, getCacheAccessStrategy, getCacheEntryStructure, getClassMetadata, getConcreteProxyClass, getCurrentVersion, getDatabaseSnapshot, getEntityEntryFactory, getEntityMappingType, getEntityMetamodel, getEntityName, getFactory, getFilterAliasGenerator, getFilterAliasGenerator, getGenerator, getIdByUniqueKey, getIdentifier, getIdentifierGenerator, getIdentifierPropertyName, getIdentifierType, getInstrumentationMetadata, getMappedClass, getMultiNaturalIdLoader, getNaturalIdCacheAccessStrategy, getNaturalIdentifierProperties, getNaturalIdentifierSnapshot, getNaturalIdLoader, getPropertyCascadeStyles, getPropertyCheckability, getPropertyInsertability, getPropertyLaziness, getPropertyNames, getPropertyNullability, getPropertySpaces, getPropertyType, getPropertyTypes, getPropertyUpdateability, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getPropertyVersionability, getQuerySpaces, getRepresentationStrategy, getRootEntityName, getSqlAliasStem, getSqmMultiTableInsertStrategy, getSqmMultiTableMutationStrategy, getSubclassEntityPersister, getSynchronizationSpaces, getSynchronizedQuerySpaces, getValue, getValues, getVersion, getVersionGenerator, getVersionJavaType, getVersionProperty, getVersionType, hasCache, hasCascadeDelete, hasCascades, hasCollectionNotReferencingPK, hasCollections, hasIdentifierProperty, hasInsertGeneratedProperties, hasLazyProperties, hasMutableProperties, hasNaturalIdCache, hasNaturalIdentifier, hasOwnedCollections, hasProxy, hasSubselectLoadableCollections, hasUninitializedLazyProperties, hasUpdateGeneratedProperties, implementsLifecycle, initializeEnhancedEntityUsedAsProxy, insert, insert, instantiate, isBatchLoadable, isCacheInvalidationRequired, isIdentifierAssignedByInsert, isInherited, isInstance, isInstrumented, isLazyPropertiesCacheable, isMutable, isPropertySelectable, isSelectBeforeUpdateRequired, isSubclassEntityName, isTransient, isVersioned, isVersionPropertyGenerated, load, load, load, load, loadByUniqueKey, loadEntityIdByNaturalId, lock, lock, merge, multiLoad, postInstantiate, processInsertGeneratedProperties, processUpdateGeneratedProperties, resetIdentifier, resolveAttributeIndexes, resolveDirtyAttributeIndexes, setIdentifier, setPropertyValue, setPropertyValues, setValue, setValues, uniqueKeyEntries, update, visitQuerySpaces
-
Methods inherited from interface org.hibernate.metamodel.mapping.EntityValuedModelPart
applySqlSelections, applySqlSelections, createDomainResult, disassemble, findSubPart, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachSubPart, visitSubParts
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchableContainer
getKeyFetchable, getNumberOfFetchableKeys, getNumberOfKeyFetchables, getSelectableIndex, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchables
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
getJdbcMapping, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.persister.entity.Joinable
consumesCollectionAlias, consumesEntityAlias, getKeyColumnNames, getName, getTableName, isCollection
-
Methods inherited from interface org.hibernate.loader.ast.spi.Loadable
isAffectedByInfluencers, isNotAffectedByInfluencers
-
Methods inherited from interface org.hibernate.persister.entity.Loadable
getDiscriminatorAlias, getDiscriminatorColumnName, getDiscriminatorType, getDiscriminatorValue, getIdentifierAliases, getPropertyAliases, getPropertyColumnNames, getSubclassForDiscriminatorValue, getTableAliasForColumn, hasRowId, hasSubclasses, registerAffectingFetchProfile
-
Methods inherited from interface org.hibernate.metamodel.mapping.ManagedMappingType
anyRequiresAggregateColumnWriter, findAttributeMapping, forEachAttributeMapping, hasPartitionedSelectionMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
areEqual, asAttributeMapping, breakDownJdbcValues, decompose, decompose, forEachSelectable, forEachSelectable, getNavigableRole, isEntityIdentifierMapping, isVirtual
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, findByPath, forEachSubPart
-
Methods inherited from interface org.hibernate.persister.entity.PropertyMapping
toColumns, toType
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer
containsTableReference
-
-
-
-
Method Detail
-
isAbstract
boolean isAbstract()
Deprecated.Is this an abstract class?- Specified by:
isAbstract
in interfaceEntityMappingType
- Specified by:
isAbstract
in interfaceLoadable
- See Also:
EntityMappingType.isAbstract()
-
isExplicitPolymorphism
boolean isExplicitPolymorphism()
Deprecated.Is this class explicit polymorphism only?- Specified by:
isExplicitPolymorphism
in interfaceEntityMappingType
- See Also:
EntityMappingType.isExplicitPolymorphism()
-
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 interfaceEntityMappingType
- See Also:
EntityMappingType.getSuperMappingType()
-
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 interfaceEntityMappingType
- See Also:
EntityMappingType.getDiscriminatorSQLValue()
-
getIdentifierColumnNames
String[] getIdentifierColumnNames()
Deprecated.Get the names of columns used to persist the identifier- Specified by:
getIdentifierColumnNames
in interfaceLoadable
-
isMultiTable
@Deprecated(since="6.0") default boolean isMultiTable()
Deprecated.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 ingetConstraintOrderedTableNameClosure()
, 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 resolvegetSubclassTableName(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.
-
-