Package org.hibernate.query.derived
Class AnonymousTupleSqmAssociationPathSource<O,J>
java.lang.Object
org.hibernate.query.derived.AnonymousTupleSqmPathSource<J>
org.hibernate.query.derived.AnonymousTupleSqmAssociationPathSource<O,J>
- All Implemented Interfaces:
Attribute<O,,J> Bindable<J>,SingularAttribute<O,,J> PersistentAttribute<O,,J> SingularPersistentAttribute<O,,J> BindableType<J>,SqmExpressible<J>,SqmJoinable<O,,J> SqmPathSource<J>,SqmExpressibleAccessor<J>
@Incubating
public class AnonymousTupleSqmAssociationPathSource<O,J>
extends AnonymousTupleSqmPathSource<J>
implements SingularPersistentAttribute<O,J>
- Author:
- Christian Beikov
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Attribute
Attribute.PersistentAttributeTypeNested classes/interfaces inherited from interface jakarta.persistence.metamodel.Bindable
Bindable.BindableType -
Constructor Summary
ConstructorsConstructorDescriptionAnonymousTupleSqmAssociationPathSource(String localPathName, SqmPath<J> path, SimpleDomainType<J> domainType) -
Method Summary
Modifier and TypeMethodDescriptioncreateSqmJoin(SqmFrom<?, O> lhs, SqmJoinType joinType, String alias, boolean fetched, SqmCreationState creationState) The classification of the attribute (is it a basic type, entity, etc)Return the managed type representing the type in which the attribute was declared.Return thejava.lang.reflect.Memberfor the represented attribute.getName()Return the name of the attribute.Return the persistent attribute type for the attribute.getType()Return the type that represents the type of the attribute.booleanIs the attribute an association.booleanIs the attribute collection-valued (represents a Collection, Set, List, or Map).booleanisId()Is the attribute an id attribute.booleanCan the attribute be null.booleanIs the attribute a version attribute.Methods inherited from class org.hibernate.query.derived.AnonymousTupleSqmPathSource
createSqmPath, findSubPathSource, getBindableJavaType, getBindableType, getExpressibleJavaType, getPathName, getSqmPathTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.persistence.metamodel.Bindable
getBindableJavaType, getBindableTypeMethods inherited from interface org.hibernate.query.BindableType
getBindableJavaTypeMethods inherited from interface org.hibernate.metamodel.model.domain.SingularPersistentAttribute
getJavaType, getSqmPathType, getValueGraphTypeMethods inherited from interface org.hibernate.query.sqm.SqmExpressible
getExpressibleJavaType, getRelationalJavaType, getTypeName, isInstance, resolveExpressibleMethods inherited from interface org.hibernate.query.sqm.tree.SqmExpressibleAccessor
getNodeJavaTypeMethods inherited from interface org.hibernate.query.sqm.SqmJoinable
createNavigablePathMethods inherited from interface org.hibernate.query.sqm.SqmPathSource
createSqmPath, findSubPathSource, findSubPathSource, getExpressible, getIntermediatePathSource, getPathName, getSqmType, getSubPathSource, getSubPathSource, isGeneric
-
Constructor Details
-
AnonymousTupleSqmAssociationPathSource
public AnonymousTupleSqmAssociationPathSource(String localPathName, SqmPath<J> path, SimpleDomainType<J> domainType)
-
-
Method Details
-
createSqmJoin
public SqmJoin<O,J> createSqmJoin(SqmFrom<?, O> lhs, SqmJoinType joinType, String alias, boolean fetched, SqmCreationState creationState) - Specified by:
createSqmJoinin interfaceSqmJoinable<O,J>
-
getType
Description copied from interface:SingularAttributeReturn the type that represents the type of the attribute.- Specified by:
getTypein interfaceSingularAttribute<O,J> - Specified by:
getTypein interfaceSingularPersistentAttribute<O,J> - Returns:
- type of attribute
-
getDeclaringType
Description copied from interface:AttributeReturn the managed type representing the type in which the attribute was declared.- Specified by:
getDeclaringTypein interfaceAttribute<O,J> - Specified by:
getDeclaringTypein interfacePersistentAttribute<O,J> - Specified by:
getDeclaringTypein interfaceSingularPersistentAttribute<O,J> - Returns:
- declaring type
-
getPathSource
- Specified by:
getPathSourcein interfaceSingularPersistentAttribute<O,J>
-
isId
public boolean isId()Description copied from interface:SingularAttributeIs the attribute an id attribute. This method will return true if the attribute is an attribute that corresponds to a simple id, an embedded id, or an attribute of an id class.- Specified by:
isIdin interfaceSingularAttribute<O,J> - Returns:
- boolean indicating whether the attribute is an id
-
isVersion
public boolean isVersion()Description copied from interface:SingularAttributeIs the attribute a version attribute.- Specified by:
isVersionin interfaceSingularAttribute<O,J> - Returns:
- boolean indicating whether the attribute is a version attribute
-
isOptional
public boolean isOptional()Description copied from interface:SingularAttributeCan the attribute be null.- Specified by:
isOptionalin interfaceSingularAttribute<O,J> - Returns:
- boolean indicating whether the attribute can be null
-
getAttributeJavaType
- Specified by:
getAttributeJavaTypein interfacePersistentAttribute<O,J>
-
getAttributeClassification
Description copied from interface:PersistentAttributeThe classification of the attribute (is it a basic type, entity, etc)- Specified by:
getAttributeClassificationin interfacePersistentAttribute<O,J>
-
getKeyGraphType
- Specified by:
getKeyGraphTypein interfacePersistentAttribute<O,J>
-
getName
Description copied from interface:AttributeReturn the name of the attribute. -
getPersistentAttributeType
Description copied from interface:AttributeReturn the persistent attribute type for the attribute.- Specified by:
getPersistentAttributeTypein interfaceAttribute<O,J> - Returns:
- persistent attribute type
-
getJavaMember
Description copied from interface:AttributeReturn thejava.lang.reflect.Memberfor the represented attribute.- Specified by:
getJavaMemberin interfaceAttribute<O,J> - Returns:
- corresponding
java.lang.reflect.Member
-
isAssociation
public boolean isAssociation()Description copied from interface:AttributeIs the attribute an association.- Specified by:
isAssociationin interfaceAttribute<O,J> - Returns:
- boolean indicating whether the attribute corresponds to an association
-
isCollection
public boolean isCollection()Description copied from interface:AttributeIs the attribute collection-valued (represents a Collection, Set, List, or Map).- Specified by:
isCollectionin interfaceAttribute<O,J> - Returns:
- boolean indicating whether the attribute is collection-valued
-