|
static void | addInTouch (InTouch inTouch) |
|
static void | addInTouch (Object entity, String name, Date control, Contact contact, Address address, String description) |
|
static void | addInTouch (String path, String name, Date control, Contact contact, Address address, String description) |
|
static void | removeInTouch (Object entity, String name) |
|
static void | removeInTouch (String path, String name) |
|
static void | removeInTouch (InTouch inTouch) |
|
static void | removeInTouchs (Object entity) |
|
static void | removeInTouchs (String path) |
|
static Collection< InTouch > | inTouch (Object entity) |
|
static Collection< InTouch > | inTouch (String path) |
|
static Collection< String > | inTouchChoices (Object entity) |
|
static Collection< String > | inTouchChoices (String path) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file InTouchUtil.java.
◆ addInTouch() [1/3]
static void org.turro.intouch.InTouchUtil.addInTouch |
( |
InTouch |
inTouch | ) |
|
|
static |
Definition at line 38 of file InTouchUtil.java.
40 Dao dao =
new ContactsPU();
static Collection< InTouch > inTouch(Object entity)
◆ addInTouch() [2/3]
static void org.turro.intouch.InTouchUtil.addInTouch |
( |
Object |
entity, |
|
|
String |
name, |
|
|
Date |
control, |
|
|
Contact |
contact, |
|
|
Address |
address, |
|
|
String |
description |
|
) |
| |
|
static |
Definition at line 45 of file InTouchUtil.java.
47 String path = Entities.getController(entity).getPath();
49 addInTouch(path, name, control, contact, address, description);
static void addInTouch(InTouch inTouch)
◆ addInTouch() [3/3]
static void org.turro.intouch.InTouchUtil.addInTouch |
( |
String |
path, |
|
|
String |
name, |
|
|
Date |
control, |
|
|
Contact |
contact, |
|
|
Address |
address, |
|
|
String |
description |
|
) |
| |
|
static |
Definition at line 53 of file InTouchUtil.java.
55 if(!Strings.isBlank(path)) {
57 Dao dao =
new ContactsPU();
58 InTouch
inTouch =
new InTouch();
64 inTouch.setDescription(description);
static void removeInTouch(Object entity, String name)
◆ inTouch() [1/2]
static Collection<InTouch> org.turro.intouch.InTouchUtil.inTouch |
( |
Object |
entity | ) |
|
|
static |
Definition at line 107 of file InTouchUtil.java.
108 String path = Entities.getController(entity).getPath();
112 return new ArrayList<InTouch>();
◆ inTouch() [2/2]
static Collection<InTouch> org.turro.intouch.InTouchUtil.inTouch |
( |
String |
path | ) |
|
|
static |
Definition at line 115 of file InTouchUtil.java.
116 Dao dao =
new ContactsPU();
117 return dao.getResultList(
118 " select it from InTouch as it " +
119 " where it.path = ? " +
120 " order by it.name ",
121 new Object[] { path }
◆ inTouchChoices() [1/2]
static Collection<String> org.turro.intouch.InTouchUtil.inTouchChoices |
( |
Object |
entity | ) |
|
|
static |
Definition at line 125 of file InTouchUtil.java.
126 String path = Entities.getController(entity).getPath();
130 return new ArrayList<String>();
static Collection< String > inTouchChoices(Object entity)
◆ inTouchChoices() [2/2]
static Collection<String> org.turro.intouch.InTouchUtil.inTouchChoices |
( |
String |
path | ) |
|
|
static |
Definition at line 133 of file InTouchUtil.java.
134 Dao dao =
new ContactsPU();
135 return dao.getResultList(
136 " select distinct name from InTouch " +
137 " where path <> ? " +
138 " order by it.name ",
139 new Object[] { path }
◆ removeInTouch() [1/3]
static void org.turro.intouch.InTouchUtil.removeInTouch |
( |
InTouch |
inTouch | ) |
|
|
static |
◆ removeInTouch() [2/3]
static void org.turro.intouch.InTouchUtil.removeInTouch |
( |
Object |
entity, |
|
|
String |
name |
|
) |
| |
|
static |
Definition at line 69 of file InTouchUtil.java.
70 String path = Entities.getController(entity).getPath();
◆ removeInTouch() [3/3]
static void org.turro.intouch.InTouchUtil.removeInTouch |
( |
String |
path, |
|
|
String |
name |
|
) |
| |
|
static |
Definition at line 76 of file InTouchUtil.java.
77 Dao dao =
new ContactsPU();
79 " delete from InTouch " +
82 new Object[] { path, name }
◆ removeInTouchs() [1/2]
static void org.turro.intouch.InTouchUtil.removeInTouchs |
( |
Object |
entity | ) |
|
|
static |
Definition at line 91 of file InTouchUtil.java.
92 String path = Entities.getController(entity).getPath();
static void removeInTouchs(Object entity)
◆ removeInTouchs() [2/2]
static void org.turro.intouch.InTouchUtil.removeInTouchs |
( |
String |
path | ) |
|
|
static |
Definition at line 98 of file InTouchUtil.java.
99 Dao dao =
new ContactsPU();
101 " delete from InTouch " +
103 new Object[] { path }
The documentation for this class was generated from the following file: