play.db
Class DBPlugin.ProxyDriver

java.lang.Object
  extended by play.db.DBPlugin.ProxyDriver
All Implemented Interfaces:
Driver
Enclosing class:
DBPlugin

public static class DBPlugin.ProxyDriver
extends Object
implements Driver

Needed because DriverManager will not load a driver ouside of the system classloader


Method Summary
 boolean acceptsURL(String u)
           
 Connection connect(String u, Properties p)
           
 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
 

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


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly