◆ createDao()
Dao org.turro.occurrence.RelationOccurrenceAPI.createDao |
( |
| ) |
|
|
protected |
◆ getName()
String org.turro.occurrence.RelationOccurrenceAPI.getName |
( |
| ) |
|
◆ getOccurrences()
List<BusinessRelation> org.turro.occurrence.RelationOccurrenceAPI.getOccurrences |
( |
String |
value | ) |
|
|
protected |
Definition at line 60 of file RelationOccurrenceAPI.java.
61 WhereClause wc =
new WhereClause();
62 wc.addClause(
"select t from BusinessRelation t");
63 wc.addClause(
"where t.description = :value");
64 wc.addNamedValue(
"value", value);
65 return getDao().getResultList(BusinessRelation.class, wc);
◆ getPossibles()
List<String> org.turro.occurrence.RelationOccurrenceAPI.getPossibles |
( |
String |
value | ) |
|
Definition at line 41 of file RelationOccurrenceAPI.java.
42 WhereClause wc =
new WhereClause();
43 wc.addClause(
"select distinct t.description from BusinessRelation t");
44 wc.setPrefix(
"where");
45 wc.addLikeFields(
new String[] {
"t.description" }, value);
46 return getDao().getResultList(String.class, wc);
◆ getValue()
String org.turro.occurrence.RelationOccurrenceAPI.getValue |
( |
BusinessRelation |
value | ) |
|
|
protected |
◆ removeOccurrences()
void org.turro.occurrence.RelationOccurrenceAPI.removeOccurrences |
( |
| ) |
|
Definition at line 50 of file RelationOccurrenceAPI.java.
51 try(DaoTransaction transaction =
new DaoTransaction(
getDao())) {
52 for(BusinessRelation e :
getList()) {
53 e.setDescription(
null);
54 transaction.saveObject(e);
◆ setValue()
void org.turro.occurrence.RelationOccurrenceAPI.setValue |
( |
BusinessRelation |
value, |
|
|
String |
newValue |
|
) |
| |
|
protected |
The documentation for this class was generated from the following file: