|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.MiniAdmin
public class MiniAdmin
Utility functions for admin functionality from Java.
Constructor Summary | |
---|---|
MiniAdmin(java.sql.Connection conn)
Create a new MiniAdmin using the given connection |
|
MiniAdmin(java.lang.String jdbcUrl)
Create a new MiniAdmin, connecting using the given JDBC URL. |
|
MiniAdmin(java.lang.String jdbcUrl,
java.util.Properties props)
Create a new MiniAdmin, connecting using the given JDBC URL and properties |
Method Summary | |
---|---|
void |
shutdown()
Shuts down the MySQL server at the other end of the connection that this MiniAdmin was created from/for. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MiniAdmin(java.sql.Connection conn) throws java.sql.SQLException
conn
- the existing connection to use.
java.sql.SQLException
- if an error occurspublic MiniAdmin(java.lang.String jdbcUrl) throws java.sql.SQLException
jdbcUrl
- the JDBC URL to use
java.sql.SQLException
- if an error occurspublic MiniAdmin(java.lang.String jdbcUrl, java.util.Properties props) throws java.sql.SQLException
jdbcUrl
- the JDBC URL to useprops
- the properties to use when connecting
java.sql.SQLException
- if an error occursMethod Detail |
---|
public void shutdown() throws java.sql.SQLException
java.sql.SQLException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |