com.jfw.status
Class DBMetadata

java.lang.Object
  extended by com.jfw.status.DBMetadata

public final class DBMetadata
extends java.lang.Object

Offer common methods for get database metadata.


Constructor Summary
DBMetadata()
           
 
Method Summary
static java.lang.String getCatalogs(javax.servlet.http.HttpServletRequest request, java.util.HashMap outputData, java.lang.String poolName)
          Get the data of the database catalogs.
static java.lang.String getObjects(javax.servlet.http.HttpServletRequest request, java.util.HashMap outputData, java.lang.String poolName, java.lang.String catalogName, java.lang.String schemaName)
          Get the objects of a particular type.
static java.lang.String getPools(javax.servlet.http.HttpServletRequest request, java.util.HashMap outputData)
          Get the data of the connection pools.
static java.lang.String getSchemas(javax.servlet.http.HttpServletRequest request, java.util.HashMap outputData, java.lang.String poolName)
          Get the data of the database schemas.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBMetadata

public DBMetadata()
Method Detail

getPools

public static java.lang.String getPools(javax.servlet.http.HttpServletRequest request,
                                        java.util.HashMap outputData)
Get the data of the connection pools.

Parameters:
request - an HttpServletRequest object.
outputData - the output data.
Returns:
the name of the pool send by the browser or the default pool name if no pool name send.

getCatalogs

public static java.lang.String getCatalogs(javax.servlet.http.HttpServletRequest request,
                                           java.util.HashMap outputData,
                                           java.lang.String poolName)
                                    throws java.lang.Exception
Get the data of the database catalogs.

Parameters:
request - an HttpServletRequest object.
outputData - the output data.
poolName - the name of the pool.
Returns:
the name of the catalog send by the browser or the default catalog name if no catalog name send.
Throws:
java.lang.Exception

getSchemas

public static java.lang.String getSchemas(javax.servlet.http.HttpServletRequest request,
                                          java.util.HashMap outputData,
                                          java.lang.String poolName)
                                   throws java.lang.Exception
Get the data of the database schemas.

Parameters:
request - an HttpServletRequest object.
outputData - the output data.
poolName - the name of the pool.
Returns:
the name of the schema send by the browser or the default schema name if no schema name send.
Throws:
java.lang.Exception

getObjects

public static java.lang.String getObjects(javax.servlet.http.HttpServletRequest request,
                                          java.util.HashMap outputData,
                                          java.lang.String poolName,
                                          java.lang.String catalogName,
                                          java.lang.String schemaName)
                                   throws java.lang.Exception
Get the objects of a particular type.

Parameters:
request - an HttpServletRequest object.
outputData - the output data.
poolName - the name of the pool.
catalogName - the name of the catalog.
schemaName - the name of the schema.
Returns:
the name of the object type send by the browser or the default object type if no object type send.
Throws:
java.lang.Exception