com.caucho.sql
Class QueryAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.sql.QueryAdmin
All Implemented Interfaces:
JdbcQueryMXBean, ManagedObjectMXBean

public class QueryAdmin
extends AbstractManagedObject
implements JdbcQueryMXBean


Constructor Summary
QueryAdmin(DBPool pool)
           
 
Method Summary
 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()
           
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getObjectName, getType
 

Constructor Detail

QueryAdmin

public QueryAdmin(DBPool pool)
Method Detail

getUrl

public java.lang.String getUrl()
Specified by:
getUrl in interface JdbcQueryMXBean

query

public JdbcQueryResult query(java.lang.String sql)
                      throws java.sql.SQLException
Specified by:
query in interface JdbcQueryMXBean
Throws:
java.sql.SQLException

listTables

public java.lang.String[] listTables()
                              throws java.sql.SQLException
Specified by:
listTables in interface JdbcQueryMXBean
Throws:
java.sql.SQLException

listColumns

public JdbcTableColumn[] listColumns(java.lang.String table)
                              throws java.sql.SQLException
Specified by:
listColumns in interface JdbcQueryMXBean
Throws:
java.sql.SQLException

getName

public java.lang.String getName()
Description copied from class: AbstractManagedObject
The JMX name property of the mbean.

Specified by:
getName in interface ManagedObjectMXBean
Specified by:
getName in class AbstractManagedObject

toString

public java.lang.String toString()
Overrides:
toString in class AbstractManagedObject