public final class Alias extends 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<BigDecimal> |
$(BigDecimal arg)
Convert the given alias to an expression
|
static NumberPath<BigInteger> |
$(BigInteger arg)
Convert the given alias to an expression
|
static BooleanPath |
$(Boolean arg)
Convert the given alias to an expression
|
static NumberPath<Byte> |
$(Byte arg)
Convert the given alias to an expression
|
static <D> CollectionPath<D,SimpleExpression<D>> |
$(Collection<D> arg)
Convert the given alias to an expression
|
static <D> EntityPathBase<D> |
$(D arg)
Convert the given alias to an expression
|
static <D extends 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<Date> |
$(Date arg)
Convert the given alias to an expression
|
static DateTimePath<Date> |
$(Date arg)
Convert the given alias to an expression
|
static NumberPath<Double> |
$(Double arg)
Convert the given alias to an expression
|
static NumberPath<Float> |
$(Float arg)
Convert the given alias to an expression
|
static NumberPath<Integer> |
$(Integer arg)
Convert the given alias to an expression
|
static <D> ListPath<D,SimpleExpression<D>> |
$(List<D> arg)
Convert the given alias to an expression
|
static NumberPath<Long> |
$(Long arg)
Convert the given alias to an expression
|
static <K,V> MapPath<K,V,SimpleExpression<V>> |
$(Map<K,V> arg)
Convert the given alias to an expression
|
static <D> SetPath<D,SimpleExpression<D>> |
$(Set<D> arg)
Convert the given alias to an expression
|
static NumberPath<Short> |
$(Short arg)
Convert the given alias to an expression
|
static StringPath |
$(String arg)
Convert the given alias to an expression
|
static <T extends Enum<T>> |
$(T arg)
Convert the given alias to an expression
|
static TimePath<Time> |
$(Time arg)
Convert the given alias to an expression
|
static DateTimePath<Timestamp> |
$(Timestamp arg)
Convert the given alias to an expression
|
static <A> A |
alias(Class<A> cl)
Create a new alias proxy of the given type
|
static <A> A |
alias(Class<A> cl,
Expression<? extends A> expr)
Create a new alias proxy of the given type for the given expression
|
static <A> A |
alias(Class<A> cl,
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 Comparable<?>> |
var(D arg)
Create a new variable path
|
static <D extends Number & Comparable<D>> |
var(D arg)
Create a new variable path
|
static StringPath |
var(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<BigDecimal> $(BigDecimal arg)
arg
- aliaspublic static NumberPath<BigInteger> $(BigInteger arg)
arg
- aliaspublic static BooleanPath $(Boolean arg)
arg
- aliaspublic static NumberPath<Byte> $(Byte arg)
arg
- aliaspublic static <T extends Enum<T>> EnumPath<T> $(T arg)
T
- arg
- aliaspublic static <D> CollectionPath<D,SimpleExpression<D>> $(Collection<D> arg)
D
- arg
- aliaspublic static <D extends Comparable<?>> ComparablePath<D> $(D arg)
D
- arg
- aliaspublic static NumberPath<Double> $(Double arg)
arg
- aliaspublic static NumberPath<Float> $(Float arg)
arg
- aliaspublic static NumberPath<Integer> $(Integer arg)
arg
- aliaspublic static DatePath<Date> $(Date arg)
arg
- aliaspublic static DateTimePath<Date> $(Date arg)
arg
- aliaspublic static <D> ListPath<D,SimpleExpression<D>> $(List<D> arg)
D
- arg
- aliaspublic static NumberPath<Long> $(Long arg)
arg
- aliaspublic static <K,V> MapPath<K,V,SimpleExpression<V>> $(Map<K,V> arg)
K
- V
- arg
- aliaspublic static <D> SetPath<D,SimpleExpression<D>> $(Set<D> arg)
D
- arg
- aliaspublic static NumberPath<Short> $(Short arg)
arg
- aliaspublic static StringPath $(String arg)
arg
- aliaspublic static TimePath<Time> $(Time arg)
arg
- aliaspublic static DateTimePath<Timestamp> $(Timestamp arg)
arg
- alias@Nullable public static <D> EntityPathBase<D> $(D arg)
D
- arg
- aliaspublic static <A> A alias(Class<A> cl)
cl
- type of the aliaspublic static <A> A alias(Class<A> cl, Expression<? extends A> expr)
cl
- type of the aliasexpr
- underlying expressionpublic static <A> A alias(Class<A> cl, 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 Comparable<?>> ComparablePath<D> var(D arg)
D
- arg
- aliaspublic static <D extends Number & Comparable<D>> NumberPath<D> var(D arg)
D
- arg
- aliaspublic static <D> EntityPathBase<D> var(D arg)
D
- arg
- aliaspublic static StringPath var(String arg)
arg
- aliasCopyright © 2007–2016 Querydsl. All rights reserved.