|
Berkeley DB XML (BDB XML) from Sleepycat Software has a basic command BDB XML concept that can be of assistance when building Java programs. Topics covered are installation, environment, XmlManager, adding a document, and querying data. Sample listings are provided. Installation of BDB XML is via an installer for the Windows operating systems (OSs). Users can also build it from source files that are available for just about all popular OSs. Testers used the Eclipse integrated development environment (IDE) from www.eclipse.org, which makes programming easy and fun and costs nothing. Among widely used environment properties described are EnvironmentConfig.setAllowCreate(true), EnvironmentConfig.setLocking(true), EnvironmentConfig.setInitializeCache(true), EnvironmentConfig.setTransactional(true), EnvironmentConfig.setInitializeLogging(true), and EnvironmentConfig.setRunRecovery(true). XmlManager is the high-level class for management of XML collections, and queries are sent to the database via the XmlManager object. Three constructors can be used, and one is described in which XmlManagerConfig and Environment are taken as the two arguments. When an XmlManager object has been created, creation of a container and adding an XML document is easy. Testers are hopeful that in future versions SleepyCat Software will publish backwardly compatible application programming interfaces (APIs).
|