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
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 Summary
ConstructorsConstructorDescriptionValuesExpression
(com.querydsl.core.types.Path<T> entityPath, com.querydsl.core.types.Path<T> alias, Collection<T> elements, boolean identifiable) Construct a newValuesExpression
.ValuesExpression
(com.querydsl.core.types.Path<T> entityPath, Collection<T> elements, boolean identifiable) Construct a newValuesExpression
. -
Method Summary
Modifier and TypeMethodDescription<R,
C> R accept
(com.querydsl.core.types.Visitor<R, C> v, C context) com.querydsl.core.types.Path<T>
getAlias()
Retrieve the alias under which thisValuesExpression
is bound.Returns the elements in thisVALUES
clause.com.querydsl.core.types.PathMetadata
com.querydsl.core.types.Path<?>
getRoot()
getType()
boolean
Returns whether this represents an identifiableVALUES
clause.
-
Constructor Details
-
ValuesExpression
public ValuesExpression(com.querydsl.core.types.Path<T> entityPath, Collection<T> elements, boolean identifiable) Construct a newValuesExpression
.- Parameters:
entityPath
- Entity path or attribute path that determines the value typeelements
- The values usedidentifiable
- 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 newValuesExpression
.- Parameters:
entityPath
- Entity path or attribute path that determines the value typealias
- The alias for the sourceelements
- The values usedidentifiable
- 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 interfacecom.querydsl.core.types.Path<T>
-
getRoot
public com.querydsl.core.types.Path<?> getRoot()- Specified by:
getRoot
in interfacecom.querydsl.core.types.Path<T>
-
getAnnotatedElement
- Specified by:
getAnnotatedElement
in interfacecom.querydsl.core.types.Path<T>
-
accept
- Specified by:
accept
in interfacecom.querydsl.core.types.Expression<T>
-
getType
- Specified by:
getType
in interfacecom.querydsl.core.types.Expression<T>
-
getElements
Returns the elements in thisVALUES
clause.- Returns:
- the elements in this
VALUES
clause
-
isIdentifiable
public boolean isIdentifiable()Returns whether this represents an identifiableVALUES
clause.- Returns:
- true iff this
VALUES
clause should bind only the id attribute
-
getAlias
Retrieve the alias under which thisValuesExpression
is bound.- Returns:
- the alias
-