com.jfw.database.metadata
Class MetaData

java.lang.Object
  extended by com.jfw.database.metadata.MetaData
Direct Known Subclasses:
Catalogs, Schemas, TablesViews

public abstract class MetaData
extends java.lang.Object

Offers common constructors and methods for the classes of this package.


Field Summary
protected  java.lang.String className
          Used for logging.
protected  java.lang.String resourceName
          The logical name of a database resource.
static java.lang.String TABLE
          Database object of type table.
static java.lang.String VIEW
          Database object of type view.
 
Constructor Summary
MetaData()
          Use the default db resource from the jfw.properties.
MetaData(java.lang.String resourceName)
          Use the parameter resourceName as db resource.
 
Method Summary
protected abstract  java.lang.String[] getType()
          Return the type of the object to get.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

protected java.lang.String className
Used for logging.


resourceName

protected java.lang.String resourceName
The logical name of a database resource. Set it in the relative constructor.


TABLE

public static final java.lang.String TABLE
Database object of type table.

See Also:
Constant Field Values

VIEW

public static final java.lang.String VIEW
Database object of type view.

See Also:
Constant Field Values
Constructor Detail

MetaData

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


MetaData

public MetaData(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

getType

protected abstract java.lang.String[] getType()
Return the type of the object to get.

Returns:
the type of the object to get.