| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object | +--com.imaginary.sql.msql.MsqlDriver
| Constructor Summary | |
| MsqlDriver()
Constructs an MsqlDriver instance. |
|
| Method Summary | |
| boolean | acceptsURL(java.lang.String url)
Returns true if the driver thinks that it can open a connection to the given URL. In this case, true is returned if and only if the subprotocol is 'msql'. |
| java.sql.Connection | connect(java.lang.String url,
java.util.Properties p)
Takes a look at the given URL to see if it is meant for this driver. |
| int | getMajorVersion()
Gives the major version for this driver as required by the JDBC specification. |
| int | getMinorVersion()
Gives the minor version for this driver as required by the JDBC specification. |
| java.sql.DriverPropertyInfo[] | getPropertyInfo(java.lang.String url,
java.util.Properties info)
The getPropertyInfo method is intended to allow a generic GUI tool to discover what properties it should prompt a human for in order to get enough information to connect to a database. |
| boolean | jdbcCompliant()
|
| Methods inherited from class java.lang.Object | |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait | |
| Constructor Detail |
public MsqlDriver()
throws java.sql.SQLException
| Method Detail |
public boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
url
- The URL of the database.
public java.sql.Connection connect(java.lang.String url,
java.util.Properties p)
throws java.sql.SQLException
jdbc:msql://[host_addr]:[port]/[db_name]
url
- the URL for the database in question
p
- the properties objectpublic int getMajorVersion()
public int getMinorVersion()
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
url
- The URL of the database to connect to.
info
- A proposed list of tag/value pairs that will be sent on
connect open.public boolean jdbcCompliant()
| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||