org.enableit.db.darrt
Class MetaDataFactory
java.lang.Object
|
+--org.enableit.db.darrt.AbstractFileHandler
|
+--org.enableit.db.darrt.MetaDataFactory
- public class MetaDataFactory
- extends AbstractFileHandler
Factory for DBMS table meta data.
- Author:
- Tim Stephenson
Field Summary |
static java.lang.String |
ABOUT
CVS info ABOUT this class and its current version |
Method Summary |
static org.enableit.db.darrt.MetaDataFactory |
getInstance()
|
org.enableit.db.beans.Database |
getMetaData(org.enableit.db.beans.Provider provider)
|
org.enableit.db.beans.Database |
getMetaData(org.enableit.db.beans.Provider provider,
boolean refresh)
|
org.enableit.db.beans.Table |
getMetaData(org.enableit.db.beans.Provider provider,
java.lang.String tableName)
|
protected void |
setMetaData(org.enableit.db.beans.Provider provider,
org.enableit.db.beans.Database db)
Allows an external class to specify meta-data rather than forcing it to
be detected from an active connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ABOUT
public static final java.lang.String ABOUT
- CVS info ABOUT this class and its current version
- See Also:
- Constant Field Values
getInstance
public static org.enableit.db.darrt.MetaDataFactory getInstance()
getMetaData
public org.enableit.db.beans.Database getMetaData(org.enableit.db.beans.Provider provider)
throws DBException
- Parameters:
provider
- Information ABOUT how to obtain connection
to the database.
- Returns:
- Table instance describing the table, never null.
- Throws:
DBException
- If meta data cannot be obtained.
getMetaData
public org.enableit.db.beans.Database getMetaData(org.enableit.db.beans.Provider provider,
boolean refresh)
throws DBException
- Parameters:
provider
- Information ABOUT how to obtain connection
to the database.refresh
- Should cache be refreshed?
- Returns:
- Table instance describing the table, never null.
- Throws:
DBException
- If meta data cannot be obtained.
getMetaData
public org.enableit.db.beans.Table getMetaData(org.enableit.db.beans.Provider provider,
java.lang.String tableName)
throws DBException
- Parameters:
provider
- Information ABOUT how to obtain connection
to the database.tableName
- Name of table whose metadata is sought.
- Returns:
- Table instance describing the table, never null.
- Throws:
DBException
- If meta data cannot be obtained.
setMetaData
protected void setMetaData(org.enableit.db.beans.Provider provider,
org.enableit.db.beans.Database db)
- Allows an external class to specify meta-data rather than forcing it to
be detected from an active connection.
Implementation Note:
The requirement for this method comes from
DarHandler
, as it seems
JDBC meta data is not available immediately. Not sure why this is since
the schema creation connection has been closed.
- Parameters:
provider
- db
-
Copyright © 1999-2004 enableIT.org. All Rights Reserved.