com.hp.hpl.mesa.rdf.jena.rdb
Class DriverGenericMMGeneric
java.lang.Object
|
+--com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericGeneric
|
+--com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericMMGeneric
- All Implemented Interfaces:
- IRDBDriver
- Direct Known Subclasses:
- DriverGenericMMGenericProc, DriverOracleMMGeneric
- public class DriverGenericMMGeneric
- extends DriverGenericGeneric
- implements IRDBDriver
Adaption of the base generic layout driver to support multiple
models in one database.
- Version:
- $Revision: 1.4 $ on $Date: 2001/12/05 17:56:49 $
- 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, wrapDBID, 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 |
DriverGenericMMGeneric
public DriverGenericMMGeneric()
- 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.