|
static Collection< Grouped > | groups (Object entity, String category) |
|
static Collection< Grouped > | groups (String path, String category) |
|
static Collection< Grouped > | groups (Object entity) |
|
static Collection< Grouped > | groups (String path) |
|
static Collection< String > | paths (String path, String selectedGroup, String selectedCategory, boolean exact) |
|
static Collection< String > | pathsFromCategory (String path, String category) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 41 of file Grouped.java.
◆ getCategory()
String org.turro.contacts.Grouped.getCategory |
( |
| ) |
|
Definition at line 82 of file Grouped.java.
83 if(category ==
null && parent !=
null) {
◆ getId()
String org.turro.contacts.Grouped.getId |
( |
| ) |
|
◆ getParent()
GroupIt org.turro.contacts.Grouped.getParent |
( |
| ) |
|
◆ getPath()
String org.turro.contacts.Grouped.getPath |
( |
| ) |
|
◆ groups() [1/4]
static Collection<Grouped> org.turro.contacts.Grouped.groups |
( |
Object |
entity | ) |
|
|
static |
Definition at line 117 of file Grouped.java.
118 String path = Entities.getController(entity).getPath();
122 return new ArrayList<>();
◆ groups() [2/4]
static Collection<Grouped> org.turro.contacts.Grouped.groups |
( |
Object |
entity, |
|
|
String |
category |
|
) |
| |
|
static |
Definition at line 98 of file Grouped.java.
99 String path = Entities.getController(entity).getPath();
101 return groups(path, category);
103 return new ArrayList<>();
◆ groups() [3/4]
static Collection<Grouped> org.turro.contacts.Grouped.groups |
( |
String |
path | ) |
|
|
static |
Definition at line 125 of file Grouped.java.
126 Dao dao =
new ContactsPU();
127 return dao.getResultList(
128 " select g from Grouped g " +
129 " where g.path = ? " +
130 " order by g.parent.category, g.parent.name ",
131 new Object[] { path }
◆ groups() [4/4]
static Collection<Grouped> org.turro.contacts.Grouped.groups |
( |
String |
path, |
|
|
String |
category |
|
) |
| |
|
static |
Definition at line 106 of file Grouped.java.
107 Dao dao =
new ContactsPU();
108 return dao.getResultList(
109 " select g from Grouped g " +
110 " where g.parent.category = ? " +
112 " order by g.parent.category, g.parent.name ",
113 new Object[] { category, path }
◆ isValid()
boolean org.turro.contacts.Grouped.isValid |
( |
| ) |
|
Definition at line 93 of file Grouped.java.
94 return parent !=
null &&
95 !Strings.isBlank(path);
◆ paths()
static Collection<String> org.turro.contacts.Grouped.paths |
( |
String |
path, |
|
|
String |
selectedGroup, |
|
|
String |
selectedCategory, |
|
|
boolean |
exact |
|
) |
| |
|
static |
Definition at line 135 of file Grouped.java.
136 Dao dao =
new ContactsPU();
137 WhereClause wc =
new WhereClause();
138 wc.addClause(
"select g.path from Grouped g");
139 wc.addClause(
"where g.path like :path");
140 wc.addNamedValue(
"path", path +
"/%");
141 if(Strings.isBlank(selectedGroup)) {
145 wc.addClause(
"and g.parent.pathName = :pathName01");
146 wc.addNamedValue(
"pathName01", selectedGroup);
148 wc.addClause(
"and (g.parent.pathName = :pathName01 or g.parent.pathName like :pathName02)");
149 wc.addNamedValue(
"pathName01", selectedGroup);
150 wc.addNamedValue(
"pathName02", selectedGroup +
"%");
152 wc.addClause(
"and g.parent.category = :category");
153 wc.addNamedValue(
"category", selectedCategory);
154 return dao.getResultList(wc);
◆ pathsFromCategory()
static Collection<String> org.turro.contacts.Grouped.pathsFromCategory |
( |
String |
path, |
|
|
String |
category |
|
) |
| |
|
static |
Definition at line 157 of file Grouped.java.
158 Dao dao =
new ContactsPU();
159 return dao.getResultList(
160 " select g.path from Grouped g " +
161 " where g.path like ? " +
162 " and g.parent.category = ?",
163 new Object[] { path +
"/%", category }
◆ setCategory()
void org.turro.contacts.Grouped.setCategory |
( |
String |
category | ) |
|
Definition at line 89 of file Grouped.java.
90 this.category = category;
◆ setId()
void org.turro.contacts.Grouped.setId |
( |
String |
id | ) |
|
◆ setParent()
void org.turro.contacts.Grouped.setParent |
( |
GroupIt |
parent | ) |
|
◆ setPath()
void org.turro.contacts.Grouped.setPath |
( |
String |
path | ) |
|
The documentation for this class was generated from the following file: