Package org.hibernate.query.derived
Class AnonymousTupleType<T>
- java.lang.Object
-
- org.hibernate.query.derived.AnonymousTupleType<T>
-
- All Implemented Interfaces:
jakarta.persistence.metamodel.Bindable<T>
,jakarta.persistence.metamodel.Type<T>
,DomainType<T>
,SimpleDomainType<T>
,TupleType<T>
,BindableType<T>
,ReturnableType<T>
,SqmExpressible<T>
,SqmPathSource<T>
,SqmExpressibleAccessor<T>
- Direct Known Subclasses:
SqmCteTable
public class AnonymousTupleType<T> extends Object implements TupleType<T>, DomainType<T>, ReturnableType<T>, SqmPathSource<T>
-
-
Constructor Summary
Constructors Constructor Description AnonymousTupleType(SqmSelectableNode<?>[] components)
AnonymousTupleType(SqmSubQuery<T> subQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
componentCount()
SqmPath<T>
createSqmPath(SqmPath<?> lhs, SqmPathSource<?> intermediatePathSource)
Create an SQM path for this source relative to the given left-hand sideList<String>
determineColumnNames()
SqmPathSource<?>
findSubPathSource(String name)
Find a SqmPathSource by name relative to this source.SqmExpressible<?>
get(int index)
SqmExpressible<?>
get(String componentName)
Class<T>
getBindableJavaType()
The expected Java typejakarta.persistence.metamodel.Bindable.BindableType
getBindableType()
String
getComponentName(int index)
List<String>
getComponentNames()
JavaType<T>
getExpressibleJavaType()
The Java type descriptor for this expressibleprotected Integer
getIndex(String componentName)
Class<T>
getJavaType()
String
getPathName()
The name of this thing.jakarta.persistence.metamodel.Type.PersistenceType
getPersistenceType()
SqmSelectableNode<?>
getSelectableNode(int index)
DomainType<?>
getSqmPathType()
The type of SqmPaths this source creates.AnonymousTupleTableGroupProducer
resolveTableGroupProducer(String aliasStem, List<SqlSelection> sqlSelections, FromClauseAccess fromClauseAccess)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.metamodel.model.domain.DomainType
getTypeName
-
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
isInstance, resolveExpressible
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmExpressibleAccessor
getNodeJavaType
-
Methods inherited from interface org.hibernate.query.sqm.SqmPathSource
getExpressible, getIntermediatePathSource, getSubPathSource
-
-
-
-
Constructor Detail
-
AnonymousTupleType
public AnonymousTupleType(SqmSubQuery<T> subQuery)
-
AnonymousTupleType
public AnonymousTupleType(SqmSelectableNode<?>[] components)
-
-
Method Detail
-
resolveTableGroupProducer
public AnonymousTupleTableGroupProducer resolveTableGroupProducer(String aliasStem, List<SqlSelection> sqlSelections, FromClauseAccess fromClauseAccess)
-
componentCount
public int componentCount()
- Specified by:
componentCount
in interfaceTupleType<T>
-
getComponentName
public String getComponentName(int index)
- Specified by:
getComponentName
in interfaceTupleType<T>
-
getComponentNames
public List<String> getComponentNames()
- Specified by:
getComponentNames
in interfaceTupleType<T>
-
get
public SqmExpressible<?> get(int index)
-
get
public SqmExpressible<?> get(String componentName)
-
getSelectableNode
public SqmSelectableNode<?> getSelectableNode(int index)
-
findSubPathSource
public SqmPathSource<?> findSubPathSource(String name)
Description copied from interface:SqmPathSource
Find a SqmPathSource by name relative to this source. returns null if the subPathSource is not found- Specified by:
findSubPathSource
in interfaceSqmPathSource<T>
-
getExpressibleJavaType
public JavaType<T> getExpressibleJavaType()
Description copied from interface:SqmExpressible
The Java type descriptor for this expressible- Specified by:
getExpressibleJavaType
in interfaceDomainType<T>
- Specified by:
getExpressibleJavaType
in interfaceSqmExpressible<T>
- See Also:
DomainType.getTypeName()
-
getBindableType
public jakarta.persistence.metamodel.Bindable.BindableType getBindableType()
- Specified by:
getBindableType
in interfacejakarta.persistence.metamodel.Bindable<T>
-
getPersistenceType
public jakarta.persistence.metamodel.Type.PersistenceType getPersistenceType()
- Specified by:
getPersistenceType
in interfacejakarta.persistence.metamodel.Type<T>
-
getPathName
public String getPathName()
Description copied from interface:SqmPathSource
The name of this thing. Mainly used in logging and when creating aNavigablePath
- Specified by:
getPathName
in interfaceSqmPathSource<T>
-
getSqmPathType
public DomainType<?> getSqmPathType()
Description copied from interface:SqmPathSource
The type of SqmPaths this source creates. Corollary to JPA'sBindable.getBindableJavaType()
- Specified by:
getSqmPathType
in interfaceSqmPathSource<T>
-
createSqmPath
public SqmPath<T> createSqmPath(SqmPath<?> lhs, SqmPathSource<?> intermediatePathSource)
Description copied from interface:SqmPathSource
Create an SQM path for this source relative to the given left-hand side- Specified by:
createSqmPath
in interfaceSqmPathSource<T>
-
getBindableJavaType
public Class<T> getBindableJavaType()
Description copied from interface:BindableType
The expected Java type- Specified by:
getBindableJavaType
in interfacejakarta.persistence.metamodel.Bindable<T>
- Specified by:
getBindableJavaType
in interfaceBindableType<T>
- Specified by:
getBindableJavaType
in interfaceSimpleDomainType<T>
-
getJavaType
public Class<T> getJavaType()
- Specified by:
getJavaType
in interfacejakarta.persistence.metamodel.Type<T>
-
-