org.openrdf.sail.rdbms
Class RdbmsConnectionFactory

java.lang.Object
  extended by org.openrdf.sail.rdbms.RdbmsConnectionFactory
Direct Known Subclasses:
MySqlConnectionFactory, PgSqlConnectionFactory

public class RdbmsConnectionFactory
extends Object

Responsible to initialise and wire all components together that will be needed to satisfy any sail connection request.

Author:
James Leigh

Constructor Summary
RdbmsConnectionFactory()
           
 
Method Summary
 SailConnection createConnection()
           
protected  RdbmsQueryOptimizer createOptimizer()
           
protected  QueryBuilderFactory createQueryBuilderFactory()
           
protected  SelectQueryOptimizerFactory createSelectQueryOptimizerFactory()
           
protected  TableFactory createTableFactory()
           
protected  TransTableManager createTransTableManager()
           
protected  ValueTableFactory createValueTableFactory()
           
protected  Connection getConnection()
           
 DataSource getDataSource()
           
protected  String getFromDummyTable()
           
 int getMaxNumberOfTripleTables()
           
 RdbmsValueFactory getValueFactory()
           
 void init()
           
 boolean isSequenced()
           
 boolean isTriplesIndexed()
           
 boolean isWritable()
           
 void setDataSource(DataSource ds)
           
 void setDataSource(DataSource ds, String user, String password)
           
 void setMaxNumberOfTripleTables(int max)
           
 void setSail(RdbmsStore sail)
           
 void setSequenced(boolean useSequence)
           
 void setTriplesIndexed(boolean triplesIndexed)
           
 void shutDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdbmsConnectionFactory

public RdbmsConnectionFactory()
Method Detail

setSail

public void setSail(RdbmsStore sail)

getDataSource

public DataSource getDataSource()

setDataSource

public void setDataSource(DataSource ds)

setDataSource

public void setDataSource(DataSource ds,
                          String user,
                          String password)

getMaxNumberOfTripleTables

public int getMaxNumberOfTripleTables()

setMaxNumberOfTripleTables

public void setMaxNumberOfTripleTables(int max)

isSequenced

public boolean isSequenced()

setSequenced

public void setSequenced(boolean useSequence)

isTriplesIndexed

public boolean isTriplesIndexed()

setTriplesIndexed

public void setTriplesIndexed(boolean triplesIndexed)
                       throws SailException
Throws:
SailException

getValueFactory

public RdbmsValueFactory getValueFactory()

init

public void init()
          throws SailException
Throws:
SailException

isWritable

public boolean isWritable()
                   throws SailException
Throws:
SailException

createConnection

public SailConnection createConnection()
                                throws SailException
Throws:
SailException

shutDown

public void shutDown()
              throws SailException
Throws:
SailException

createQueryBuilderFactory

protected QueryBuilderFactory createQueryBuilderFactory()

createValueTableFactory

protected ValueTableFactory createValueTableFactory()

createTableFactory

protected TableFactory createTableFactory()

createTransTableManager

protected TransTableManager createTransTableManager()

createOptimizer

protected RdbmsQueryOptimizer createOptimizer()

createSelectQueryOptimizerFactory

protected SelectQueryOptimizerFactory createSelectQueryOptimizerFactory()

getFromDummyTable

protected String getFromDummyTable()

getConnection

protected Connection getConnection()
                            throws SQLException
Throws:
SQLException


Copyright © 2001-2008 Aduna. All Rights Reserved.