Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. public class PaymentManagerImpl implements PaymentManager {
  2.  
  3.  
  4. private Connection conn;
  5. private static final Logger logger = Logger.getLogger(
  6. PaymentManagerImpl.class.getName());
  7.  
  8. public PaymentManagerImpl() {
  9. try {
  10. conn = Database1.getConnection("jdbc:mysql://localhost:3306/pv_168", "root", "");
  11.  
  12. } catch (SQLException ex) {
  13. logger.log(Level.SEVERE, "Error when connecting to DB", ex);
  14. throw new RuntimeException("Error when connecting to DB", ex);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement