com.mkdoc.store
Class DatabaseStoreManager

java.lang.Object
  |
  +--com.mkdoc.store.AbstractStoreManager
        |
        +--com.mkdoc.store.DatabaseStoreManager
All Implemented Interfaces:
Manager, StoreManager

public class DatabaseStoreManager
extends AbstractStoreManager
implements StoreManager

A store manager for a local Sesame repository.

Version:
0.1 2005-11-01
Author:
Philip Shaw

Field Summary
static java.lang.String DB_NAME
          The database name key.
static java.lang.String DB_PASS
          The database password key.
static java.lang.String DB_USER
          The database user key.
static java.lang.String DB_VENDOR
          The database vendor key.
static java.lang.String MYSQL
          The MySQL database vendor name.
static java.lang.String PGSQL
          The PostgreSQL database vendor name.
 
Fields inherited from class com.mkdoc.store.AbstractStoreManager
repository
 
Fields inherited from interface com.mkdoc.store.StoreManager
REPOSITORY
 
Constructor Summary
DatabaseStoreManager()
           
 
Method Summary
protected  java.lang.String configureRepository(ApplicationContext context)
          Configure the database from the plugin property set.
 void initialize(ApplicationContext context)
          Initialize the manager.
 void shutdown()
          Shut down the manager.
 
Methods inherited from class com.mkdoc.store.AbstractStoreManager
addDocumentStatements, addXmlRdfStream, executeQuery, isActive, setActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mkdoc.store.StoreManager
addDocumentStatements, addXmlRdfStream, executeQuery
 

Field Detail

DB_VENDOR

public static final java.lang.String DB_VENDOR
The database vendor key.

Since:
Version 0.1 2005-11-01
See Also:
Constant Field Values

DB_NAME

public static final java.lang.String DB_NAME
The database name key.

Since:
Version 0.1 2005-11-01
See Also:
Constant Field Values

DB_USER

public static final java.lang.String DB_USER
The database user key.

Since:
Version 0.1 2005-11-01
See Also:
Constant Field Values

DB_PASS

public static final java.lang.String DB_PASS
The database password key.

Since:
Version 0.1 2005-11-01
See Also:
Constant Field Values

PGSQL

public static final java.lang.String PGSQL
The PostgreSQL database vendor name.

Since:
Version 0.1 2005-11-01
See Also:
Constant Field Values

MYSQL

public static final java.lang.String MYSQL
The MySQL database vendor name.

Since:
Version 0.1 2005-11-01
See Also:
Constant Field Values
Constructor Detail

DatabaseStoreManager

public DatabaseStoreManager()
Method Detail

initialize

public final void initialize(ApplicationContext context)
Initialize the manager.

Specified by:
initialize in interface Manager
Parameters:
context - The application context for this manager.
Since:
Version 0.1 2005-07-14

shutdown

public final void shutdown()
Shut down the manager.

Specified by:
shutdown in interface Manager
Since:
Version 0.1 2005-07-14

configureRepository

protected final java.lang.String configureRepository(ApplicationContext context)
Configure the database from the plugin property set.

Parameters:
context - The application context for the store.
Returns:
A status message giving the path of the output directory.
Since:
Version 0.1 2005-06-09