mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
commit
4e283fbf4f
@ -147,7 +147,7 @@ public interface QueryMetadata extends Serializable {
|
||||
/**
|
||||
* Get the parameter bindings
|
||||
*
|
||||
* @return parameteter bindings
|
||||
* @return parameter bindings
|
||||
*/
|
||||
Map<ParamExpression<?>,Object> getParams();
|
||||
|
||||
@ -187,7 +187,7 @@ public interface QueryMetadata extends Serializable {
|
||||
void setDistinct(boolean distinct);
|
||||
|
||||
/**
|
||||
* Set the maxmium amount of rows
|
||||
* Set the maximum number of rows
|
||||
*
|
||||
* @param limit limit
|
||||
*/
|
||||
@ -201,7 +201,7 @@ public interface QueryMetadata extends Serializable {
|
||||
void setModifiers(QueryModifiers restriction);
|
||||
|
||||
/**
|
||||
* Set the amount of skipped rows
|
||||
* Set the number of skipped rows
|
||||
*
|
||||
* @param offset offset
|
||||
*/
|
||||
|
||||
@ -36,7 +36,7 @@ import com.querydsl.core.types.dsl.*;
|
||||
* <p>Example:</p>
|
||||
*
|
||||
* <pre>{@code
|
||||
* Empoyee e = alias(Employee.class, "e");
|
||||
* Employee e = alias(Employee.class, "e");
|
||||
* for (String name : query.from($(e),employees)
|
||||
* .where($(e.getDepartment().getId()).eq(1001))
|
||||
* .list($(e.getName()))) {
|
||||
@ -422,7 +422,7 @@ public final class Alias {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new varibale path
|
||||
* Create a new variable path
|
||||
*
|
||||
* @param arg alias
|
||||
* @param <D>
|
||||
|
||||
@ -102,7 +102,7 @@ class AliasFactory {
|
||||
*
|
||||
* @param <A>
|
||||
* @param cl type for alias
|
||||
* @param var variable name for the underyling expression
|
||||
* @param var variable name for the underlying expression
|
||||
* @return alias instance
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
@ -59,7 +59,7 @@ public enum MethodType {
|
||||
*/
|
||||
TO_STRING("toString",String.class, Object.class),
|
||||
/**
|
||||
* Scala getter inovication
|
||||
* Scala getter invocation
|
||||
*/
|
||||
SCALA_GETTER(".+", Object.class, Object.class),
|
||||
/**
|
||||
|
||||
@ -51,7 +51,7 @@ public final class GroupBy {
|
||||
/**
|
||||
* Create a new GroupByBuilder for the given key expressions
|
||||
*
|
||||
* @param keys keys for aggreation
|
||||
* @param keys keys for aggregation
|
||||
* @return builder for further specification
|
||||
*/
|
||||
public static GroupByBuilder<List<?>> groupBy(Expression<?>... keys) {
|
||||
|
||||
@ -556,7 +556,7 @@ public final class ExpressionUtils {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creat a list expression for the given arguments
|
||||
* Create a list expression for the given arguments
|
||||
*
|
||||
* @param exprs list elements
|
||||
* @return list expression
|
||||
@ -661,7 +661,7 @@ public final class ExpressionUtils {
|
||||
/**
|
||||
* Create a {@code left not in right} expression
|
||||
*
|
||||
* @param <D> type of epressions
|
||||
* @param <D> type of expressions
|
||||
* @param left lhs of expression
|
||||
* @param right rhs of expression
|
||||
* @return left not in right
|
||||
@ -673,7 +673,7 @@ public final class ExpressionUtils {
|
||||
/**
|
||||
* Create a {@code left not in right} expression
|
||||
*
|
||||
* @param <D> type of epressions
|
||||
* @param <D> type of expressions
|
||||
* @param left lhs of expression
|
||||
* @param right rhs of expression
|
||||
* @return left not in right
|
||||
@ -685,7 +685,7 @@ public final class ExpressionUtils {
|
||||
/**
|
||||
* Create a {@code left not in right} expression
|
||||
*
|
||||
* @param <D> tyoe of expressions
|
||||
* @param <D> type of expressions
|
||||
* @param left lhs of expression
|
||||
* @param right rhs of expression
|
||||
* @return left not in right
|
||||
|
||||
@ -40,7 +40,7 @@ import com.querydsl.core.group.GroupExpression;
|
||||
* List<EmployeeInfo> result = query.from(employee)
|
||||
* .where(employee.valid.eq(true))
|
||||
* .select(Projections.bean(EmployeeInfo.class, employee.firstName, employee.lastName))
|
||||
* .fech();
|
||||
* .fetch();
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
|
||||
@ -24,7 +24,7 @@ package com.querydsl.core.types;
|
||||
public interface Visitor<R, C> {
|
||||
|
||||
/**
|
||||
* Visit a Contant instance with the given context
|
||||
* Visit a Constant instance with the given context
|
||||
*
|
||||
* @param expr expression to visit
|
||||
* @param context context of the visit or null, if not used
|
||||
@ -42,7 +42,7 @@ public interface Visitor<R, C> {
|
||||
R visit(FactoryExpression<?> expr, C context);
|
||||
|
||||
/**
|
||||
* Vist a Operation instance with the given context
|
||||
* Visit an Operation instance with the given context
|
||||
*
|
||||
* @param expr expression to visit
|
||||
* @param context context of the visit or null, if not used
|
||||
|
||||
@ -262,7 +262,7 @@ public class BeanPath<T> extends SimpleExpression<T> implements Path<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Simpe path
|
||||
* Create a new Simple path
|
||||
*
|
||||
* @param <A>
|
||||
* @param property property name
|
||||
|
||||
@ -182,7 +182,7 @@ public final class CaseForEqBuilder<D> {
|
||||
* Intermediate step
|
||||
*
|
||||
* @param <T> Result type
|
||||
* @param <Q> Parent expreession type
|
||||
* @param <Q> Parent expression type
|
||||
*/
|
||||
public class CaseWhen<T, Q extends Expression<T>> {
|
||||
|
||||
|
||||
@ -104,7 +104,7 @@ public abstract class CollectionExpressionBase<T extends Collection<E>, E> exten
|
||||
/**
|
||||
* Create a {@code this.size()} expression
|
||||
*
|
||||
* <p>Gets the amounnt of elements in this collection</p>
|
||||
* <p>Gets the number of elements in this collection</p>
|
||||
*
|
||||
* @return this.size()
|
||||
*/
|
||||
|
||||
@ -67,7 +67,7 @@ public abstract class ComparableExpressionBase<T extends Comparable> extends Sim
|
||||
/**
|
||||
* Create a {@code coalesce(this, args...)} expression
|
||||
*
|
||||
* @param args additonal arguments
|
||||
* @param args additional arguments
|
||||
* @return coalesce
|
||||
*/
|
||||
public final Coalesce<T> coalesce(T... args) {
|
||||
|
||||
@ -161,7 +161,7 @@ public abstract class SimpleExpression<T> extends DslExpression<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a {@code this == all right} expresion
|
||||
* Create a {@code this == all right} expression
|
||||
*
|
||||
* @param right
|
||||
* @return this == all right
|
||||
|
||||
@ -63,16 +63,16 @@ public final class Conversions {
|
||||
return false;
|
||||
}
|
||||
|
||||
private static <RT> FactoryExpression<RT> createEntityPathConversions(FactoryExpression<RT> factorye) {
|
||||
private static <RT> FactoryExpression<RT> createEntityPathConversions(FactoryExpression<RT> factoryExpr) {
|
||||
List<Expression<?>> conversions = Lists.newArrayList();
|
||||
for (Expression<?> e : factorye.getArgs()) {
|
||||
for (Expression<?> e : factoryExpr.getArgs()) {
|
||||
if (isEntityPathAndNeedsWrapping(e)) {
|
||||
conversions.add(ExpressionUtils.operation(e.getType(), SQLOps.ALL, e));
|
||||
} else {
|
||||
conversions.add(e);
|
||||
}
|
||||
}
|
||||
return FactoryExpressionUtils.wrap(factorye, conversions);
|
||||
return FactoryExpressionUtils.wrap(factoryExpr, conversions);
|
||||
}
|
||||
|
||||
public static <RT> Expression<RT> convertForNativeQuery(Expression<RT> expr) {
|
||||
|
||||
@ -74,7 +74,7 @@ public final class JPAExpressions {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new detached JPQLQuery instacne with the projection zero
|
||||
* Create a new detached JPQLQuery instance with the projection zero
|
||||
*
|
||||
* @return select(0)
|
||||
*/
|
||||
@ -83,7 +83,7 @@ public final class JPAExpressions {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new detached JPQLQuery instacne with the projection one
|
||||
* Create a new detached JPQLQuery instance with the projection one
|
||||
*
|
||||
* @return select(1)
|
||||
*/
|
||||
|
||||
@ -233,7 +233,7 @@ public interface JPQLQuery<T> extends FetchableQuery<T, JPQLQuery<T>>, Query<JPQ
|
||||
* Use fetchJoin() to add the fetchJoin parameter to this join.
|
||||
*
|
||||
* @param <P>
|
||||
* @param target targt
|
||||
* @param target target
|
||||
* @return the current object
|
||||
*/
|
||||
<P> JPQLQuery<T> rightJoin(EntityPath<P> target);
|
||||
|
||||
@ -72,7 +72,7 @@ public class JPAQuery<T> extends AbstractJPAQuery<T, JPAQuery<T>> {
|
||||
* Creates a new query
|
||||
*
|
||||
* @param em entity manager
|
||||
* @param templates temoplates
|
||||
* @param templates templates
|
||||
* @param metadata query metadata
|
||||
*/
|
||||
public JPAQuery(EntityManager em, JPQLTemplates templates, QueryMetadata metadata) {
|
||||
|
||||
@ -274,7 +274,7 @@ public abstract class GeometryExpression<T extends Geometry> extends SimpleExpre
|
||||
/**
|
||||
* Returns 1 (TRUE) if this geometric object is “spatially within” anotherGeometry.
|
||||
*
|
||||
* @param geometry other goemetry
|
||||
* @param geometry other geometry
|
||||
* @return true, if within
|
||||
*/
|
||||
public BooleanExpression within(Geometry geometry) {
|
||||
@ -496,7 +496,7 @@ public abstract class GeometryExpression<T extends Geometry> extends SimpleExpre
|
||||
* Point set symmetric difference of this geometric object with anotherGeometry.
|
||||
*
|
||||
* @param geometry other geometry
|
||||
* @return symmetric difference between this and the other goemetry
|
||||
* @return symmetric difference between this and the other geometry
|
||||
*/
|
||||
public GeometryExpression<Geometry> symDifference(Geometry geometry) {
|
||||
return symDifference(ConstantImpl.create(geometry));
|
||||
|
||||
@ -57,7 +57,7 @@ public abstract class LineStringExpression<T extends LineString> extends CurveEx
|
||||
/**
|
||||
* Returns the specified Point N in this LineString.
|
||||
*
|
||||
* @param idx one basedindex of element
|
||||
* @param idx one-based index of element
|
||||
* @return matched element
|
||||
*/
|
||||
public PointExpression<Point> pointN(int idx) {
|
||||
|
||||
@ -126,7 +126,7 @@ public class AntMetaDataExporter extends Task {
|
||||
private boolean exportBeans;
|
||||
|
||||
/**
|
||||
* additional bean inerfaces
|
||||
* additional bean interfaces
|
||||
*/
|
||||
private String[] beanInterfaces;
|
||||
|
||||
|
||||
@ -202,7 +202,7 @@ public final class Configuration {
|
||||
*
|
||||
* @param key schema and table
|
||||
* @param column column
|
||||
* @return overriden column
|
||||
* @return overridden column
|
||||
*/
|
||||
public String getColumnOverride(SchemaAndTable key, String column) {
|
||||
return nameMapping.getColumnOverride(key, column);
|
||||
|
||||
@ -316,7 +316,7 @@ public abstract class ProjectableSQLQuery<T, Q extends ProjectableSQLQuery<T, Q>
|
||||
*
|
||||
* @param <RT>
|
||||
* @param alias alias for union
|
||||
* @param sq subqueryies
|
||||
* @param sq subqueries
|
||||
* @return the current object
|
||||
*/
|
||||
public <RT> Q union(Path<?> alias, SubQueryExpression<RT>... sq) {
|
||||
|
||||
@ -70,7 +70,7 @@ public class SQLQueryFactory extends AbstractSQLQueryFactory<SQLQuery<?>> {
|
||||
/**
|
||||
* Create a new SQLQuery instance with the given projection
|
||||
*
|
||||
* @param expr projetion
|
||||
* @param expr projection
|
||||
* @param <T>
|
||||
* @return select(expr)
|
||||
*/
|
||||
@ -130,7 +130,7 @@ public class SQLQueryFactory extends AbstractSQLQueryFactory<SQLQuery<?>> {
|
||||
/**
|
||||
* Create a new detached SQLQuery instance with the given projection and source
|
||||
*
|
||||
* @param expr query source andd projection
|
||||
* @param expr query source and projection
|
||||
* @param <T>
|
||||
* @return select(expr).from(expr)
|
||||
*/
|
||||
|
||||
@ -26,7 +26,7 @@ import com.querydsl.core.types.dsl.SimpleExpression;
|
||||
import com.querydsl.core.types.dsl.SimpleOperation;
|
||||
|
||||
/**
|
||||
* {@code WithinGroup} is a builder for {@code WIHIN GROUP} constructs
|
||||
* {@code WithinGroup} is a builder for {@code WITHIN GROUP} constructs
|
||||
*
|
||||
* @param <T> expression type
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user