Package com.querydsl.core.alias
Class Alias
java.lang.Object
com.querydsl.core.alias.Alias
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;
- Author:
- tiwe
-
Method Summary
Modifier and TypeMethodDescriptionstatic <D extends Expression<?>>
D$()Convert the given alias to an expressionstatic <D extends Comparable<?>>
ComparablePath<D>$(D arg) Convert the given alias to an expressionstatic <D> ArrayPath<D[],D> $(D[] arg) Convert the given alias to an expressionstatic BooleanPathConvert the given alias to an expressionstatic NumberPath<Byte>Convert the given alias to an expressionstatic NumberPath<Double>Convert the given alias to an expressionstatic NumberPath<Float>Convert the given alias to an expressionstatic NumberPath<Integer>Convert the given alias to an expressionstatic NumberPath<Long>Convert the given alias to an expressionstatic NumberPath<Short>Convert the given alias to an expressionstatic StringPathConvert the given alias to an expressionstatic NumberPath<BigDecimal>$(BigDecimal arg) Convert the given alias to an expressionstatic NumberPath<BigInteger>$(BigInteger arg) Convert the given alias to an expressionConvert the given alias to an expressionConvert the given alias to an expressionstatic DateTimePath<Timestamp>Convert the given alias to an expressionstatic <D> CollectionPath<D,SimpleExpression<D>> $(Collection<D> arg) Convert the given alias to an expressionstatic DateTimePath<Date>Convert the given alias to an expressionstatic <D> ListPath<D,SimpleExpression<D>> Convert the given alias to an expressionstatic <K,V> MapPath<K, V, SimpleExpression<V>> Convert the given alias to an expressionstatic <D> SetPath<D,SimpleExpression<D>> Convert the given alias to an expression$(T arg) Convert the given alias to an expressionstatic <A> ACreate a new alias proxy of the given typestatic <A> Aalias(Class<A> cl, Expression<? extends A> expr) Create a new alias proxy of the given type for the given expressionstatic <A> ACreate a new alias proxy of the given type for the given variablestatic <D> Expression<D>getAny(D arg) Convert the given alias to an expressionstatic voidReset the aliasstatic <D> SimplePath<D>var()Return the default variablestatic <D extends Comparable<?>>
ComparablePath<D>var(D arg) Create a new variable pathstatic StringPathCreate a new variable path
-
Method Details
-
$
Convert the given alias to an expression- Type Parameters:
D-- Returns:
- expression
-
$
Convert the given alias to an expression- Type Parameters:
D-- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Type Parameters:
T-- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Type Parameters:
D-- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Type Parameters:
D-- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Type Parameters:
D-- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Type Parameters:
K-V-- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Type Parameters:
D-- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Parameters:
arg- alias- Returns:
- expression
-
$
Convert the given alias to an expression- Type Parameters:
D-- Parameters:
arg- alias- Returns:
- expression
-
alias
Create a new alias proxy of the given type- Parameters:
cl- type of the alias- Returns:
- alias instance
-
alias
Create a new alias proxy of the given type for the given expression- Parameters:
cl- type of the aliasexpr- underlying expression- Returns:
- alias instance
-
alias
Create a new alias proxy of the given type for the given variable- Parameters:
cl- type of the aliasvar- variable name for the underlying expression- Returns:
- alias instance
-
getAny
Convert the given alias to an expression- Type Parameters:
D-- Parameters:
arg- alias instance- Returns:
- underlying expression
-
resetAlias
public static void resetAlias()Reset the alias -
var
Return the default variable- Type Parameters:
D-- Returns:
- expression
-
var
Create a new variable path- Type Parameters:
D-- Parameters:
arg- alias- Returns:
- expression
-
var
Create a new variable path- Type Parameters:
D-- Parameters:
arg- alias- Returns:
- expression
-
var
Create a new variable path- Type Parameters:
D-- Parameters:
arg- alias- Returns:
- expression
-
var
Create a new variable path- Parameters:
arg- alias- Returns:
- expression
-