net.sf.nxqd.xmldb
Class NxqdDatabase

java.lang.Object
  extended by net.sf.nxqd.NxqdConsumer
      extended by net.sf.nxqd.xmldb.NxqdDatabase
All Implemented Interfaces:
Configurable, Database

public class NxqdDatabase
extends NxqdConsumer
implements Database

The class NxqdDatabase is the Xml:DB driver for communicating with the Nxqd Apache module.

Version:
1.0
Author:
webhiker
See Also:
Database

Field Summary
static String NXQD_INTERNAL_SEP
           
static String NXQD_NAME
          The NXQD_NAME constant is used to construct a Xml:DB URI to connect to the Nxqd server.
static String NXQD_ROOT
           
 
Constructor Summary
NxqdDatabase()
          The a new NxqdDatabase constructor creates a new instance of this driver.
 
Method Summary
 boolean acceptsURI(String uri)
           
static String decodePath(String path)
           
static String encodePath(String path)
           
static String extractCollectionName(String uri)
          The extractCollectionName method will extract the Collection name from the uri parameter.
static String extractCollectionPath(String uri)
          The extractCollectionPath method will extract the Collection path from the uri parameter.
 Collection getCollection(String uri, String userName, String passWord)
           
 String getConformanceLevel()
           
 String getName()
           
 String getProperty(String name)
           
static String parseHost(String uri)
          The parseHost method will extract the host value from the uri parameter.
static String parsePort(String uri)
          The parseHost method will extract the port value from the uri parameter.
 void setProperty(String name, String value)
           
 
Methods inherited from class net.sf.nxqd.NxqdConsumer
getNxqdManager, setNxqdManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NXQD_NAME

public static final String NXQD_NAME
The NXQD_NAME constant is used to construct a Xml:DB URI to connect to the Nxqd server.

See Also:
Constant Field Values

NXQD_ROOT

public static final String NXQD_ROOT
See Also:
Constant Field Values

NXQD_INTERNAL_SEP

public static final String NXQD_INTERNAL_SEP
See Also:
Constant Field Values
Constructor Detail

NxqdDatabase

public NxqdDatabase()
The a new NxqdDatabase constructor creates a new instance of this driver.

Method Detail

getName

public final String getName()
                     throws XMLDBException
Specified by:
getName in interface Database
Throws:
XMLDBException
See Also:
Database.getName()

getCollection

public final Collection getCollection(String uri,
                                      String userName,
                                      String passWord)
                               throws XMLDBException
Specified by:
getCollection in interface Database
Throws:
XMLDBException
See Also:
Database.getCollection(java.lang.String, java.lang.String, java.lang.String)

acceptsURI

public final boolean acceptsURI(String uri)
                         throws XMLDBException
Specified by:
acceptsURI in interface Database
Throws:
XMLDBException
See Also:
Database.acceptsURI(java.lang.String)

getConformanceLevel

public final String getConformanceLevel()
                                 throws XMLDBException
Specified by:
getConformanceLevel in interface Database
Throws:
XMLDBException
See Also:
Database.getConformanceLevel()

getProperty

public final String getProperty(String name)
                         throws XMLDBException
Specified by:
getProperty in interface Configurable
Throws:
XMLDBException
See Also:
Configurable.getProperty(java.lang.String)

setProperty

public final void setProperty(String name,
                              String value)
                       throws XMLDBException
Specified by:
setProperty in interface Configurable
Throws:
XMLDBException
See Also:
Configurable.setProperty(java.lang.String, java.lang.String)

parseHost

public static String parseHost(String uri)
The parseHost method will extract the host value from the uri parameter.

Parameters:
uri - a String value
Returns:
a String value

parsePort

public static String parsePort(String uri)
                        throws NxqdException
The parseHost method will extract the port value from the uri parameter.

Parameters:
uri - a String value
Returns:
a String value
Throws:
NxqdException

extractCollectionName

public static String extractCollectionName(String uri)
The extractCollectionName method will extract the Collection name from the uri parameter.

Parameters:
uri - a String value
Returns:
a String value

extractCollectionPath

public static String extractCollectionPath(String uri)
                                    throws NxqdException
The extractCollectionPath method will extract the Collection path from the uri parameter.

Parameters:
uri - a String value
Returns:
a String value
Throws:
NxqdException

encodePath

public static String encodePath(String path)

decodePath

public static String decodePath(String path)


Copyright © 2005-2006 nxqd. All Rights Reserved.