Class ValuesExpression<T>

java.lang.Object
com.blazebit.persistence.querydsl.ValuesExpression<T>
Type Parameters:
T - Value type
All Implemented Interfaces:
com.querydsl.core.types.Expression<T>, com.querydsl.core.types.Path<T>, Serializable

public class ValuesExpression<T> extends Object implements com.querydsl.core.types.Path<T>
An expression type that represents a VALUES clause that can be used as FROM expression.
Since:
1.5.0
Author:
Jan-Willem Gmelig Meyling
See Also:
  • Constructor Details

    • ValuesExpression

      public ValuesExpression(com.querydsl.core.types.Path<T> entityPath, Collection<T> elements, boolean identifiable)
      Construct a new ValuesExpression.
      Parameters:
      entityPath - Entity path or attribute path that determines the value type
      elements - The values used
      identifiable - Whether to only bind the id attribute for entity types, or all managed attributes
    • ValuesExpression

      public ValuesExpression(com.querydsl.core.types.Path<T> entityPath, com.querydsl.core.types.Path<T> alias, Collection<T> elements, boolean identifiable)
      Construct a new ValuesExpression.
      Parameters:
      entityPath - Entity path or attribute path that determines the value type
      alias - The alias for the source
      elements - The values used
      identifiable - Whether to only bind the id attribute for entity types, or all managed attributes
  • Method Details

    • getMetadata

      public com.querydsl.core.types.PathMetadata getMetadata()
      Specified by:
      getMetadata in interface com.querydsl.core.types.Path<T>
    • getRoot

      public com.querydsl.core.types.Path<?> getRoot()
      Specified by:
      getRoot in interface com.querydsl.core.types.Path<T>
    • getAnnotatedElement

      public AnnotatedElement getAnnotatedElement()
      Specified by:
      getAnnotatedElement in interface com.querydsl.core.types.Path<T>
    • accept

      @Nullable public <R, C> R accept(com.querydsl.core.types.Visitor<R,C> v, @Nullable C context)
      Specified by:
      accept in interface com.querydsl.core.types.Expression<T>
    • getType

      public Class<? extends T> getType()
      Specified by:
      getType in interface com.querydsl.core.types.Expression<T>
    • getElements

      public Collection<T> getElements()
      Returns the elements in this VALUES clause.
      Returns:
      the elements in this VALUES clause
    • isIdentifiable

      public boolean isIdentifiable()
      Returns whether this represents an identifiable VALUES clause.
      Returns:
      true iff this VALUES clause should bind only the id attribute
    • getAlias

      public com.querydsl.core.types.Path<T> getAlias()
      Retrieve the alias under which this ValuesExpression is bound.
      Returns:
      the alias