ClusterInfoCriteria.java
1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* @(#)ClusterInfoCriteria.java 1.4.4,26 custom 26/05/2010
*
* Built automatically by REVERSER
*/
package it.softecspa.fileproxy.db.criterias;
import it.softecspa.database.dbconnect.ConnectionManager;
import it.softecspa.fileproxy.db.ClusterInfo;
import it.softecspa.fileproxy.db.skins.criterias.ClusterInfoCSkin;
import it.softecspa.kahuna.sql.SqlWriter;
import java.sql.SQLException;
/**
* Customizable criteria filter for table T005_CLUSTER_INFO
* Class auto generated by REVERSER, version 1.4.4,26 custom
*
* @author il Vera
*/
public class ClusterInfoCriteria extends ClusterInfoCSkin {
private Boolean activeOnly;
public ClusterInfoCriteria(ConnectionManager cm) {
super(cm);
}
/**
* Customizable build select * with filter
*/
public SqlWriter getSelect() {
SqlWriter sql = super.getSelect();
if (activeOnly!=null && activeOnly.booleanValue()) {
sql.addWhere("t.d_life_stop is null");
sql.addWhere("t.f_do_not_use = '0'");
}
return sql;
}
/**
* Execute select * with filter
* A zero length array is returned if no record found
* @throws SQLException if there is an error in your query
*/
public ClusterInfo[] select() throws SQLException {
return ClusterInfo.select(this);
}
public Boolean getActiveOnly() {
return activeOnly;
}
public void setActiveOnly(Boolean activeOnly) {
this.activeOnly = activeOnly;
}
}