◆ addRelation()
static void org.turro.relpaths.RelatedPathsUtil.addRelation |
( |
String |
origin, |
|
|
String |
destination, |
|
|
String |
description |
|
) |
| |
|
static |
Definition at line 35 of file RelatedPathsUtil.java.
37 RelatedPaths rp =
new RelatedPaths();
39 rp.setDestination(destination);
40 rp.setDescription(description);
42 rp.setCreation(
new Date());
43 Dao dao =
new ContactsPU();
◆ destinations()
static List<RelatedPaths> org.turro.relpaths.RelatedPathsUtil.destinations |
( |
String |
path | ) |
|
|
static |
Definition at line 86 of file RelatedPathsUtil.java.
87 Dao dao =
new ContactsPU();
88 return (List<RelatedPaths>)dao.getResultList(
89 " select rp from RelatedPaths as rp" +
◆ existsPath()
static boolean org.turro.relpaths.RelatedPathsUtil.existsPath |
( |
String |
path | ) |
|
|
static |
Definition at line 77 of file RelatedPathsUtil.java.
78 Dao dao =
new ContactsPU();
79 return ((Long) dao.getSingleResult(
80 " select count(*) from RelatedPaths " +
81 " where origin = ? or destination = ?",
82 new Object[] { path, path }
◆ existsRelation()
static boolean org.turro.relpaths.RelatedPathsUtil.existsRelation |
( |
String |
origin, |
|
|
String |
destination |
|
) |
| |
|
static |
Definition at line 68 of file RelatedPathsUtil.java.
69 Dao dao =
new ContactsPU();
70 return ((Long) dao.getSingleResult(
71 " select count(*) from RelatedPaths " +
72 " where origin = ? and destination = ?",
73 new Object[] { origin, destination }
◆ origins()
static List<RelatedPaths> org.turro.relpaths.RelatedPathsUtil.origins |
( |
String |
path | ) |
|
|
static |
Definition at line 95 of file RelatedPathsUtil.java.
96 Dao dao =
new ContactsPU();
97 return (List<RelatedPaths>)dao.getResultList(
98 " select rp from RelatedPaths as rp" +
99 " where destination = ?",
100 new Object[] { path }
◆ removePath()
static void org.turro.relpaths.RelatedPathsUtil.removePath |
( |
String |
path | ) |
|
|
static |
Definition at line 59 of file RelatedPathsUtil.java.
60 Dao dao =
new ContactsPU();
62 " delete from RelatedPaths " +
63 " where origin = ? or destination = ?",
64 new Object[] { path, path }
◆ removeRelation()
static void org.turro.relpaths.RelatedPathsUtil.removeRelation |
( |
String |
origin, |
|
|
String |
destination |
|
) |
| |
|
static |
Definition at line 49 of file RelatedPathsUtil.java.
50 Dao dao =
new ContactsPU();
52 " delete from RelatedPaths " +
53 " where origin = ? " +
54 " and destination = ?",
55 new Object[] { origin, destination }
The documentation for this class was generated from the following file: