public final class Alias
extends java.lang.Object
Alias
provides alias factory methods
Example:
Employee e = alias(Employee.class, "e");
for (String name : query.from($(e),employees)
.where($(e.getDepartment().getId()).eq(1001))
.list($(e.getName()))) {
System.out.println(name);
}
using the following static imports
import static com.mysema.query.alias.Alias.$;
import static com.mysema.query.alias.Alias.alias;
Modifier and Type | Method and Description |
---|---|
static <D extends Expression<?>> |
$()
Convert the given alias to an expression
|
static NumberPath<java.math.BigDecimal> |
$(java.math.BigDecimal arg)
Convert the given alias to an expression
|
static NumberPath<java.math.BigInteger> |
$(java.math.BigInteger arg)
Convert the given alias to an expression
|
static BooleanPath |
$(java.lang.Boolean arg)
Convert the given alias to an expression
|
static NumberPath<java.lang.Byte> |
$(java.lang.Byte arg)
Convert the given alias to an expression
|
static <D> CollectionPath<D,SimpleExpression<D>> |
$(java.util.Collection<D> arg)
Convert the given alias to an expression
|
static <D> @Nullable EntityPathBase<D> |
$(D arg)
Convert the given alias to an expression
|
static <D extends java.lang.Comparable<?>> |
$(D arg)
Convert the given alias to an expression
|
static <D> ArrayPath<D[],D> |
$(D[] arg)
Convert the given alias to an expression
|
static DatePath<java.sql.Date> |
$(java.sql.Date arg)
Convert the given alias to an expression
|
static DateTimePath<java.util.Date> |
$(java.util.Date arg)
Convert the given alias to an expression
|
static NumberPath<java.lang.Double> |
$(java.lang.Double arg)
Convert the given alias to an expression
|
static NumberPath<java.lang.Float> |
$(java.lang.Float arg)
Convert the given alias to an expression
|
static NumberPath<java.lang.Integer> |
$(java.lang.Integer arg)
Convert the given alias to an expression
|
static <D> ListPath<D,SimpleExpression<D>> |
$(java.util.List<D> arg)
Convert the given alias to an expression
|
static NumberPath<java.lang.Long> |
$(java.lang.Long arg)
Convert the given alias to an expression
|
static <K,V> MapPath<K,V,SimpleExpression<V>> |
$(java.util.Map<K,V> arg)
Convert the given alias to an expression
|
static <D> SetPath<D,SimpleExpression<D>> |
$(java.util.Set<D> arg)
Convert the given alias to an expression
|
static NumberPath<java.lang.Short> |
$(java.lang.Short arg)
Convert the given alias to an expression
|
static StringPath |
$(java.lang.String arg)
Convert the given alias to an expression
|
static <T extends java.lang.Enum<T>> |
$(T arg)
Convert the given alias to an expression
|
static TimePath<java.sql.Time> |
$(java.sql.Time arg)
Convert the given alias to an expression
|
static DateTimePath<java.sql.Timestamp> |
$(java.sql.Timestamp arg)
Convert the given alias to an expression
|
static <A> A |
alias(java.lang.Class<A> cl)
Create a new alias proxy of the given type
|
static <A> A |
alias(java.lang.Class<A> cl,
Expression<? extends A> expr)
Create a new alias proxy of the given type for the given expression
|
static <A> A |
alias(java.lang.Class<A> cl,
java.lang.String var)
Create a new alias proxy of the given type for the given variable
|
static <D> Expression<D> |
getAny(D arg)
Convert the given alias to an expression
|
static void |
resetAlias()
Reset the alias
|
static <D> SimplePath<D> |
var()
Return the default variable
|
static <D> EntityPathBase<D> |
var(D arg)
Create a new variable path
|
static <D extends java.lang.Comparable<?>> |
var(D arg)
Create a new variable path
|
static <D extends java.lang.Number & java.lang.Comparable<D>> |
var(D arg)
Create a new variable path
|
static StringPath |
var(java.lang.String arg)
Create a new variable path
|
public static <D extends Expression<?>> D $()
D
- public static <D> ArrayPath<D[],D> $(D[] arg)
D
- arg
- aliaspublic static NumberPath<java.math.BigDecimal> $(java.math.BigDecimal arg)
arg
- aliaspublic static NumberPath<java.math.BigInteger> $(java.math.BigInteger arg)
arg
- aliaspublic static BooleanPath $(java.lang.Boolean arg)
arg
- aliaspublic static NumberPath<java.lang.Byte> $(java.lang.Byte arg)
arg
- aliaspublic static <T extends java.lang.Enum<T>> EnumPath<T> $(T arg)
T
- arg
- aliaspublic static <D> CollectionPath<D,SimpleExpression<D>> $(java.util.Collection<D> arg)
D
- arg
- aliaspublic static <D extends java.lang.Comparable<?>> ComparablePath<D> $(D arg)
D
- arg
- aliaspublic static NumberPath<java.lang.Double> $(java.lang.Double arg)
arg
- aliaspublic static NumberPath<java.lang.Float> $(java.lang.Float arg)
arg
- aliaspublic static NumberPath<java.lang.Integer> $(java.lang.Integer arg)
arg
- aliaspublic static DatePath<java.sql.Date> $(java.sql.Date arg)
arg
- aliaspublic static DateTimePath<java.util.Date> $(java.util.Date arg)
arg
- aliaspublic static <D> ListPath<D,SimpleExpression<D>> $(java.util.List<D> arg)
D
- arg
- aliaspublic static NumberPath<java.lang.Long> $(java.lang.Long arg)
arg
- aliaspublic static <K,V> MapPath<K,V,SimpleExpression<V>> $(java.util.Map<K,V> arg)
K
- V
- arg
- aliaspublic static <D> SetPath<D,SimpleExpression<D>> $(java.util.Set<D> arg)
D
- arg
- aliaspublic static NumberPath<java.lang.Short> $(java.lang.Short arg)
arg
- aliaspublic static StringPath $(java.lang.String arg)
arg
- aliaspublic static TimePath<java.sql.Time> $(java.sql.Time arg)
arg
- aliaspublic static DateTimePath<java.sql.Timestamp> $(java.sql.Timestamp arg)
arg
- alias@Nullable public static <D> @Nullable EntityPathBase<D> $(D arg)
D
- arg
- aliaspublic static <A> A alias(java.lang.Class<A> cl)
cl
- type of the aliaspublic static <A> A alias(java.lang.Class<A> cl, Expression<? extends A> expr)
cl
- type of the aliasexpr
- underlying expressionpublic static <A> A alias(java.lang.Class<A> cl, java.lang.String var)
cl
- type of the aliasvar
- variable name for the underlying expressionpublic static <D> Expression<D> getAny(D arg)
D
- arg
- alias instancepublic static void resetAlias()
public static <D> SimplePath<D> var()
D
- public static <D extends java.lang.Comparable<?>> ComparablePath<D> var(D arg)
D
- arg
- aliaspublic static <D extends java.lang.Number & java.lang.Comparable<D>> NumberPath<D> var(D arg)
D
- arg
- aliaspublic static <D> EntityPathBase<D> var(D arg)
D
- arg
- aliaspublic static StringPath var(java.lang.String arg)
arg
- aliasCopyright © 2007–2021 Querydsl. All rights reserved.