Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. package gwt.registration.server;
  2.  
  3. import java.sql.Connection;
  4. import java.sql.DriverManager;
  5. import java.sql.SQLException;
  6.  
  7. public class UserAdmin {
  8. private static Connection con = null;
  9. private final static String host = "asgard.swp2010.de";
  10. private final static String db = "db";
  11. private final static String user = "user";
  12. private final static String pw = "pw";
  13.  
  14. public UserAdmin() throws SQLException {
  15. if(con==null) {
  16. con = DriverManager.getConnection("jdbc:postgresql://"+host+"/"+db, user, pw);
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement