com.jfw.database.metadata
Class Schemas

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

public final class Schemas
extends MetaData

Get the database schemas.


Field Summary
 
Fields inherited from class com.jfw.database.metadata.MetaData
className, resourceName, TABLE, VIEW
 
Constructor Summary
Schemas()
          Use the default db resource from the jfw.properties.
Schemas(java.lang.String resourceName)
          Use the parameter resourceName as db resource.
 
Method Summary
 java.util.ArrayList get()
          Gets the database schemas.
 java.lang.String getDefault()
          Return the default schema 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

Schemas

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


Schemas

public Schemas(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 schemas.

Returns:
list of the database schemas.
Throws:
DatabaseException

getDefault

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

Returns:
the default schema 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.