ro.raducora.utils.jdbcr
Class Driver
java.lang.Object
|
+--ro.raducora.utils.jdbcr.Driver
- All Implemented Interfaces:
- java.sql.Driver
- public class Driver
- extends java.lang.Object
- implements java.sql.Driver
- Author:
- Radu
Created on 07.03.2004
|
Constructor Summary |
Driver()
This driver connects to the given database and makes replicas of all
operations in another database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Driver
public Driver()
throws java.sql.SQLException
- This driver connects to the given database and makes replicas of all
operations in another database. If the database name is "test", the name
of the replica will be "test_repl". The 2 databases must have identical
internal structure,username and password access but can have different
types.
- Throws:
java.sql.SQLException
connect
public java.sql.Connection connect(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
- Specified by:
connect in interface java.sql.Driver
java.sql.SQLException- See Also:
Driver.connect(java.lang.String, java.util.Properties)
acceptsURL
public boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
- Specified by:
acceptsURL in interface java.sql.Driver
java.sql.SQLException- See Also:
Driver.acceptsURL(java.lang.String)
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
- Specified by:
getPropertyInfo in interface java.sql.Driver
java.sql.SQLException- See Also:
Driver.getPropertyInfo(java.lang.String,
java.util.Properties)
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion in interface java.sql.Driver
- See Also:
Driver.getMajorVersion()
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion in interface java.sql.Driver
- See Also:
Driver.getMinorVersion()
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant in interface java.sql.Driver
- See Also:
Driver.jdbcCompliant()
© Copyright Radu Coravu 2002 - 2004.