Package org.pjdbc.drivers
Class CatDriver
java.lang.Object
org.pjdbc.sql.AbstractDriver
org.pjdbc.sql.AbstractProxyDriver
org.pjdbc.drivers.CatDriver
- All Implemented Interfaces:
Driver
@DriverCapability(prefix="cat",
description="Pass-through driver that forwards all calls unchanged",
capabilities="passthrough")
public class CatDriver
extends AbstractProxyDriver
Pass-through driver that forwards all calls unchanged to the target driver.
CatDriver is the simplest PJDBC driver - it does nothing but delegate to the wrapped driver. It serves as:
- A template for creating new drivers
- A base for composition when you only need other drivers' behaviors
- A testing aid to verify proxy infrastructure works correctly
URL format: jdbc:cat:jdbc:target:...
Example:
jdbc:cat:jdbc:postgresql://localhost/mydb
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.pjdbc.sql.AbstractProxyDriver
acceptsSubName, connect, getPropertyInfo, isCompositionValidationEnabled, isValidateParametersEnabled, proxyCallableStatement, proxyCallableStatement, proxyConnection, proxyConnection, proxyConnection, proxyPreparedStatement, proxyPreparedStatement, proxyResultSet, proxyStatementMethods inherited from class org.pjdbc.sql.AbstractDriver
acceptsProtocol, acceptsURL, getMajorVersion, getMinorVersion, getParentLogger, getUrlParameter, getUrlParameter, getUrlParameters, jdbcCompliant, parseUrl, protocol, subname, subprotocol, validateParameters
-
Constructor Details
-
CatDriver
public CatDriver()
-
-
Method Details
-
acceptsSubProtocol
- Specified by:
acceptsSubProtocolin classAbstractDriver
-