- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 33 of file UniquePath.java.
◆ normalizeUniquePaths() [1/5]
static void org.turro.forum.db.UniquePath.normalizeUniquePaths |
( |
| ) |
|
|
static |
Definition at line 59 of file UniquePath.java.
60 Dao dao =
new ElephantPU();
61 Dao execute =
new ElephantPU();
62 JpaCriteria criteria =
new JpaCriteria(dao);
63 JpaQuery<Topic> jqc = criteria.query(Topic.class);
64 dao.getResultList(jqc.select()).forEach((topic) -> {
static void normalizeUniquePaths()
◆ normalizeUniquePaths() [2/5]
static void org.turro.forum.db.UniquePath.normalizeUniquePaths |
( |
Post |
post | ) |
|
|
static |
◆ normalizeUniquePaths() [3/5]
static void org.turro.forum.db.UniquePath.normalizeUniquePaths |
( |
Post |
post, |
|
|
final JpaCriteria |
criteria, |
|
|
Dao |
dao, |
|
|
Dao |
execute |
|
) |
| |
|
static |
Definition at line 52 of file UniquePath.java.
53 JpaCriteriaUpdate<Post> jud = criteria.createCriteriaUpdate(Post.class);
54 execute.executeUpdate(jud.set(
"uniquePath", post.getCurrentParent().getUniquePath() + ElephantPU.getObjectPath(post))
55 .where(criteria.equal(jud.field(
"id"), post.getId())));
◆ normalizeUniquePaths() [4/5]
static void org.turro.forum.db.UniquePath.normalizeUniquePaths |
( |
Topic |
topic | ) |
|
|
static |
◆ normalizeUniquePaths() [5/5]
static void org.turro.forum.db.UniquePath.normalizeUniquePaths |
( |
Topic |
topic, |
|
|
final JpaCriteria |
criteria, |
|
|
Dao |
dao, |
|
|
Dao |
execute |
|
) |
| |
|
static |
Definition at line 45 of file UniquePath.java.
46 JpaCriteriaUpdate<Topic> jud = criteria.createCriteriaUpdate(Topic.class);
47 execute.executeUpdate(jud.set(
"uniquePath", topic.getEntityPath() + ElephantPU.getObjectPath(topic))
48 .where(criteria.equal(jud.field(
"id"), topic.getId())));
The documentation for this class was generated from the following file: