Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. package com.helmo.othello.tools;
  2.  
  3. import com.helmo.othello.data.TournamentDataSource;
  4.  
  5. public class TournamentCleaner {
  6. public static void main(String[] args) {
  7. TournamentDataSource source = new TournamentDataSource();
  8. String requete = "DELETE FROM InternalGames; DELETE FROM LeafGames; DELETE FROM Games";
  9. source.connect();
  10. int test = source.getSession().executeUpdate(requete);
  11. System.err.println(source.getSession().getLastError());
  12. source.disconnect();
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement