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

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericGeneric
        |
        +--com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericAttribute
All Implemented Interfaces:
IRDBDriver

public class DriverGenericAttribute
extends DriverGenericGeneric

Adaption of the base generic layout driver to use separate tables for specific predicates (called attributes). This version just duplicates the generic store do a replacement version if this looks useful.

Version:
$Revision: 1.2 $ on $Date: 2001/11/26 18:20:08 $
Author:
Dave Reynolds

Fields inherited from class com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericGeneric
ANON_NAMESPACE
 
Constructor Summary
DriverGenericAttribute()
          Create a bare instance of the driver.
 
Method Summary
 void addStatement(Statement s, ModelRDB m)
          Register a statement in the database.
 void cleanDB()
          Remove all RDF information from a database.
 void hintPropertyTable(Property p)
          Hint to the store that the given property could be stored as an attribute table.
 ResultSetIterator listStatements(Resource subject, Property predicate, RDFNode object, ModelRDB m)
          List all the statements in the model which match the given subject, predicate object - each of which can be null (meaning wildcard).
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericGeneric
allocateModelID, attachStore, close, createConstraints, deleteStatement, detachStore, formatDB, getConnection, getLiteral, getLiteralID, getModelID, getNamespace, getProperty, getProperty, getResource, getResource, getResourceID, getSQLCache, isDBFormatOK, isStatementPresent, listModels, listNamespaces, listStatements, listSubjects, loadDatabaseDriver, loadProperties, makeResource, saveProperties, setConnection, supportsMultipleModels, toString, wrapDBID, wrapFlag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DriverGenericAttribute

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

hintPropertyTable

public void hintPropertyTable(Property p)
                       throws RDFException
Hint to the store that the given property could be stored as an attribute table.
Overrides:
hintPropertyTable in class DriverGenericGeneric

addStatement

public void addStatement(Statement s,
                         ModelRDB m)
                  throws RDFException
Register a statement in the database.
Overrides:
addStatement in class DriverGenericGeneric
Parameters:
subjId - database index of the subject entry
predId - database index of the predicate entry
objId - database index of the object entry
isLiteral - if the object is a literal rather than a resource

listStatements

public ResultSetIterator listStatements(Resource subject,
                                        Property predicate,
                                        RDFNode object,
                                        ModelRDB m)
                                 throws RDFException
List all the statements in the model which match the given subject, predicate object - each of which can be null (meaning wildcard).
Overrides:
listStatements in class DriverGenericGeneric

cleanDB

public void cleanDB()
Remove all RDF information from a database. This will only work if there are no other clients us the DB so is mostly to simplify testing that a practical tool. Partial DB config or cleaning can leave the DB in a strange state hence it will continue with each cleanup phase even if earlier phases have generated errors and erros are only logged, not propagated as exceptions.
Overrides:
cleanDB in class DriverGenericGeneric


Copyright 2001 Hewlett-Packard. All Rights Reserved.