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.2 $ on $Date: 2001/11/26 18:20:09 $
- Author:
- Dave Reynolds
Method Summary |
IDBID |
allocateModelID(java.lang.String modelName)
Allocate a new databaseID for a new model in the same 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.DriverGenericGeneric |
addStatement, attachStore, cleanDB, close, createConstraints, deleteStatement, detachStore, formatDB, getConnection, getLiteral, getLiteralID, getNamespace, getProperty, getProperty, getResource, getResource, getResourceID, getSQLCache, hintPropertyTable, isDBFormatOK, isStatementPresent, listNamespaces, listStatements, listStatements, listSubjects, loadDatabaseDriver, loadProperties, makeResource, saveProperties, setConnection, 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, close, createConstraints, deleteStatement, detachStore, formatDB, getConnection, getLiteral, getLiteralID, getNamespace, getProperty, getProperty, getResource, getResource, getResourceID, getSQLCache, hintPropertyTable, isDBFormatOK, isStatementPresent, listNamespaces, listStatements, listStatements, listSubjects, loadProperties, makeResource, setConnection, wrapDBID |
DriverGenericMMHash
public DriverGenericMMHash()
- Create a bare instance of the driver. It is not functional until a
database connection has been supplied via setConnection.
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
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
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
Copyright © 2001 Hewlett-Packard. All Rights Reserved.