- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 42 of file AxCategory.java.
◆ entityId()
Object org.turro.alliance.db.entities.AxCategory.entityId |
( |
| ) |
|
◆ fromJson()
static AxCategory org.turro.alliance.db.entities.AxCategory.fromJson |
( |
JsonValue |
value | ) |
|
|
static |
Definition at line 141 of file AxCategory.java.
142 return IJSONizable.fromJson(value.toString(), AxCategory.class);
◆ getCategoryId()
Long org.turro.alliance.db.entities.AxCategory.getCategoryId |
( |
| ) |
|
◆ getName()
String org.turro.alliance.db.entities.AxCategory.getName |
( |
| ) |
|
◆ getParent()
AxCategory org.turro.alliance.db.entities.AxCategory.getParent |
( |
| ) |
|
◆ getPathName()
String org.turro.alliance.db.entities.AxCategory.getPathName |
( |
| ) |
|
Definition at line 88 of file AxCategory.java.
89 if(pathName ==
null) {
91 StringBuilder sb =
new StringBuilder(
getName());
92 while(current !=
null) {
93 sb.insert(0, Chars.forward().spaced().toString())
94 .insert(0, current.getName());
95 current = current.getParent();
97 pathName = sb.toString();
◆ getUniquePath()
String org.turro.alliance.db.entities.AxCategory.getUniquePath |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.alliance.db.entities.AxCategory.isEmpty |
( |
| ) |
|
◆ prepareSave()
void org.turro.alliance.db.entities.AxCategory.prepareSave |
( |
| ) |
|
Implements org.turro.jpa.entity.IDaoEntity.
Definition at line 119 of file AxCategory.java.
120 IDaoEntity.super.prepareSave();
121 if(Zero.orNull(categoryId)) {
122 categoryId = IdUtils.getNewLongIdFromLong(
new AlliancePU(),
"AxCategory",
"categoryId");
124 uniquePath = UniquePath.getPath(
this, c -> Long.toString(c.getCategoryId()), c -> c.getParent());
125 if(Strings.isBlank(uniquePath)) parent =
null;
◆ setCategoryId()
void org.turro.alliance.db.entities.AxCategory.setCategoryId |
( |
Long |
categoryId | ) |
|
◆ setName()
void org.turro.alliance.db.entities.AxCategory.setName |
( |
String |
name | ) |
|
◆ setParent()
void org.turro.alliance.db.entities.AxCategory.setParent |
( |
AxCategory |
parent | ) |
|
◆ setPathName()
void org.turro.alliance.db.entities.AxCategory.setPathName |
( |
String |
pathName | ) |
|
◆ setUniquePath()
void org.turro.alliance.db.entities.AxCategory.setUniquePath |
( |
String |
uniquePath | ) |
|
◆ toJson() [1/2]
String org.turro.alliance.db.entities.AxCategory.toJson |
( |
| ) |
|
◆ toJson() [2/2]
String org.turro.alliance.db.entities.AxCategory.toJson |
( |
Map< String, Object > |
properties | ) |
|
The documentation for this class was generated from the following file: