Class JDBCConnection

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    @Dependent
    public class JDBCConnection
    extends Object
    implements Closeable
    Connection container with configuration
    Author:
    balazs.joo
    • Constructor Detail

      • JDBCConnection

        public JDBCConnection()
    • Method Detail

      • getConnection

        public Connection getConnection()
                                 throws hu.icellmobilsoft.coffee.dto.exception.BaseException
        Creates connection, using given configuration
        Returns:
        JDBC connection
        Throws:
        hu.icellmobilsoft.coffee.dto.exception.BaseException - exception
      • isClosed

        public boolean isClosed()
        Check connection is closed
        Returns:
        true if connection is null, closed or error by checking