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 thisValuesExpressionis bound.Returns the elements in thisVALUESclause.com.querydsl.core.types.PathMetadatacom.querydsl.core.types.Path<?>getRoot()getType()booleanReturns whether this represents an identifiableVALUESclause.
-
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:
getMetadatain interfacecom.querydsl.core.types.Path<T>
-
getRoot
public com.querydsl.core.types.Path<?> getRoot()- Specified by:
getRootin interfacecom.querydsl.core.types.Path<T>
-
getAnnotatedElement
- Specified by:
getAnnotatedElementin interfacecom.querydsl.core.types.Path<T>
-
accept
- Specified by:
acceptin interfacecom.querydsl.core.types.Expression<T>
-
getType
- Specified by:
getTypein interfacecom.querydsl.core.types.Expression<T>
-
getElements
Returns the elements in thisVALUESclause.- Returns:
- the elements in this
VALUESclause
-
isIdentifiable
public boolean isIdentifiable()Returns whether this represents an identifiableVALUESclause.- Returns:
- true iff this
VALUESclause should bind only the id attribute
-
getAlias
Retrieve the alias under which thisValuesExpressionis bound.- Returns:
- the alias
-