- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file TagMigration.java.
◆ clean()
static void org.turro.tags.TagMigration.clean |
( |
| ) |
|
|
static |
Definition at line 40 of file TagMigration.java.
41 WhereClause wc =
new WhereClause();
42 wc.addClause(
"delete from Tag");
43 wc.addClause(
"where entityPath like '%/null'");
44 new ElephantPU().executeUpdate(wc);
◆ migrate()
static void org.turro.tags.TagMigration.migrate |
( |
| ) |
|
|
static |
Definition at line 47 of file TagMigration.java.
48 TagMigration migration =
new TagMigration(Dao.getDaoByPU(
"contactsPU"));
49 if(migration.isNecessary())
new Thread(migration,
"ElephantTag migration").start();
◆ run()
void org.turro.tags.TagMigration.run |
( |
| ) |
|
Definition at line 76 of file TagMigration.java.
77 if(!LOCK.isLocked()) {
79 if(LOCK.tryLock(0, TimeUnit.SECONDS)) {
88 }
catch (InterruptedException ex) {
89 Logger.getLogger(TagMigration.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
The documentation for this class was generated from the following file: