Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ebean.execute(new TxRunnable() {
- @Override
- public void run() {
- for (TeamRankTable table : teamRankTables) {
- if (table.createdOrEditBy != null
- && table.createdOrEditBy.equals(SYSTEM_FLAG)) {
- table.delete();
- }
- }
- for (PersonTable table : personTables) {
- if (table.createdOrEditBy != null
- && table.createdOrEditBy.equals(SYSTEM_FLAG)) {
- table.delete();
- }
- }
- for (MatchTable table : matchTables) {
- if (table.createdOrEditBy != null
- && table.createdOrEditBy.equals(SYSTEM_FLAG)) {
- table.delete();
- }
- }
- for (PersonParticipationTable table : personParticipationTables) {
- if (table.createdOrEditBy != null
- && table.createdOrEditBy.equals(SYSTEM_FLAG)) {
- table.delete();
- }
- }
- Ebean.createSqlUpdate(
- "DELETE FROM TEAM_RANK_TUPLE WHERE ID = ID").execute();
- Ebean.createSqlUpdate("DELETE FROM PERSON_TUPLE WHERE ID = ID")
- .execute();
- Ebean.createSqlUpdate(
- "DELETE FROM PERSON_PARTICIPATION_TUPLE WHERE ID = ID")
- .execute();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement