本文整理了Java中com.mysema.query.types.Expression
类的一些代码示例,展示了Expression
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Expression
类的具体详情如下:
包路径:com.mysema.query.types.Expression
类名称:Expression
[英]Expression defines a general typed expression in a Query instance. The generic type parameter is a reference to the type the expression is bound to.
The central Expression subinterfaces are
代码示例来源:origin: com.mysema.rdf/rdfbean-core
private void handle(List<?> args) {
for (Object arg : args) {
if (arg instanceof Expression) {
((Expression) arg).accept(this, null);
}
}
}
代码示例来源:origin: com.mysema.querydsl/querydsl-sql
@Override
public RT produceNext(ResultSet rs) throws Exception {
return get(rs, expr, 1, expr.getType());
}
};
代码示例来源:origin: com.mysema.querydsl/querydsl-core
@SuppressWarnings("unchecked")
public GMax(Expression<T> expr) {
super((Class)expr.getType(), expr);
}
代码示例来源:origin: com.mysema.querydsl/querydsl-core
private void visit(Expression<?> expr, QueryMetadata context) {
if (expr != null) {
expr.accept(this, context);
}
}
代码示例来源:origin: arnaudroger/SimpleFlatMapper
@Override
public Type getType(Type targetType) {
return expression.getType();
}
代码示例来源:origin: com.mysema.querydsl/querydsl-core
private void visit(List<Expression<?>> exprs, QueryMetadata context) {
for (Expression<?> arg : exprs) {
arg.accept(this, context);
}
}
代码示例来源:origin: com.mysema.querydsl/querydsl-core
@Override
public final Class<? extends T> getType() {
return mixin.getType();
}
代码示例来源:origin: com.mysema.querydsl/querydsl-core
public final S handle(Expression<?> expr) {
expr.accept(this, null);
return self;
}
代码示例来源:origin: com.mysema.querydsl/querydsl-sql
public WindowFunction(Expression<A> expr) {
super(expr.getType());
this.target = expr;
}
代码示例来源:origin: com.mysema.querydsl/querydsl-core
private void validate(Expression<?> expr) {
if (extractParams) {
expr.accept(ParamsVisitor.DEFAULT, this);
}
if (validate) {
exprInJoins = expr.accept(validatingVisitor, exprInJoins);
}
}
代码示例来源:origin: com.mysema.querydsl/querydsl-core
@SuppressWarnings("unchecked")
public GMin(Expression<T> expr) {
super((Class) expr.getType(), expr);
}
代码示例来源:origin: com.mysema.rdf/rdfbean-core
private void handle(@Nullable Expression<?> e) {
if (e != null) {
e.accept(this, null);
}
}
代码示例来源:origin: com.mysema.querydsl/querydsl-core
@SuppressWarnings("unchecked")
public GOne(Expression<T> expr) {
super((Class)expr.getType(), expr);
}
代码示例来源:origin: com.mysema.rdf/rdfbean-sesame
@Nullable
private ValueExpr toValue(Expression<?> expr, QueryMetadata md) {
return (ValueExpr)expr.accept(this, md);
}
代码示例来源:origin: com.mysema.querydsl/querydsl-core
protected void typeMismatch(Class<?> type, Expression<?> expr) {
final String msg = expr.getType().getName() + " is not compatible with " + type.getName();
throw new IllegalArgumentException(msg);
}
代码示例来源:origin: com.mysema.rdf/rdfbean-core
@Nullable
private Expression<?> transform(Expression<?> expr, Filters filters) {
return (Expression<?>) expr.accept(this, filters);
}
代码示例来源:origin: com.mysema.querydsl/querydsl-core
private <T extends Comparable> Cases<T, DateExpression<T>> thenDate(Expression<T> expr) {
return new Cases<T, DateExpression<T>>((Class)expr.getType()) {
@Override
protected DateExpression<T> createResult(Class<T> type, Expression<T> last) {
return DateOperation.create(type, Ops.CASE, last);
}
}.addCase(when, expr);
}
代码示例来源:origin: com.mysema.rdf/rdfbean-sesame2
@Nullable
private ValueExpr toValue(Expression<?> expr, QueryMetadata md) {
return (ValueExpr) expr.accept(this, md);
}
代码示例来源:origin: com.mysema.querydsl/querydsl-sql
/**
* @param measureExpr
* @param n
* @return
*/
public static <T> WindowOver<T> nthValue(Expression<T> measureExpr, Expression<? extends Number> n) {
return new WindowOver<T>((Class<T>)measureExpr.getType(), SQLOps.NTHVALUE, measureExpr, n);
}
代码示例来源:origin: com.mysema.querydsl/querydsl-sql
public static Set<RelationalPath<?>> extract(Expression<?> expr) {
return expr.accept(DEFAULT, ImmutableSet.<RelationalPath<?>>of());
}
内容来源于网络,如有侵权,请联系作者删除!