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.UseEntityMappingTypeinsteadExtends the genericEntityPersistercontract to add operations required by the Hibernate Query Language
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classQueryable.DeclarerDeprecated.-
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 StringgenerateFilterConditionAlias(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.StringgetDiscriminatorSQLValue()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 identifierStringgetMappedSuperclass()Deprecated.Get the class that this class is mapped as a subclass of - not necessarily the direct superclassQueryable.DeclarergetSubclassPropertyDeclarer(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.intgetSubclassPropertyTableNumber(String propertyPath)Deprecated.Given a property name, determine the number of the table which contains the column to which this property is mapped.StringgetSubclassTableName(int number)Deprecated.Get the name of the table with the given index from the internal array.DiscriminatorMetadatagetTypeDiscriminatorMetadata()Deprecated.Retrieve the information needed to properly deal with this entity's discriminator in a query.booleanisAbstract()Deprecated.Is this an abstract class?booleanisExplicitPolymorphism()Deprecated.Is this class explicit polymorphism only?default booleanisMultiTable()Deprecated.booleanisVersionPropertyInsertable()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, getIdentifierMappingForJoin, getIdentifierTableDetails, getJavaType, getJdbcTypeCount, getMappedJavaType, getMappedTableDetails, getNaturalIdMapping, getNumberOfAttributeMappings, getNumberOfDeclaredAttributeMappings, getNumberOfFetchables, getPartMappingType, getPartName, getRootEntityDescriptor, getRootPathName, getRowIdMapping, getSoftDeleteMapping, getSoftDeleteTableDetails, getSubclassEntityNames, getSubclassId, getSubMappingTypes, getSuperMappingType, getVersionMapping, hasWhereRestrictions, isAffectedByEnabledFetchProfiles, isAffectedByEnabledFilters, isAffectedByEntityGraph, isConcreteProxy, isTypeOrSuperType, isTypeOrSuperType, optimisticLockStyle, pruneForSubclasses, pruneForSubclasses, resolveConcreteProxyTypeForId, visitAttributeMappings, visitConstraintOrderedTables, visitDeclaredAttributeMappings, visitSubTypeAttributeMappings, visitSuperTypeAttributeMappings
-
Methods inherited from interface org.hibernate.persister.entity.mutation.EntityMutationTarget
getIdentifierDescriptor, getIdentifierTableMapping, getIdentityInsertDelegate, getInsertDelegate, getMutationDelegate, getTargetPart, getUpdateDelegate, hasSkippableTables
-
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, getDeleteCoordinator, getEntityEntryFactory, getEntityMappingType, getEntityMetamodel, getEntityName, getFactory, getFilterAliasGenerator, getFilterAliasGenerator, getGeneratedProperties, getGenerator, getIdByUniqueKey, getIdentifier, getIdentifier, getIdentifierGenerator, getIdentifierPropertyName, getIdentifierType, getIdentitySelectString, getInsertCoordinator, getInsertGeneratedProperties, getInstrumentationMetadata, getMappedClass, getMergeCoordinator, getMultiNaturalIdLoader, getNaturalIdCacheAccessStrategy, getNaturalIdentifierProperties, getNaturalIdentifierSnapshot, getNaturalIdLoader, getPropertyCascadeStyles, getPropertyCheckability, getPropertyInsertability, getPropertyLaziness, getPropertyNames, getPropertyNullability, getPropertySpaces, getPropertyType, getPropertyTypes, getPropertyUpdateability, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getPropertyVersionability, getQuerySpaces, getRepresentationStrategy, getRootEntityName, getRootTableKeyColumnNames, getSelectByUniqueKeyString, getSelectByUniqueKeyString, getSelectByUniqueKeyString, getSqlAliasStem, getSqmMultiTableInsertStrategy, getSqmMultiTableMutationStrategy, getSubclassEntityPersister, getSynchronizationSpaces, getSynchronizedQuerySpaces, getUpdateCoordinator, getUpdateGeneratedProperties, getValue, getValues, getVersion, getVersionGenerator, getVersionJavaType, getVersionProperty, getVersionType, hasCache, hasCascadeDelete, hasCascades, hasCollectionNotReferencingPK, hasCollections, hasFilterForLoadByKey, 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, prepareLoaders, processInsertGeneratedProperties, processInsertGeneratedProperties, processUpdateGeneratedProperties, processUpdateGeneratedProperties, resetIdentifier, resolveAttributeIndexes, resolveDirtyAttributeIndexes, setIdentifier, setPropertyValue, setPropertyValues, setValue, setValues, storeDiscriminatorInShallowQueryCacheLayout, uniqueKeyEntries, update, useShallowQueryCacheLayout, 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.FilterRestrictable
applyFilterRestrictions
-
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
isAffectedByEnabledFilters, isAffectedByInfluencers, 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, isAffectedByEnabledFilters
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
areEqual, asAttributeMapping, asBasicValuedModelPart, 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.sql.model.MutationTarget
forEachMutableTable, forEachMutableTableReverse, getIdentifierTableName, getNavigableRole, getRolePath
-
Methods inherited from interface org.hibernate.persister.entity.PropertyMapping
toColumns, toType
-
Methods inherited from interface org.hibernate.metamodel.mapping.Restrictable
applyBaseRestrictions
-
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:
isAbstractin interfaceEntityMappingType- Specified by:
isAbstractin interfaceLoadable- See Also:
EntityMappingType.isAbstract()
-
isExplicitPolymorphism
boolean isExplicitPolymorphism()
Deprecated.Is this class explicit polymorphism only?- Specified by:
isExplicitPolymorphismin 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:
getMappedSuperclassin 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:
getDiscriminatorSQLValuein interfaceEntityMappingType- See Also:
EntityMappingType.getDiscriminatorSQLValue()
-
getIdentifierColumnNames
String[] getIdentifierColumnNames()
Deprecated.Get the names of columns used to persist the identifier- Specified by:
getIdentifierColumnNamesin interfaceEntityPersister- Specified by:
getIdentifierColumnNamesin 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.
-
-