|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Encapsulate the specification of a jdbc connection, mostly used to simplify the calling pattern for ModelRDB factory methods.
| Method Summary | |
void |
cleanDB()
Clear all RDF information from the database. |
void |
close()
Close the jdbc connection |
boolean |
containsDefaultModel()
Test if a default model is contained in the database. |
boolean |
containsModel(java.lang.String name)
Test if a given model is contained in the database. |
ExtendedIterator |
getAllModelNames()
Retrieve a list of all models in the database |
java.sql.Connection |
getConnection()
Return the jdbc connection or null if we no longer have access to a connection. |
Model |
getDatabaseProperties()
Returns a Jena Model containing database properties. |
java.lang.String |
getDatabaseType()
Get the database type. |
Model |
getDefaultModelProperties()
Retrieve a default set of model customization properties The returned default set of properties is suitable for use in a call to ModelRDB.create(..., modelProperties); |
com.hp.hpl.jena.db.impl.IRDBDriver |
getDriver()
Get the database-specific driver For this to work, it needs to know the type of database being used. |
com.hp.hpl.jena.db.impl.IRDBDriver |
getDriver(java.lang.String layout,
java.lang.String database)
Deprecated. As of Jena 2.0 this call should not be used. Instead specify the database type when constructing a DBConnection and then pass that connection to the GraphRDB. There is no longer any need for applications to interact with the IRDBDriver. To customize the database configuration/layout use the formatDB(propertyModel) call. |
boolean |
isFormatOK()
Return true if the database seems to be formated for RDF storage. |
void |
setDatabaseProperties(Model propertyModel)
Sets database-specific properties. |
void |
setDatabaseType(java.lang.String databaseType)
Set the database type manually. |
void |
setDriver(com.hp.hpl.jena.db.impl.IRDBDriver driver)
Set the IRDBDriver to use for this connection. |
| Method Detail |
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException
public void close()
throws java.sql.SQLException
java.sql.SQLException
public void cleanDB()
throws java.sql.SQLException
java.sql.SQLException
public boolean isFormatOK()
throws RDFRDBException
RDFRDBException
public void setDatabaseProperties(Model propertyModel)
throws RDFRDBException
propertyModel - is a Model describing the database parameters
RDFRDBException
public Model getDatabaseProperties()
throws RDFRDBException
RDFRDBExceptionpublic void setDatabaseType(java.lang.String databaseType)
public Model getDefaultModelProperties()
throws RDFRDBException
RDFRDBExceptionpublic java.lang.String getDatabaseType()
public ExtendedIterator getAllModelNames()
throws RDFRDBException
RDFDBException
RDFRDBException
public boolean containsModel(java.lang.String name)
throws RDFRDBException
name - the name of a model which may be in the database
RDFDBException
RDFRDBException
public boolean containsDefaultModel()
throws RDFRDBException
RDFDBException
RDFRDBException
public com.hp.hpl.jena.db.impl.IRDBDriver getDriver()
throws RDFRDBException
RDFRDBExceptionpublic void setDriver(com.hp.hpl.jena.db.impl.IRDBDriver driver)
public com.hp.hpl.jena.db.impl.IRDBDriver getDriver(java.lang.String layout,
java.lang.String database)
throws RDFRDBException
RDFRDBException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||