org.pojava.persistence.sql
Class DatabaseDriver

java.lang.Object
  extended by org.pojava.persistence.sql.DatabaseDriver
All Implemented Interfaces:
Driver

public class DatabaseDriver
extends Object
implements Driver

Used to register a dynamically loaded JDBC driver in the system class loader.


Constructor Summary
DatabaseDriver(Driver d)
           
 
Method Summary
 boolean acceptsURL(String u)
           
 Connection connect(String u, Properties p)
           
 Driver getDriver()
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 DriverPropertyInfo[] getPropertyInfo(String u, Properties p)
           
 boolean jdbcCompliant()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseDriver

public DatabaseDriver(Driver d)
Method Detail

acceptsURL

public boolean acceptsURL(String u)
                   throws SQLException
Specified by:
acceptsURL in interface Driver
Throws:
SQLException

connect

public Connection connect(String u,
                          Properties p)
                   throws SQLException
Specified by:
connect in interface Driver
Throws:
SQLException

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface Driver

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface Driver

getPropertyInfo

public DriverPropertyInfo[] getPropertyInfo(String u,
                                            Properties p)
                                     throws SQLException
Specified by:
getPropertyInfo in interface Driver
Throws:
SQLException

jdbcCompliant

public boolean jdbcCompliant()
Specified by:
jdbcCompliant in interface Driver

getDriver

public Driver getDriver()


Copyright © 2011. All Rights Reserved.