@@ -118,45 +118,40 @@ static <T> WhereDSL where(BindableColumn<T> column, VisitableCondition<T> condit
118
118
119
119
// where condition connectors
120
120
static <T > SqlCriterion <T > or (BindableColumn <T > column , VisitableCondition <T > condition ) {
121
- return new SqlCriterion .Builder < T >( )
121
+ return SqlCriterion .withColumn ( column )
122
122
.withConnector ("or" ) //$NON-NLS-1$
123
- .withColumn (column )
124
123
.withCondition (condition )
125
124
.build ();
126
125
}
127
126
128
127
static <T > SqlCriterion <T > or (BindableColumn <T > column , VisitableCondition <T > condition ,
129
128
SqlCriterion <?>...subCriteria ) {
130
- return new SqlCriterion .Builder < T >( )
129
+ return SqlCriterion .withColumn ( column )
131
130
.withConnector ("or" ) //$NON-NLS-1$
132
- .withColumn (column )
133
131
.withCondition (condition )
134
132
.withSubCriteria (Arrays .asList (subCriteria ))
135
133
.build ();
136
134
}
137
135
138
136
static <T > SqlCriterion <T > and (BindableColumn <T > column , VisitableCondition <T > condition ) {
139
- return new SqlCriterion .Builder < T >( )
137
+ return SqlCriterion .withColumn ( column )
140
138
.withConnector ("and" ) //$NON-NLS-1$
141
- .withColumn (column )
142
139
.withCondition (condition )
143
140
.build ();
144
141
}
145
142
146
143
static <T > SqlCriterion <T > and (BindableColumn <T > column , VisitableCondition <T > condition ,
147
144
SqlCriterion <?>...subCriteria ) {
148
- return new SqlCriterion .Builder < T >( )
145
+ return SqlCriterion .withColumn ( column )
149
146
.withConnector ("and" ) //$NON-NLS-1$
150
- .withColumn (column )
151
147
.withCondition (condition )
152
148
.withSubCriteria (Arrays .asList (subCriteria ))
153
149
.build ();
154
150
}
155
151
156
152
// join support
157
153
static JoinCriterion and (BasicColumn joinColumn , JoinCondition joinCondition ) {
158
- return new JoinCriterion .Builder ()
159
- .withJoinColumn (joinColumn )
154
+ return JoinCriterion .withJoinColumn (joinColumn )
160
155
.withJoinCondition (joinCondition )
161
156
.withConnector ("and" ) //$NON-NLS-1$
162
157
.build ();
0 commit comments