◆ compareTo()
int org.turro.dossier.entity.DossierVersion.compareTo |
( |
DossierVersion |
o | ) |
|
Definition at line 193 of file DossierVersion.java.
194 return new Version(versionId).compareTo(
new Version(o !=
null ? o.versionId :
null));
◆ entityId()
Object org.turro.dossier.entity.DossierVersion.entityId |
( |
| ) |
|
◆ getByStatus()
Definition at line 171 of file DossierVersion.java.
172 if(DossierVersionStatus.VERSION_STOPPED.equals(status)) {
173 return new DossierPU().getResultList(
174 "select concat('/issue/', id) from Issue issue " +
175 "where issue.version = ? " +
176 "and issue.status <> ? " +
177 "and issue.priority = ?",
178 new Object[] {
this, IssueStatus.STATUS_CLOSED, IssuePriority.PRIORITY_CANT_CONTINUE }
180 }
else if(DossierVersionStatus.VERSION_NOTRECOMMENDED.equals(status)) {
181 return new DossierPU().getResultList(
182 "select concat('/issue/', id) from Issue issue " +
183 "where issue.version = ? " +
184 "and issue.status <> ? " +
185 "and issue.priority = ?",
186 new Object[] {
this, IssueStatus.STATUS_CLOSED, IssuePriority.PRIORITY_WORKAROUND_IMPRACTICAL }
◆ getDossier()
Dossier org.turro.dossier.entity.DossierVersion.getDossier |
( |
| ) |
|
◆ getId()
Long org.turro.dossier.entity.DossierVersion.getId |
( |
| ) |
|
◆ getIssues()
long org.turro.dossier.entity.DossierVersion.getIssues |
( |
| ) |
|
Definition at line 121 of file DossierVersion.java.
122 if(issueCount ==
null) {
123 issueCount = (Long)
new DossierPU().getSingleResult(
124 "select count(issue) from Issue issue " +
125 "where issue.version = ?",
126 new Object[] {
this }
◆ getReleaseDate()
Date org.turro.dossier.entity.DossierVersion.getReleaseDate |
( |
| ) |
|
◆ getStatus()
Definition at line 132 of file DossierVersion.java.
133 if(currentStatus ==
null) {
134 long stoppers = (Long)
new DossierPU().getSingleResult(
135 "select count(issue) from Issue issue " +
136 "where issue.version = ? " +
137 "and issue.status <> ? " +
138 "and issue.priority = ?",
139 new Object[] {
this, IssueStatus.STATUS_CLOSED, IssuePriority.PRIORITY_CANT_CONTINUE }
144 long problematic = (Long)
new DossierPU().getSingleResult(
145 "select count(issue) from Issue issue " +
146 "where issue.version = ? " +
147 "and issue.status <> ? " +
148 "and issue.priority = ?",
149 new Object[] {
this, IssueStatus.STATUS_CLOSED, IssuePriority.PRIORITY_WORKAROUND_IMPRACTICAL }
151 if(problematic > 0) {
154 long onWork = (Long)
new DossierPU().getSingleResult(
155 "select count(issue) from Issue issue " +
156 "where issue.version = ? " +
157 "and issue.status <> ?",
158 new Object[] {
this, IssueStatus.STATUS_CLOSED }
168 return currentStatus;
◆ getVersionId()
String org.turro.dossier.entity.DossierVersion.getVersionId |
( |
| ) |
|
◆ getVersionString()
String org.turro.dossier.entity.DossierVersion.getVersionString |
( |
| ) |
|
Definition at line 114 of file DossierVersion.java.
115 return "[" + versionId + Chars.forward().spaced().toString() + DateFormats.format(releaseDate,
true) +
"]";
◆ isActive()
boolean org.turro.dossier.entity.DossierVersion.isActive |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.dossier.entity.DossierVersion.isEmpty |
( |
| ) |
|
◆ setActive()
void org.turro.dossier.entity.DossierVersion.setActive |
( |
boolean |
active | ) |
|
◆ setDossier()
void org.turro.dossier.entity.DossierVersion.setDossier |
( |
Dossier |
dossier | ) |
|
◆ setId()
void org.turro.dossier.entity.DossierVersion.setId |
( |
Long |
id | ) |
|
◆ setReleaseDate()
void org.turro.dossier.entity.DossierVersion.setReleaseDate |
( |
Date |
releaseDate | ) |
|
◆ setVersionId()
void org.turro.dossier.entity.DossierVersion.setVersionId |
( |
String |
versionId | ) |
|
The documentation for this class was generated from the following file: