- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 33 of file Students.java.
◆ getChallengeCountFrom() [1/2]
static long org.turro.entities.Students.getChallengeCountFrom |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 59 of file Students.java.
static long getChallengeCountFrom(IContact contact)
◆ getChallengeCountFrom() [2/2]
static long org.turro.entities.Students.getChallengeCountFrom |
( |
String |
idContact | ) |
|
|
static |
Definition at line 63 of file Students.java.
64 WhereClause wc =
new WhereClause();
65 wc.addClause(
"select count(distinct c) from Challenge c");
66 wc.addClause(
"where c.idChallenger = :idc");
67 wc.addNamedValue(
"idc", idContact);
68 return (
long)
new StudentsPU().getSingleResult(wc);
◆ getChallengeCountFromEntity() [1/2]
static long org.turro.entities.Students.getChallengeCountFromEntity |
( |
Object |
entity | ) |
|
|
static |
◆ getChallengeCountFromEntity() [2/2]
static long org.turro.entities.Students.getChallengeCountFromEntity |
( |
String |
entityPath | ) |
|
|
static |
Definition at line 39 of file Students.java.
40 WhereClause wc =
new WhereClause();
41 wc.addClause(
"select count(distinct c) from Challenge c");
42 wc.addClause(
"where c.entityPath = :path");
43 wc.addNamedValue(
"path", entityPath);
44 return (
long)
new StudentsPU().getSingleResult(wc);
◆ getChallengesFrom() [1/2]
static List<Challenge> org.turro.entities.Students.getChallengesFrom |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 71 of file Students.java.
static List< Challenge > getChallengesFrom(IContact contact)
◆ getChallengesFrom() [2/2]
static List<Challenge> org.turro.entities.Students.getChallengesFrom |
( |
String |
idContact | ) |
|
|
static |
Definition at line 75 of file Students.java.
76 WhereClause wc =
new WhereClause();
77 wc.addClause(
"select c from Challenge c");
78 wc.addClause(
"where c.idChallenger = :idc");
79 wc.addNamedValue(
"idc", idContact);
80 return new StudentsPU().getResultList(wc);
◆ getChallengesFromEntity() [1/2]
static List<Challenge> org.turro.entities.Students.getChallengesFromEntity |
( |
Object |
entity | ) |
|
|
static |
◆ getChallengesFromEntity() [2/2]
static List<Challenge> org.turro.entities.Students.getChallengesFromEntity |
( |
String |
entityPath | ) |
|
|
static |
Definition at line 51 of file Students.java.
52 WhereClause wc =
new WhereClause();
53 wc.addClause(
"select c from Challenge c");
54 wc.addClause(
"where c.entityPath = :path");
55 wc.addNamedValue(
"path", entityPath);
56 return new StudentsPU().getResultList(wc);
◆ getResponseCountFrom() [1/3]
static double org.turro.entities.Students.getResponseCountFrom |
( |
Dao |
dao, |
|
|
Challenge |
challenge |
|
) |
| |
|
static |
Definition at line 131 of file Students.java.
132 WhereClause wc =
new WhereClause();
133 wc.addClause(
"select count(distinct r) from Response r");
134 wc.addClause(
"where challenge.id = :idc");
135 wc.addNamedValue(
"idc", challenge.getId());
136 return (
long) dao.getSingleResult(wc);
◆ getResponseCountFrom() [2/3]
static long org.turro.entities.Students.getResponseCountFrom |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 107 of file Students.java.
static long getResponseCountFrom(IContact contact)
◆ getResponseCountFrom() [3/3]
static long org.turro.entities.Students.getResponseCountFrom |
( |
String |
idContact | ) |
|
|
static |
Definition at line 111 of file Students.java.
112 WhereClause wc =
new WhereClause();
113 wc.addClause(
"select count(distinct r) from Response r");
114 wc.addClause(
"where :idc member of r.studentIds");
115 wc.addNamedValue(
"idc", idContact);
116 return (
long)
new StudentsPU().getSingleResult(wc);
◆ getResponseCountFromEntity() [1/2]
static long org.turro.entities.Students.getResponseCountFromEntity |
( |
Object |
entity | ) |
|
|
static |
◆ getResponseCountFromEntity() [2/2]
static long org.turro.entities.Students.getResponseCountFromEntity |
( |
String |
entityPath | ) |
|
|
static |
Definition at line 87 of file Students.java.
88 WhereClause wc =
new WhereClause();
89 wc.addClause(
"select count(distinct r) from Response r");
90 wc.addClause(
"where r.challenge.entityPath = :path");
91 wc.addNamedValue(
"path", entityPath);
92 return (
long)
new StudentsPU().getSingleResult(wc);
◆ getResponsesFrom() [1/3]
Definition at line 139 of file Students.java.
140 WhereClause wc =
new WhereClause();
141 wc.addClause(
"select r from Response r");
142 wc.addClause(
"where challenge.id = :idc");
143 wc.addNamedValue(
"idc", challenge.getId());
144 return dao.getResultList(wc);
◆ getResponsesFrom() [2/3]
static List<Response> org.turro.entities.Students.getResponsesFrom |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 119 of file Students.java.
static List< Response > getResponsesFrom(IContact contact)
◆ getResponsesFrom() [3/3]
static List<Response> org.turro.entities.Students.getResponsesFrom |
( |
String |
idContact | ) |
|
|
static |
Definition at line 123 of file Students.java.
124 WhereClause wc =
new WhereClause();
125 wc.addClause(
"select r from Response r");
126 wc.addClause(
"where :idc member of r.studentIds");
127 wc.addNamedValue(
"idc", idContact);
128 return new StudentsPU().getResultList(wc);
◆ getResponsesFromEntity() [1/2]
static List<Response> org.turro.entities.Students.getResponsesFromEntity |
( |
Object |
entity | ) |
|
|
static |
◆ getResponsesFromEntity() [2/2]
static List<Response> org.turro.entities.Students.getResponsesFromEntity |
( |
String |
entityPath | ) |
|
|
static |
Definition at line 99 of file Students.java.
100 WhereClause wc =
new WhereClause();
101 wc.addClause(
"select r from Response r");
102 wc.addClause(
"where r.challenge.entityPath = :path");
103 wc.addNamedValue(
"path", entityPath);
104 return new StudentsPU().getResultList(wc);
The documentation for this class was generated from the following file: