|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.util.xml.DocumentReader
org.mmbase.storage.implementation.database.DatabaseStorageLookup
public class DatabaseStorageLookup
Represents a xml document that can be used to determine the database configuration resource, based on a database's metadata.
| Field Summary | |
|---|---|
static String |
DTD_DATABASE_STORAGE_LOOKUP
DTD resource filename of the most Database DTD |
static String |
DTD_DATABASE_STORAGE_LOOKUP_1_0
DTD resource filename of the Database DTD version 1.0 |
static String |
PUBLIC_ID_DATABASE_STORAGE_LOOKUP
Public ID of the most recent Database DTD |
static String |
PUBLIC_ID_DATABASE_STORAGE_LOOKUP_1_0
Public ID of the Storage DTD version 1.0 |
| Fields inherited from class org.mmbase.util.xml.DocumentReader |
|---|
document, DTD_ERROR, DTD_ERROR_1_0, FILENOTFOUND, PUBLIC_ID_ERROR, PUBLIC_ID_ERROR_1_0 |
| Constructor Summary | |
|---|---|
DatabaseStorageLookup()
Constructor, accesses the storage lookup xml resource |
|
| Method Summary | |
|---|---|
(package private) String |
getMetaURL(Class clazz)
Returns an given connection URL for a given Driver CLass. |
(package private) String |
getResourcePath(DatabaseMetaData dmd)
Obtain an path to a database configuration resource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PUBLIC_ID_DATABASE_STORAGE_LOOKUP_1_0
public static final String DTD_DATABASE_STORAGE_LOOKUP_1_0
public static final String PUBLIC_ID_DATABASE_STORAGE_LOOKUP
public static final String DTD_DATABASE_STORAGE_LOOKUP
| Constructor Detail |
|---|
DatabaseStorageLookup()
| Method Detail |
|---|
String getResourcePath(DatabaseMetaData dmd)
throws SQLException,
StorageConfigurationException
dmd - the database meta data
null if it cannot be determined
SQLException
StorageConfigurationExceptionString getMetaURL(Class clazz)
null if no such
thing was defined in lookup.xml. In that case the configured URL in MMBase can be used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||