|
|||||||||
| 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.util.XMLBasicReader
org.mmbase.util.xml.DatabaseReader
Used to parse and retrieve data from a database configuration file. The parser support databases for database dtd 1.2.
| Field Summary | |
static java.lang.String |
DTD_DATABASE
DTD resource filename of the most Database DTD |
static java.lang.String |
DTD_DATABASE_1_0
DTD resource filename of the Database DTD version 1.0 |
static java.lang.String |
DTD_DATABASE_1_1
DTD resource filename of the Database DTD version 1.1 |
static java.lang.String |
DTD_DATABASE_1_2
DTD resource filename of the Database DTD version 1.2 |
static java.lang.String |
PUBLIC_ID_DATABASE
Public ID of the most recent Database DTD |
static java.lang.String |
PUBLIC_ID_DATABASE_1_0
Public ID of the Database DTD version 1.0 |
static java.lang.String |
PUBLIC_ID_DATABASE_1_1
Public ID of the Database DTD version 1.1 |
static java.lang.String |
PUBLIC_ID_DATABASE_1_2
Public ID of the Database DTD version 1.2 |
| 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 | |
DatabaseReader(org.xml.sax.InputSource source)
Constructor. |
|
DatabaseReader(java.lang.String path)
Constructor |
|
| Method Summary | |
java.lang.String |
getBlobDataDir()
Retrieves the file path where binary objects are to be stored. |
java.util.List |
getChainedSqlHandlers()
Returns names of the chained handlers to use, these are classes extending ChainedSqlHandler. |
java.lang.String |
getCreateExtendedScheme()
Retrieves the create scheme for extending tables. |
java.lang.String |
getCreateScheme()
Retrieves the create scheme |
java.util.Hashtable |
getDisallowedFields()
Retrieve a map of fieldnames that are disallowed (i.e reserved words) for this database. |
java.lang.String |
getForeignKeyScheme()
Retrieves the foreign key scheme. |
java.lang.String |
getKeyScheme()
Retrieves the key scheme. |
int |
getMaxDropSize()
Get the max drop size for this database. |
java.lang.String |
getMMBaseDatabaseDriver()
Returns the mmbase database driver class for this database. |
java.lang.String |
getName()
Returns the name of the database. |
java.lang.String |
getNotNullScheme()
Retrieves the not null scheme. |
java.lang.String |
getPrimaryKeyScheme()
Retrieves the primary key scheme. |
java.lang.String |
getSqlHandler()
Returns the sql handler class to be used, this is a class implementing the SqlHandler interface. |
java.util.Hashtable |
getTypeMapping()
Obtains the type map. |
static void |
registerPublicIDs()
Register the Public Ids for DTDs used by DatabaseReader This method is called by XMLEntityResolver. |
| Methods inherited from class org.mmbase.util.XMLBasicReader |
getChildElements, getChildElements, getChildElements, getChildElements, getDocumentBuilder, getDocumentBuilder, getDocumentBuilder, getDocumentBuilder, getDocumentBuilder, getDocumentBuilder, getElementAttributeValue, getElementAttributeValue, getElementByPath, getElementByPath, getElementName, getElementValue, getElementValue |
| Methods inherited from class org.mmbase.util.xml.DocumentReader |
getFileName, getNodeTextValue, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PUBLIC_ID_DATABASE_1_0
public static final java.lang.String PUBLIC_ID_DATABASE_1_1
public static final java.lang.String PUBLIC_ID_DATABASE_1_2
public static final java.lang.String DTD_DATABASE_1_0
public static final java.lang.String DTD_DATABASE_1_1
public static final java.lang.String DTD_DATABASE_1_2
public static final java.lang.String PUBLIC_ID_DATABASE
public static final java.lang.String DTD_DATABASE
| Constructor Detail |
public DatabaseReader(java.lang.String path)
path - the filenamepublic DatabaseReader(org.xml.sax.InputSource source)
source - Inputsource to the xml document.| Method Detail |
public static void registerPublicIDs()
public java.lang.String getName()
public java.lang.String getMMBaseDatabaseDriver()
public java.lang.String getSqlHandler()
SqlHandler interface.
public java.util.List getChainedSqlHandlers()
ChainedSqlHandler.
public java.lang.String getBlobDataDir()
public int getMaxDropSize()
public java.util.Hashtable getDisallowedFields()
public java.lang.String getCreateScheme()
public java.lang.String getCreateExtendedScheme()
public java.lang.String getPrimaryKeyScheme()
public java.lang.String getForeignKeyScheme()
public java.lang.String getKeyScheme()
public java.lang.String getNotNullScheme()
public java.util.Hashtable getTypeMapping()
FieldDefs.The value are dTypeInfos objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||