aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/iciql/QueryJoin.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/iciql/QueryJoin.java')
-rw-r--r--src/main/java/com/iciql/QueryJoin.java78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/main/java/com/iciql/QueryJoin.java b/src/main/java/com/iciql/QueryJoin.java
index 6d0484e..325ae50 100644
--- a/src/main/java/com/iciql/QueryJoin.java
+++ b/src/main/java/com/iciql/QueryJoin.java
@@ -23,53 +23,53 @@ package com.iciql;
public class QueryJoin<T> {
- private Query<T> query;
- private SelectTable<T> join;
+ private Query<T> query;
+ private SelectTable<T> join;
- QueryJoin(Query<T> query, SelectTable<T> join) {
- this.query = query;
- this.join = join;
- }
+ QueryJoin(Query<T> query, SelectTable<T> join) {
+ this.query = query;
+ this.join = join;
+ }
- public QueryJoinCondition<T, Boolean> on(boolean x) {
- query.getFrom().getAliasDefinition().checkMultipleBooleans();
- return addPrimitive(x);
- }
+ public QueryJoinCondition<T, Boolean> on(boolean x) {
+ query.getFrom().getAliasDefinition().checkMultipleBooleans();
+ return addPrimitive(x);
+ }
- public QueryJoinCondition<T, Byte> on(byte x) {
- return addPrimitive(x);
- }
+ public QueryJoinCondition<T, Byte> on(byte x) {
+ return addPrimitive(x);
+ }
- public QueryJoinCondition<T, Short> on(short x) {
- return addPrimitive(x);
- }
+ public QueryJoinCondition<T, Short> on(short x) {
+ return addPrimitive(x);
+ }
- public QueryJoinCondition<T, Integer> on(int x) {
- return addPrimitive(x);
- }
+ public QueryJoinCondition<T, Integer> on(int x) {
+ return addPrimitive(x);
+ }
- public QueryJoinCondition<T, Long> on(long x) {
- return addPrimitive(x);
- }
+ public QueryJoinCondition<T, Long> on(long x) {
+ return addPrimitive(x);
+ }
- public QueryJoinCondition<T, Float> on(float x) {
- return addPrimitive(x);
- }
+ public QueryJoinCondition<T, Float> on(float x) {
+ return addPrimitive(x);
+ }
- public QueryJoinCondition<T, Double> on(double x) {
- return addPrimitive(x);
- }
+ public QueryJoinCondition<T, Double> on(double x) {
+ return addPrimitive(x);
+ }
- private <A> QueryJoinCondition<T, A> addPrimitive(A x) {
- A alias = query.getPrimitiveAliasByValue(x);
- if (alias == null) {
- // this will result in an unmapped field exception
- return new QueryJoinCondition<T, A>(query, join, x);
- }
- return new QueryJoinCondition<T, A>(query, join, alias);
- }
+ private <A> QueryJoinCondition<T, A> addPrimitive(A x) {
+ A alias = query.getPrimitiveAliasByValue(x);
+ if (alias == null) {
+ // this will result in an unmapped field exception
+ return new QueryJoinCondition<T, A>(query, join, x);
+ }
+ return new QueryJoinCondition<T, A>(query, join, alias);
+ }
- public <A> QueryJoinCondition<T, A> on(A x) {
- return new QueryJoinCondition<T, A>(query, join, x);
- }
+ public <A> QueryJoinCondition<T, A> on(A x) {
+ return new QueryJoinCondition<T, A>(query, join, x);
+ }
}