mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
updated javadocs
This commit is contained in:
parent
c8ad401d8f
commit
bbcab404bd
@ -22,7 +22,7 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.BooleanExpression;
|
||||
|
||||
/**
|
||||
* BooleanBuilder is a cascading builder for {@link BooleanExpression} expressions.
|
||||
* BooleanBuilder is a cascading builder for {@link Predicate} expressions.
|
||||
*
|
||||
* @author tiwe
|
||||
*/
|
||||
|
||||
@ -8,7 +8,7 @@ package com.mysema.query;
|
||||
import com.mysema.query.types.Predicate;
|
||||
|
||||
/**
|
||||
* Parent interface for clauses with a filter
|
||||
* Parent interface for clauses with a filter condition
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
@ -17,7 +17,7 @@ import com.mysema.query.types.Predicate;
|
||||
public interface FilteredClause<C extends FilteredClause<C>> {
|
||||
|
||||
/**
|
||||
* Defines the filter constraints
|
||||
* Adds the given filter conditions
|
||||
*
|
||||
* @param o
|
||||
* @return
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.TemplateExpressionImpl;
|
||||
|
||||
/**
|
||||
* JoinFlag defines a join related flag using an Expr instance
|
||||
* JoinFlag defines a join related flag using an Expression instance
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.ParamExpression;
|
||||
import com.mysema.query.types.Predicate;
|
||||
|
||||
/**
|
||||
* Query provides a query interface of the fluent query DSL.
|
||||
* Query defines the main query interface of the fluent query language.
|
||||
*
|
||||
* <p>Note that the from method has been left out, since there are implementation
|
||||
* specific variants of it.</p>
|
||||
|
||||
@ -14,7 +14,7 @@ import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.TemplateExpressionImpl;
|
||||
|
||||
/**
|
||||
* Defines a positioned flag in a query for customization of query serialization
|
||||
* Defines a positioned flag in a Query for customization of query serialization
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
@ -26,30 +26,69 @@ public class QueryFlag implements Serializable{
|
||||
|
||||
public enum Position {
|
||||
|
||||
/**
|
||||
* Start of the query
|
||||
*/
|
||||
START,
|
||||
|
||||
/**
|
||||
* Override for the first element (e.g SELECT, INSERT)
|
||||
*/
|
||||
START_OVERRIDE,
|
||||
|
||||
/**
|
||||
* After the first element (after select)
|
||||
*/
|
||||
AFTER_SELECT,
|
||||
|
||||
/**
|
||||
* After the projection (after select ...)
|
||||
*/
|
||||
AFTER_PROJECTION,
|
||||
|
||||
/**
|
||||
* Before the filter conditions (where)
|
||||
*/
|
||||
BEFORE_FILTERS,
|
||||
|
||||
/**
|
||||
* After the filter conditions (where)
|
||||
*/
|
||||
AFTER_FILTERS,
|
||||
|
||||
/**
|
||||
* Before group by
|
||||
*/
|
||||
BEFORE_GROUP_BY,
|
||||
|
||||
/**
|
||||
* After group by
|
||||
*/
|
||||
AFTER_GROUP_BY,
|
||||
|
||||
/**
|
||||
* Before having
|
||||
*/
|
||||
BEFORE_HAVING,
|
||||
|
||||
/**
|
||||
* After having
|
||||
*/
|
||||
AFTER_HAVING,
|
||||
|
||||
/**
|
||||
* Before order (by)
|
||||
*/
|
||||
BEFORE_ORDER,
|
||||
|
||||
/**
|
||||
* After order (by)
|
||||
*/
|
||||
AFTER_ORDER,
|
||||
|
||||
/**
|
||||
* After all other tokens
|
||||
*/
|
||||
END
|
||||
|
||||
}
|
||||
|
||||
@ -36,20 +36,11 @@ public final class QueryModifiers implements Serializable{
|
||||
@Nullable
|
||||
private final Long limit, offset;
|
||||
|
||||
/**
|
||||
* Instantiates a new query modifiers.
|
||||
*/
|
||||
public QueryModifiers() {
|
||||
limit = null;
|
||||
offset = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new query modifiers.
|
||||
*
|
||||
* @param limit the limit
|
||||
* @param offset the offset
|
||||
*/
|
||||
public QueryModifiers(@Nullable Long limit, @Nullable Long offset) {
|
||||
this.limit = limit;
|
||||
if (limit != null && limit <= 0) {
|
||||
@ -61,29 +52,16 @@ public final class QueryModifiers implements Serializable{
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param modifiers
|
||||
*/
|
||||
public QueryModifiers(QueryModifiers modifiers) {
|
||||
this.limit = modifiers.getLimit();
|
||||
this.offset = modifiers.getOffset();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the limit.
|
||||
*
|
||||
* @return the limit
|
||||
*/
|
||||
@Nullable
|
||||
public Long getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the offset.
|
||||
*
|
||||
* @return the offset
|
||||
*/
|
||||
@Nullable
|
||||
public Long getOffset() {
|
||||
return offset;
|
||||
|
||||
@ -22,8 +22,7 @@ import java.lang.annotation.Target;
|
||||
@Documented
|
||||
@Target({PACKAGE,TYPE})
|
||||
@Retention(RUNTIME)
|
||||
// TODO : rename to Config
|
||||
public @interface QuerydslConfig {
|
||||
public @interface Config {
|
||||
|
||||
/**
|
||||
* Created entity field initialization accessors
|
||||
@ -21,7 +21,6 @@ import java.lang.annotation.Target;
|
||||
@Documented
|
||||
@Target({METHOD})
|
||||
@Retention(RUNTIME)
|
||||
// TODO : rename to Delegate
|
||||
public @interface QueryDelegate {
|
||||
|
||||
/**
|
||||
|
||||
@ -22,8 +22,7 @@ import java.lang.annotation.Target;
|
||||
@Documented
|
||||
@Target({PACKAGE})
|
||||
@Retention(RUNTIME)
|
||||
// TODO : rename to Variables
|
||||
public @interface QuerydslVariables {
|
||||
public @interface Variables {
|
||||
|
||||
/**
|
||||
* Simple name of the variables class
|
||||
@ -7,7 +7,7 @@ package com.mysema.query.codegen;
|
||||
|
||||
import net.jcip.annotations.Immutable;
|
||||
|
||||
import com.mysema.query.annotations.QuerydslConfig;
|
||||
import com.mysema.query.annotations.Config;
|
||||
|
||||
/**
|
||||
* SimpleSerializerConfig is the default implementation of the SerializerConfig interface
|
||||
@ -20,7 +20,7 @@ public final class SimpleSerializerConfig implements SerializerConfig{
|
||||
|
||||
public static final SerializerConfig DEFAULT = new SimpleSerializerConfig(false, false, false, true);
|
||||
|
||||
public static SerializerConfig getConfig(QuerydslConfig annotation){
|
||||
public static SerializerConfig getConfig(Config annotation){
|
||||
return new SimpleSerializerConfig(
|
||||
annotation.entityAccessors(),
|
||||
annotation.listAccessors(),
|
||||
|
||||
@ -9,7 +9,7 @@ import com.mysema.query.FilteredClause;
|
||||
|
||||
|
||||
/**
|
||||
* DeleteClause defines a generic extensible interface for Delete clauses
|
||||
* DeleteClause defines a generic interface for Delete clauses
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -9,7 +9,7 @@ import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.SubQueryExpression;
|
||||
|
||||
/**
|
||||
* InsertClause defines a generic extensible interface for Insert clauses
|
||||
* InsertClause defines a generic interface for Insert clauses
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -14,6 +14,8 @@ import java.util.Map;
|
||||
import com.mysema.commons.lang.Assert;
|
||||
|
||||
/**
|
||||
* ConstantImpl is the default implementation of the Constant interface
|
||||
*
|
||||
* @author tiwe
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@ -33,9 +35,9 @@ public class ConstantImpl<T> extends ExpressionBase<T> implements Constant<T> {
|
||||
|
||||
private static final Map<String,Constant<String>> STRINGS;
|
||||
|
||||
public static final Constant<Boolean> FALSE = new ConstantImpl<Boolean>(Boolean.FALSE);
|
||||
private static final Constant<Boolean> FALSE = new ConstantImpl<Boolean>(Boolean.FALSE);
|
||||
|
||||
public static final Constant<Boolean> TRUE = new ConstantImpl<Boolean>(Boolean.TRUE);
|
||||
private static final Constant<Boolean> TRUE = new ConstantImpl<Boolean>(Boolean.TRUE);
|
||||
|
||||
static{
|
||||
List<String> strs = new ArrayList<String>(Arrays.asList("", ".", ".*", "%"));
|
||||
@ -56,6 +58,10 @@ public class ConstantImpl<T> extends ExpressionBase<T> implements Constant<T> {
|
||||
}
|
||||
}
|
||||
|
||||
public static Constant<Boolean> create(boolean b){
|
||||
return b ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
public static Constant<Byte> create(byte i){
|
||||
if (i >= 0 && i < CACHE_SIZE){
|
||||
return BYTES[i];
|
||||
|
||||
@ -6,6 +6,8 @@
|
||||
package com.mysema.query.types;
|
||||
|
||||
/**
|
||||
* EntityPath is the common interface for entity path expressions
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <T>
|
||||
|
||||
@ -10,7 +10,7 @@ import java.io.Serializable;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Expr represents a general typed expression in a Query instance. The generic type parameter
|
||||
* 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.
|
||||
*
|
||||
* @author tiwe
|
||||
|
||||
@ -8,6 +8,8 @@ package com.mysema.query.types;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* ExpressionBase is the base class for Expression implementations
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <T>
|
||||
|
||||
@ -11,6 +11,8 @@ import javax.annotation.Nullable;
|
||||
|
||||
|
||||
/**
|
||||
* Utilities for constructing common operation instances
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
|
||||
@ -7,6 +7,8 @@ package com.mysema.query.types;
|
||||
|
||||
|
||||
/**
|
||||
* ExtractorVisitor is a Visitor implementation for Expression extraction
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
|
||||
@ -9,7 +9,7 @@ import java.lang.reflect.Field;
|
||||
|
||||
|
||||
/**
|
||||
* JavaTemplates extends Template to provide Java syntax compliant serialization
|
||||
* JavaTemplates extends Templates to provide Java syntax compliant serialization
|
||||
* of Querydsl expressions
|
||||
*
|
||||
* @author tiwe
|
||||
|
||||
@ -3,12 +3,10 @@
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
package com.mysema.query.types.path;
|
||||
package com.mysema.query.types;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.TemplateFactory;
|
||||
import com.mysema.query.types.template.SimpleTemplate;
|
||||
|
||||
/**
|
||||
@ -11,6 +11,8 @@ import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* OperationImpl is the default implementation of the Operation interface
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <RT>
|
||||
|
||||
@ -18,6 +18,8 @@ import java.util.List;
|
||||
public interface Operator<RT> extends Serializable{
|
||||
|
||||
/**
|
||||
* Get the unique id for this Operator
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
String getId();
|
||||
|
||||
@ -6,6 +6,8 @@
|
||||
package com.mysema.query.types;
|
||||
|
||||
/**
|
||||
* ParamExpression defines named and unnamed parameters in queries
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <T>
|
||||
@ -13,6 +15,8 @@ package com.mysema.query.types;
|
||||
public interface ParamExpression<T> extends Expression<T>{
|
||||
|
||||
/**
|
||||
* Get the name of the parameter
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
String getName();
|
||||
|
||||
@ -12,8 +12,7 @@ import javax.annotation.Nullable;
|
||||
import com.mysema.util.ReflectionUtils;
|
||||
|
||||
/**
|
||||
* PathImpl defines a default implementation of the Path interface which can be used
|
||||
* as a component and target in actual Path implementations
|
||||
* PathImpl defines a default implementation of the Path interface
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -10,6 +10,8 @@ import javax.annotation.Nonnegative;
|
||||
import com.mysema.commons.lang.Assert;
|
||||
|
||||
/**
|
||||
* PathMetadataFactory is a factory class for Path construction
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
|
||||
@ -6,12 +6,16 @@
|
||||
package com.mysema.query.types;
|
||||
|
||||
/**
|
||||
* Predicate is the common interface for Boolean typed expressions
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
public interface Predicate extends Expression<Boolean>{
|
||||
|
||||
/**
|
||||
* Get the negation of the expression
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Predicate not();
|
||||
|
||||
@ -6,6 +6,8 @@
|
||||
package com.mysema.query.types;
|
||||
|
||||
/**
|
||||
* PredicateOperation provides a Boolean typed Operation implemenentation
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
|
||||
@ -10,7 +10,7 @@ import javax.annotation.Nullable;
|
||||
import com.mysema.query.QueryMetadata;
|
||||
|
||||
/**
|
||||
* Mixin implementation of the SubQuery interface
|
||||
* SubQueryImpl is the default implementation of the SubQuery interface
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -8,7 +8,6 @@ package com.mysema.query.types;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* Default implementation of the TemplateExpression interface
|
||||
*
|
||||
|
||||
@ -15,7 +15,7 @@ import com.mysema.query.types.FactoryExpression;
|
||||
import com.mysema.query.types.Visitor;
|
||||
|
||||
/**
|
||||
* ArrayConstructorExpression extends {@link ConstructorExpression} to represent array initializers
|
||||
* ArrayConstructorExpression extends {@link SimpleExpression} to represent array initializers
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -85,7 +85,6 @@ public final class CaseForEqBuilder<D> {
|
||||
}
|
||||
|
||||
public <T extends Number & Comparable<?>> Cases<T,NumberExpression<T>> then(T then){
|
||||
// return then(NumberConstant.create(then));
|
||||
return thenNumber(new ConstantImpl<T>(then));
|
||||
}
|
||||
|
||||
@ -110,7 +109,6 @@ public final class CaseForEqBuilder<D> {
|
||||
}
|
||||
|
||||
public Cases<String,StringExpression> then(String then){
|
||||
// return then(StringConstant.create(then));
|
||||
return thenString(ConstantImpl.create(then));
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.PathImpl;
|
||||
|
||||
/**
|
||||
* ComparableExpression extends EComparableBase to provide comparison methods.
|
||||
* ComparableExpression extends ComparableExpressionBase to provide comparison methods.
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -11,6 +11,8 @@ import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.PathImpl;
|
||||
|
||||
/**
|
||||
* EnumExpression represents Enum typed expressions
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <T>
|
||||
|
||||
@ -20,8 +20,7 @@ import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.PathImpl;
|
||||
|
||||
/**
|
||||
* ESimple is the base class for Expr implementations. It provides default implementations
|
||||
* for most of the abstract methods in {@link Expression}
|
||||
* SimpleExpression is the base class for Expression implementations.
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -15,7 +15,7 @@ import com.mysema.query.types.Operator;
|
||||
import com.mysema.query.types.Visitor;
|
||||
|
||||
/**
|
||||
* TimeOperation represents Time functions
|
||||
* TimeOperation represents Time operations
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -15,6 +15,8 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.DateExpression;
|
||||
|
||||
/**
|
||||
* DatePath presents Date paths
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <D>
|
||||
|
||||
@ -15,6 +15,8 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.DateTimeExpression;
|
||||
|
||||
/**
|
||||
* DateTimePath presents DateTime typed paths
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <D>
|
||||
|
||||
@ -11,6 +11,8 @@ import com.mysema.query.types.EntityPath;
|
||||
import com.mysema.query.types.PathMetadata;
|
||||
|
||||
/**
|
||||
* EntityPathBase provides a base class for EntityPath implementations
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <D>
|
||||
|
||||
@ -14,7 +14,7 @@ import com.mysema.query.types.PathMetadataFactory;
|
||||
import com.mysema.query.types.expr.SimpleExpression;
|
||||
|
||||
/**
|
||||
* PathBuilder is an extension to PEntity for dynamic path construction
|
||||
* PathBuilder is an extension to EntityPathBase for dynamic path construction
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -15,6 +15,8 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.TimeExpression;
|
||||
|
||||
/**
|
||||
* TimePath represented Time paths
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <D>
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.BooleanExpression;
|
||||
|
||||
/**
|
||||
* Single result subquery
|
||||
* Boolean typed single result subquery
|
||||
*
|
||||
* @author tiwe
|
||||
*/
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.ComparableExpression;
|
||||
|
||||
/**
|
||||
* Single result subquery
|
||||
* Comparable typed single result subquery
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.DateExpression;
|
||||
|
||||
/**
|
||||
* Single result subquery
|
||||
* Date typed single result subquery
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.DateTimeExpression;
|
||||
|
||||
/**
|
||||
* Single result subquery
|
||||
* DateTime typed single result subquery
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.NumberExpression;
|
||||
|
||||
/**
|
||||
* Single result subquery
|
||||
* Number typed single result subquery
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.SimpleExpression;
|
||||
|
||||
/**
|
||||
* Single result subquery
|
||||
* Object typed single result subquery
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.StringExpression;
|
||||
|
||||
/**
|
||||
* Single result subquery
|
||||
* String typed single result subquery
|
||||
*
|
||||
* @author tiwe
|
||||
*/
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.TimeExpression;
|
||||
|
||||
/**
|
||||
* Single result subquery
|
||||
* Time typed single result subquery
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -17,6 +17,8 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.DateExpression;
|
||||
|
||||
/**
|
||||
* DateTemplate defines custom date expressions
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <T>
|
||||
|
||||
@ -17,6 +17,8 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.DateTimeExpression;
|
||||
|
||||
/**
|
||||
* DateTimeTemplate defines custom dateTime expressions
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <T>
|
||||
|
||||
@ -17,6 +17,8 @@ import com.mysema.query.types.Visitor;
|
||||
import com.mysema.query.types.expr.TimeExpression;
|
||||
|
||||
/**
|
||||
* TimeTemplate defines custom time expressions
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <T>
|
||||
|
||||
@ -16,7 +16,6 @@ import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.mysema.query.types.Constant;
|
||||
import com.mysema.query.types.ConstantImpl;
|
||||
import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.JavaTemplates;
|
||||
@ -26,14 +25,6 @@ import com.mysema.query.types.TemplateFactory;
|
||||
import com.mysema.query.types.Templates;
|
||||
import com.mysema.query.types.ToStringVisitor;
|
||||
import com.mysema.query.types.path.StringPath;
|
||||
import com.mysema.query.types.template.BooleanTemplate;
|
||||
import com.mysema.query.types.template.ComparableTemplate;
|
||||
import com.mysema.query.types.template.DateTemplate;
|
||||
import com.mysema.query.types.template.DateTimeTemplate;
|
||||
import com.mysema.query.types.template.NumberTemplate;
|
||||
import com.mysema.query.types.template.SimpleTemplate;
|
||||
import com.mysema.query.types.template.StringTemplate;
|
||||
import com.mysema.query.types.template.TimeTemplate;
|
||||
|
||||
public class TemplateExpressionTest {
|
||||
|
||||
@ -71,7 +62,7 @@ public class TemplateExpressionTest {
|
||||
@Test
|
||||
public void factoryMethods(){
|
||||
String template = "";
|
||||
Constant<Boolean> arg = ConstantImpl.TRUE;
|
||||
Expression<Boolean> arg = ConstantImpl.create(true);
|
||||
|
||||
BooleanTemplate.create(template, arg);
|
||||
ComparableTemplate.create(String.class, template, arg);
|
||||
@ -86,7 +77,7 @@ public class TemplateExpressionTest {
|
||||
@Test
|
||||
public void factoryMethods2(){
|
||||
Template template = TemplateFactory.DEFAULT.create("");
|
||||
Constant<Boolean> arg = ConstantImpl.TRUE;
|
||||
Expression<Boolean> arg = ConstantImpl.create(true);
|
||||
|
||||
BooleanTemplate.create(template, arg);
|
||||
ComparableTemplate.create(String.class, template, arg);
|
||||
|
||||
@ -12,9 +12,9 @@ import com.mysema.query.QueryMetadata;
|
||||
import com.mysema.query.dml.UpdateClause;
|
||||
import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.ExpressionUtils;
|
||||
import com.mysema.query.types.NullExpr;
|
||||
import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.Predicate;
|
||||
import com.mysema.query.types.path.NullExpr;
|
||||
|
||||
/**
|
||||
* UpdateClause implementation for JDO
|
||||
|
||||
@ -9,7 +9,7 @@ import com.mysema.query.types.expr.BooleanExpression;
|
||||
import com.mysema.query.types.path.MapPath;
|
||||
|
||||
/**
|
||||
* HQLCommonQuery is a common interface for HQLQuery and HQLSubQuery
|
||||
* JPQLCommonQuery is a common interface for HQLQuery and HQLSubQuery
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -15,7 +15,7 @@ import com.mysema.query.types.expr.NumberOperation;
|
||||
import com.mysema.query.types.expr.SimpleOperation;
|
||||
|
||||
/**
|
||||
* HQLGrammar provides factory methods for HQL specific operations
|
||||
* JPQLGrammar provides factory methods for JPQL specific operations
|
||||
* elements.
|
||||
*
|
||||
* @author tiwe
|
||||
|
||||
@ -8,7 +8,7 @@ package com.mysema.query.jpa;
|
||||
import com.mysema.query.Projectable;
|
||||
|
||||
/**
|
||||
* Query interface for HQL queries
|
||||
* Query interface for JPQL queries
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -16,7 +16,7 @@ import com.mysema.query.types.expr.BooleanExpression;
|
||||
import com.mysema.query.types.path.MapPath;
|
||||
|
||||
/**
|
||||
* HQLQueryBase is a base Query class for HQL
|
||||
* JPQLQueryBase is a base Query class for JPQL queries
|
||||
*
|
||||
* @author tiwe
|
||||
* @version $Id$
|
||||
|
||||
@ -14,7 +14,7 @@ import com.mysema.query.support.QueryMixin;
|
||||
import com.mysema.query.types.expr.BooleanExpression;
|
||||
|
||||
/**
|
||||
* HQLQueryMixin extends QueryMixin to support JPQL join construction
|
||||
* JPQLQueryMixin extends QueryMixin to support JPQL join construction
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -27,7 +27,7 @@ import com.mysema.query.types.expr.SimpleOperation;
|
||||
import com.mysema.util.MathUtils;
|
||||
|
||||
/**
|
||||
* HQLSerializer serializes Querydsl expressions into HQL syntax.
|
||||
* JPQLSerializer serializes Querydsl expressions into JPQL syntax.
|
||||
*
|
||||
* @author tiwe
|
||||
* @version $Id$
|
||||
|
||||
@ -8,7 +8,7 @@ package com.mysema.query.jpa;
|
||||
import com.mysema.query.QueryMetadata;
|
||||
|
||||
/**
|
||||
* HQLSubQuery is a subquery class for JPQL
|
||||
* JPQLSubQuery is a subquery class for JPQL
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -13,7 +13,7 @@ import com.mysema.query.types.PathType;
|
||||
import com.mysema.query.types.Templates;
|
||||
|
||||
/**
|
||||
* JPQLTemplates extends Templates to provide operator patterns for HQL
|
||||
* JPQLTemplates extends Templates to provide operator patterns for JPQL
|
||||
* serialization
|
||||
*
|
||||
* @author tiwe
|
||||
|
||||
@ -35,7 +35,7 @@ import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.expr.ConstructorExpression;
|
||||
|
||||
/**
|
||||
* Abstract base class for Hibernate API based implementations of the HQLQuery interface
|
||||
* Abstract base class for Hibernate API based implementations of the JPQL interface
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -15,7 +15,7 @@ import com.mysema.query.jpa.HQLTemplates;
|
||||
import com.mysema.query.jpa.JPQLTemplates;
|
||||
|
||||
/**
|
||||
* HibernateQuery is the default implementation of the HQLQuery interface for Hibernate
|
||||
* HibernateQuery is the default implementation of the JPQLQuery interface for Hibernate
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -22,9 +22,9 @@ import com.mysema.query.jpa.JPQLTemplates;
|
||||
import com.mysema.query.types.EntityPath;
|
||||
import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.ExpressionUtils;
|
||||
import com.mysema.query.types.NullExpr;
|
||||
import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.Predicate;
|
||||
import com.mysema.query.types.path.NullExpr;
|
||||
|
||||
/**
|
||||
* UpdateClause implementation for Hibernate
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* HQL for Hibernate
|
||||
* JPQL for Hibernate
|
||||
*/
|
||||
@DefaultAnnotation( { Nonnull.class })
|
||||
package com.mysema.query.jpa.hibernate;
|
||||
|
||||
@ -27,7 +27,7 @@ import com.mysema.query.jpa.JPQLTemplates;
|
||||
import com.mysema.query.types.Expression;
|
||||
|
||||
/**
|
||||
* Abstract base class for JPA API based implementations of the HQLQuery interface
|
||||
* Abstract base class for JPA API based implementations of the JPQLQuery interface
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -14,7 +14,7 @@ import com.mysema.query.jpa.HQLTemplates;
|
||||
import com.mysema.query.jpa.JPQLTemplates;
|
||||
|
||||
/**
|
||||
* JPAQuery is the default implementation of the HQLQuery interface for JPA
|
||||
* JPAQuery is the default implementation of the JPQLQuery interface for JPA
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
|
||||
@ -21,9 +21,9 @@ import com.mysema.query.jpa.JPQLTemplates;
|
||||
import com.mysema.query.types.EntityPath;
|
||||
import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.ExpressionUtils;
|
||||
import com.mysema.query.types.NullExpr;
|
||||
import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.Predicate;
|
||||
import com.mysema.query.types.path.NullExpr;
|
||||
|
||||
/**
|
||||
* UpdateClause implementation for JPA
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@QuerydslConfig(listAccessors=true, mapAccessors=true)
|
||||
@Config(listAccessors=true, mapAccessors=true)
|
||||
package com.mysema.query.jpa.domain;
|
||||
import com.mysema.query.annotations.QuerydslConfig;
|
||||
import com.mysema.query.annotations.Config;
|
||||
|
||||
|
||||
@ -35,10 +35,10 @@ import com.mysema.query.sql.SQLSerializer;
|
||||
import com.mysema.query.sql.SQLTemplates;
|
||||
import com.mysema.query.types.ConstantImpl;
|
||||
import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.NullExpr;
|
||||
import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.SubQueryExpression;
|
||||
import com.mysema.query.types.expr.Param;
|
||||
import com.mysema.query.types.path.NullExpr;
|
||||
import com.mysema.util.ResultSetAdapter;
|
||||
|
||||
/**
|
||||
|
||||
@ -34,10 +34,10 @@ import com.mysema.query.sql.SQLTemplates;
|
||||
import com.mysema.query.types.ConstantImpl;
|
||||
import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.ExpressionUtils;
|
||||
import com.mysema.query.types.NullExpr;
|
||||
import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.SubQueryExpression;
|
||||
import com.mysema.query.types.expr.Param;
|
||||
import com.mysema.query.types.path.NullExpr;
|
||||
|
||||
/**
|
||||
* SQLMergeClause defines an MERGE INTO clause
|
||||
|
||||
@ -30,10 +30,10 @@ import com.mysema.query.sql.Configuration;
|
||||
import com.mysema.query.sql.RelationalPath;
|
||||
import com.mysema.query.sql.SQLSerializer;
|
||||
import com.mysema.query.sql.SQLTemplates;
|
||||
import com.mysema.query.types.NullExpr;
|
||||
import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.Predicate;
|
||||
import com.mysema.query.types.expr.Param;
|
||||
import com.mysema.query.types.path.NullExpr;
|
||||
|
||||
/**
|
||||
* SQLUpdateClause defines a UPDATE clause
|
||||
|
||||
Loading…
Reference in New Issue
Block a user