com.hp.hpl.mesa.rdf.jena.rdb
Class DriverGenericMMHash

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericGeneric
        |
        +--com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericHash
              |
              +--com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericMMHash
All Implemented Interfaces:
IRDBDriver
Direct Known Subclasses:
DriverInterbaseMMHash

public class DriverGenericMMHash
extends DriverGenericHash
implements IRDBDriver

Adaption of the base generic layout driver to support multiple models in one database.

Version:
$Revision: 1.3 $ on $Date: 2002/08/08 12:18:34 $
Author:
Dave Reynolds

Field Summary
 
Fields inherited from class com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericGeneric
ANON_NAMESPACE
 
Constructor Summary
DriverGenericMMHash()
          Create a bare instance of the driver.
 
Method Summary
 IDBID allocateModelID(java.lang.String modelName)
          Allocate a new databaseID for a new model in the same database.
 void deleteModel(java.lang.String modelName)
          Delete the named from from within the database.
 IDBID getModelID(java.lang.String modelName)
          Return the databaseID for an existing named model within the database.
 java.util.Iterator listModels()
          List the names of all models in this database
 boolean supportsMultipleModels()
          Returns true of the database layout supports multiple RDF models in the same database.
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericHash
wrapDBID
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericGeneric
addStatement, attachStore, cleanDB, clear, close, createConstraints, deleteStatement, deleteStatement, detachStore, formatDB, getBareStatementResource, getConnection, getLiteral, getLiteralFromCache, getLiteralID, getNamespace, getProperty, getProperty, getPropertyFromCache, getResource, getResource, getResourceFromCache, getResourceID, getSQLCache, hintPropertyTable, isDBFormatOK, isStatementPresent, listNamespaces, listReifiedStatements, listStatements, listStatements, listSubjects, loadDatabaseDriver, loadProperties, makeProperty, makeResource, makeResource, preloadCaches, saveProperties, setCacheLimits, setConnection, splitNamespace, supportsJenaReification, toString, wrapFlag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.rdb.IRDBDriver
addStatement, attachStore, cleanDB, clear, close, createConstraints, deleteStatement, deleteStatement, detachStore, formatDB, getBareStatementResource, getConnection, getLiteral, getLiteralFromCache, getLiteralID, getNamespace, getProperty, getProperty, getPropertyFromCache, getResource, getResource, getResourceFromCache, getResourceID, getSQLCache, hintPropertyTable, isDBFormatOK, isStatementPresent, listNamespaces, listReifiedStatements, listStatements, listStatements, listSubjects, loadProperties, makeProperty, makeResource, makeResource, preloadCaches, setCacheLimits, setConnection, supportsJenaReification, wrapDBID
 

Constructor Detail

DriverGenericMMHash

public DriverGenericMMHash()
Create a bare instance of the driver. It is not functional until a database connection has been supplied via setConnection.

Method Detail

supportsMultipleModels

public boolean supportsMultipleModels()
Returns true of the database layout supports multiple RDF models in the same database.

Specified by:
supportsMultipleModels in interface IRDBDriver
Overrides:
supportsMultipleModels in class DriverGenericGeneric

allocateModelID

public IDBID allocateModelID(java.lang.String modelName)
                      throws RDFRDBException
Allocate a new databaseID for a new model in the same database. Unlike other allcoate calls this also record the allocation in the database directly. Throws RDFRDBException if the driver does not support multiple models per db.

Specified by:
allocateModelID in interface IRDBDriver
Overrides:
allocateModelID in class DriverGenericGeneric
RDFRDBException

getModelID

public IDBID getModelID(java.lang.String modelName)
                 throws RDFRDBException
Return the databaseID for an existing named model within the database. Throws RDFRDBException if the driver does not support multiple models per db.

Specified by:
getModelID in interface IRDBDriver
Overrides:
getModelID in class DriverGenericGeneric
RDFRDBException

listModels

public java.util.Iterator listModels()
                              throws RDFRDBException
List the names of all models in this database

Specified by:
listModels in interface IRDBDriver
Overrides:
listModels in class DriverGenericGeneric
RDFRDBException

deleteModel

public void deleteModel(java.lang.String modelName)
                 throws RDFRDBException
Delete the named from from within the database. This will remove any statements associated with the model and remove the model from the table of known models. Throws RDFRDBException if the driver does not support multiple models per db.

Specified by:
deleteModel in interface IRDBDriver
Overrides:
deleteModel in class DriverGenericGeneric
RDFRDBException


Copyright © 2001 Hewlett-Packard. All Rights Reserved.