Skip to content

Commit 1f18405

Browse files
committed
0.7.6.7 (2021-09-17)
+ Added custom factory method for SelectHelper
1 parent 92335a1 commit 1f18405

File tree

7 files changed

+37
-9
lines changed

7 files changed

+37
-9
lines changed

docgen/parameters.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"title" : "Jupiter (Fugerit Core A.P.I.)",
33
"name": "Jupiter",
4-
"version" : "0.7.6.6",
5-
"date" : "16/09/2021",
4+
"version" : "0.7.6.7",
5+
"date" : "17/09/2021",
66
"organization" : {
77
"name" : "Fugerit Org",
88
"url" : "https://www.fugerit.org"

docgen/release-notes.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
0.7.6.6 (2021-09-16)
1+
0.7.6.7 (2021-09-17)
2+
--------------------
3+
+ Added custom factory method for SelectHelper
4+
5+
0.7.6.6 (2021-09-16)
26
--------------------
37
+ Added appendDescription() method do interface DaoResult
48

fj-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-lib</artifactId>
10-
<version>0.7.6.6</version>
10+
<version>0.7.6.7</version>
1111
</parent>
1212

1313
<name>fj-core</name>

fj-core/src/main/java/org/fugerit/java/core/db/daogen/SelectHelper.java

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.fugerit.java.core.db.daogen;
22

3+
import java.io.Serializable;
34
import java.util.ArrayList;
45
import java.util.Iterator;
56
import java.util.List;
@@ -42,10 +43,28 @@ public class SelectHelper extends QueryHelper {
4243

4344
private List<OrderByHandler> orderByList;
4445

46+
/**
47+
* Creates a new SelectHelper
48+
*
49+
* NOTE : initSelectEntity() should not be invoked.
50+
*
51+
* @param table the entity this select helper is meant for.
52+
* @param fl the list of fields
53+
* @param firstParam <code>true</code> if WHERE must be set, <code>false</code> othewise.
54+
* @param queryView the query to use instead of default query build on TABLE name.
55+
* @return a new SelectHelper
56+
*/
57+
public static SelectHelper newCustomSelectHelper( String table, FieldList fl, boolean firstParam, String queryView ) {
58+
SelectHelper helper = new SelectHelper(table, fl);
59+
helper.firstParam = firstParam;
60+
helper.appendToQuery( queryView );
61+
return helper;
62+
}
63+
4564
public SelectHelper( String table, FieldList fl ) {
4665
super( table, fl );
4766
this.firstParam = true;
48-
this.orderByList = new ArrayList<OrderByHandler>();
67+
this.orderByList = new ArrayList<>();
4968
}
5069

5170
public void initSelectEntity() {
@@ -124,8 +143,13 @@ public String getQueryContent() {
124143

125144
}
126145

127-
class OrderByHandler {
146+
class OrderByHandler implements Serializable {
128147

148+
/**
149+
*
150+
*/
151+
private static final long serialVersionUID = -6753430035123845585L;
152+
129153
private String columnName;
130154

131155
private String orderByMode;

fj-ext/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-lib</artifactId>
10-
<version>0.7.6.6</version>
10+
<version>0.7.6.7</version>
1111
</parent>
1212

1313
<name>fj-ext</name>

fj-tool/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-lib</artifactId>
10-
<version>0.7.6.6</version>
10+
<version>0.7.6.7</version>
1111
</parent>
1212

1313
<name>fj-tool</name>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<relativePath></relativePath>
1212
</parent>
1313

14-
<version>0.7.6.6</version>
14+
<version>0.7.6.7</version>
1515
<packaging>pom</packaging>
1616

1717
<name>fj-lib</name>

0 commit comments

Comments
 (0)