Class AbstractJdbcConnector

java.lang.Object
org.pgcodekeeper.core.database.base.jdbc.AbstractJdbcConnector
Direct Known Subclasses:
ChJdbcConnector, MsJdbcConnector, PgJdbcConnector

public abstract class AbstractJdbcConnector extends Object
Abstract base class for JDBC database connectors. Provides common functionality for establishing database connections.
  • Constructor Details

    • AbstractJdbcConnector

      public AbstractJdbcConnector()
  • Method Details

    • getConnection

      public Connection getConnection() throws IOException
      Creates a new database connection using the parameters specified in the constructor. The caller is responsible for closing the connection.
      Returns:
      new database connection
      Throws:
      IOException - if the driver is not found or a database access error occurs
    • getBatchDelimiter

      public String getBatchDelimiter()
      Returns batch delimiter. If the value is null, each statement will be executed separately in autocommit mode.
      Returns:
      batch delimiter