public class QueryAdmin extends AbstractManagedObject implements JdbcQueryMXBean
Constructor and Description |
---|
QueryAdmin(DBPool pool) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
The JMX name property of the mbean.
|
java.lang.String |
getUrl() |
JdbcTableColumn[] |
listColumns(java.lang.String table) |
java.lang.String[] |
listTables() |
JdbcQueryResult |
query(java.lang.String sql) |
java.lang.String |
toString() |
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public QueryAdmin(DBPool pool)
public java.lang.String getUrl()
getUrl
in interface JdbcQueryMXBean
public JdbcQueryResult query(java.lang.String sql) throws java.sql.SQLException
query
in interface JdbcQueryMXBean
java.sql.SQLException
public java.lang.String[] listTables() throws java.sql.SQLException
listTables
in interface JdbcQueryMXBean
java.sql.SQLException
public JdbcTableColumn[] listColumns(java.lang.String table) throws java.sql.SQLException
listColumns
in interface JdbcQueryMXBean
java.sql.SQLException
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public java.lang.String toString()
toString
in class AbstractManagedObject