|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.helpers.SailBase
org.openrdf.sail.rdbms.RdbmsStore
public class RdbmsStore
The RDBMS SAIL for relational database storage in Sesame. This class acts both as a base class for database specific stores as well as a generic store that can infer the type of database through the JDBC connection.
| Field Summary |
|---|
| Fields inherited from class org.openrdf.sail.helpers.SailBase |
|---|
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, logger |
| Constructor Summary | |
|---|---|
RdbmsStore()
|
|
RdbmsStore(String url)
Creates a new RDBMS RDF Store using the provided database connection. |
|
RdbmsStore(String jdbcDriver,
String jdbcUrl)
Creates a new RDBMS RDF Store using the provided database connection. |
|
RdbmsStore(String url,
String user,
String password)
Creates a new RDBMS RDF Store using the provided database connection. |
|
RdbmsStore(String jdbcDriver,
String jdbcUrl,
String user,
String password)
Creates a new RDBMS RDF Store using the provided database connection. |
|
| Method Summary | |
|---|---|
protected SailConnection |
getConnectionInternal()
returns a store-specific SailConnection object. |
int |
getMaxNumberOfTripleTables()
|
RdbmsValueFactory |
getValueFactory()
Gets a ValueFactory object that can be used to create URI-, blank node-, literal- and statement objects. |
void |
initialize()
Initializes the Sail. |
boolean |
isIndexed()
|
boolean |
isSequenced()
|
boolean |
isWritable()
Checks whether this Sail object is writable, i.e. |
protected void |
setBasicDataSource(org.apache.commons.dbcp.BasicDataSource ds)
|
protected void |
setConnectionFactory(RdbmsConnectionFactory factory)
|
void |
setIndexed(boolean indexed)
|
void |
setMaxNumberOfTripleTables(int max)
|
void |
setSequenced(boolean useSequence)
|
protected void |
shutDownInternal()
Do store-specific operations to ensure proper shutdown of the store. |
| Methods inherited from class org.openrdf.sail.helpers.SailBase |
|---|
connectionClosed, debugEnabled, getConnection, getDataDir, setDataDir, shutDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RdbmsStore()
public RdbmsStore(String url)
url - JDNI url of a DataSource
public RdbmsStore(String url,
String user,
String password)
url - JDNI url of a DataSourceuser - password -
public RdbmsStore(String jdbcDriver,
String jdbcUrl)
jdbcDriver - jdbcUrl -
public RdbmsStore(String jdbcDriver,
String jdbcUrl,
String user,
String password)
jdbcDriver - jdbcUrl - user - password - | Method Detail |
|---|
public int getMaxNumberOfTripleTables()
public void setMaxNumberOfTripleTables(int max)
public boolean isIndexed()
public void setIndexed(boolean indexed)
throws SailException
SailExceptionpublic boolean isSequenced()
public void setSequenced(boolean useSequence)
public void initialize()
throws SailException
Sail
SailException - If the Sail could not be initialized.
public boolean isWritable()
throws SailException
Sail
SailExceptionpublic RdbmsValueFactory getValueFactory()
Sail
protected SailConnection getConnectionInternal()
throws SailException
SailBase
getConnectionInternal in class SailBaseSailException
protected void shutDownInternal()
throws SailException
SailBase
shutDownInternal in class SailBaseSailExceptionprotected void setConnectionFactory(RdbmsConnectionFactory factory)
protected void setBasicDataSource(org.apache.commons.dbcp.BasicDataSource ds)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||