Class AbstractJdbcConnector
java.lang.Object
org.pgcodekeeper.core.database.base.jdbc.AbstractJdbcConnector
- Direct Known Subclasses:
ChJdbcConnector,MsJdbcConnector,PgJdbcConnector
Abstract base class for JDBC database connectors.
Provides common functionality for establishing database connections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns batch delimiter.Creates a new database connection using the parameters specified in the constructor.
-
Constructor Details
-
AbstractJdbcConnector
public AbstractJdbcConnector()
-
-
Method Details
-
getConnection
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
Returns batch delimiter. If the value is null, each statement will be executed separately in autocommit mode.- Returns:
- batch delimiter
-