com.jfw.database.metadata
Class Catalogs

java.lang.Object
  extended by com.jfw.database.metadata.MetaData
      extended by com.jfw.database.metadata.Catalogs

public final class Catalogs
extends MetaData

Get the database catalogs.


Field Summary
 
Fields inherited from class com.jfw.database.metadata.MetaData
className, resourceName, TABLE, VIEW
 
Constructor Summary
Catalogs()
          Use the default db resource from the jfw.properties.
Catalogs(java.lang.String resourceName)
          Use the parameter resourceName as db resource.
 
Method Summary
 java.util.ArrayList get()
          Gets the database catalogs.
 java.lang.String getDefault()
          Return the default catalog name.
protected  java.lang.String[] getType()
          Return always null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Catalogs

public Catalogs()
Use the default db resource from the jfw.properties.


Catalogs

public Catalogs(java.lang.String resourceName)
Use the parameter resourceName as db resource.

Parameters:
resourceName - the name of a resource as specified in the jfw.properties.
Method Detail

get

public java.util.ArrayList get()
                        throws DatabaseException
Gets the database catalogs.

Returns:
list of the database catalogs.
Throws:
DatabaseException

getDefault

public java.lang.String getDefault()
Return the default catalog name.

Returns:
the default catalog name or null when a default name can not be found.

getType

protected java.lang.String[] getType()
Return always null.

Specified by:
getType in class MetaData
Returns:
lways null.