Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PaymentManagerImpl implements PaymentManager {
- private Connection conn;
- private static final Logger logger = Logger.getLogger(
- PaymentManagerImpl.class.getName());
- public PaymentManagerImpl() {
- try {
- conn = Database1.getConnection("jdbc:mysql://localhost:3306/pv_168", "root", "");
- } catch (SQLException ex) {
- logger.log(Level.SEVERE, "Error when connecting to DB", ex);
- throw new RuntimeException("Error when connecting to DB", ex);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement