File tree Expand file tree Collapse file tree
Database/src/main/java/org/broken/arrow/library/database Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .broken .arrow .library .database .builders ;
22
3- import org .broken .arrow .library .database .utility .WhereClauseApplier ;
43import org .broken .arrow .library .database .utility .WhereClauseFunction ;
54import org .broken .arrow .library .serialize .utility .serialize .ConfigurationSerializable ;
65
Original file line number Diff line number Diff line change 11package org .broken .arrow .library .database .construct .query ;
22
3-
43import org .broken .arrow .library .database .construct .query .builder .CreateTableHandler ;
54import org .broken .arrow .library .database .construct .query .builder .InsertHandler ;
65import org .broken .arrow .library .database .construct .query .builder .QueryRemover ;
76import org .broken .arrow .library .database .construct .query .builder .UpdateBuilder ;
87import org .broken .arrow .library .database .construct .query .builder .WithManger ;
9- import org .broken .arrow .library .database .construct .query .builder .insertbuilder .InsertBuilder ;
108import org .broken .arrow .library .database .construct .query .builder .tablebuilder .AlterTable ;
119import org .broken .arrow .library .database .construct .query .builder .wherebuilder .WhereBuilder ;
1210import org .broken .arrow .library .database .construct .query .columnbuilder .Column ;
1311import org .broken .arrow .library .database .construct .query .columnbuilder .ColumnManager ;
1412import org .broken .arrow .library .database .construct .query .utlity .QueryType ;
15- import org . broken . arrow . library . database . construct . query . utlity . StringUtil ;
13+
1614
1715import javax .annotation .Nonnull ;
18- import java .util .Comparator ;
1916import java .util .HashMap ;
2017import java .util .List ;
2118import java .util .Map ;
22- import java .util .Set ;
2319import java .util .function .Consumer ;
2420import java .util .stream .Collectors ;
2521/**
Original file line number Diff line number Diff line change 88import org .broken .arrow .library .database .construct .query .utlity .StringUtil ;
99
1010import java .util .ArrayList ;
11- import java .util .Collection ;
12- import java .util .Comparator ;
13- import java .util .HashMap ;
1411import java .util .LinkedHashMap ;
15- import java .util .LinkedHashSet ;
1612import java .util .List ;
1713import java .util .Map ;
18- import java .util .Set ;
19- import java .util .stream .Collectors ;
2014
2115/**
2216 * A utility class for managing column-value pairs for an SQL {@code INSERT} operation.
@@ -175,9 +169,9 @@ public String build() {
175169 }
176170
177171 private String setSelect (final StringBuilder sql , final List <String > columnNames ) {
178- final QueryModifier queryModifier = getQueryModifier ();
179- final ColumnBuilder <Column , Void > selectBuilder = queryModifier .getSelectBuilder ();
180- final String from = queryModifier .getTable ();
172+ final QueryModifier modifier = getQueryModifier ();
173+ final ColumnBuilder <Column , Void > selectBuilder = modifier .getSelectBuilder ();
174+ final String from = modifier .getTable ();
181175 final String selectSql = selectBuilder .build ();
182176
183177 if (!selectSql .isEmpty () && from != null ) {
Original file line number Diff line number Diff line change 77
88import javax .annotation .Nonnull ;
99import javax .annotation .Nullable ;
10- import java .util .Arrays ;
1110import java .util .StringJoiner ;
1211
1312/**
Original file line number Diff line number Diff line change @@ -61,8 +61,7 @@ public Aggregation getAggregation() {
6161 * @return the aggregation applied to this column, or null if none
6262 */
6363 public Aggregation setAggregation () {
64- Aggregation aggregation = new Aggregation (new ColumnManager (), this );
65- return aggregation ;
64+ return new Aggregation (new ColumnManager (), this );
6665 }
6766
6867 /**
Original file line number Diff line number Diff line change 11package org .broken .arrow .library .database .construct .query .columnbuilder ;
22
33import org .broken .arrow .library .database .construct .query .builder .tablebuilder .SQLConstraints ;
4- import org .broken .arrow .library .database .construct .query .builder .tablebuilder .TableColumn ;
54
65import java .util .ArrayList ;
76import java .util .Arrays ;
You can’t perform that action at this time.
0 commit comments