org.openrdf.sesame.sailimpl.rdbms
Class RdfRepositoryConfig

java.lang.Object
  extended byorg.openrdf.sesame.config.SailConfig
      extended byorg.openrdf.sesame.sailimpl.rdbms.RdfRepositoryConfig
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
RdfSchemaRepositoryConfig

public class RdfRepositoryConfig
extends SailConfig

Extension of SailConfig offering specific utility methods for configuring an org.openrdf.sesame.sailimpl.rdbms.RdfRepository Sail. This class offers methods for specifying the JDBC-driver class, the JDBC URL and the username/password combination for the RDBMS.


Constructor Summary
RdfRepositoryConfig()
          Creates a new and unconfigured RdfRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfRepository Sail.
RdfRepositoryConfig(String jdbcDriver, String jdbcUrl)
          Creates a new RdfRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfRepository Sail that uses the specified JDBC Driver to connect to the specified database.
RdfRepositoryConfig(String jdbcDriver, String jdbcUrl, String user, String password)
          Creates a new RdfRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfRepository Sail that uses the specified JDBC Driver to connect to the specified database.
 
Method Summary
 String getJdbcDriver()
          Gets the fully qualified class name of the used JDBC driver.
 String getJdbcUrl()
          Gets the JDBC URL that identifies the database to connect to.
 String getPassword()
          Gets the password that is used to log in on the database.
 String getUser()
          Gets the username that is used to log in on the database.
 void setJdbcDriver(String jdbcDriver)
          Sets the JDBC Driver class that should be used to connect to the database.
 void setJdbcUrl(String jdbcUrl)
          Sets the JDBC URL that identifies the database to connect to.
 void setPassword(String password)
          Sets the password that should be used to log in on the database.
 void setUser(String user)
          Sets the username that should be used to log in on the database.
 
Methods inherited from class org.openrdf.sesame.config.SailConfig
clone, equals, getConfigParameters, getParameter, getSailClass, hashCode, hasParameter, removeParameter, setConfigParameters, setParameter, setParameterKey, setParameterValue, setSailClass
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdfRepositoryConfig

public RdfRepositoryConfig()
Creates a new and unconfigured RdfRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfRepository Sail.


RdfRepositoryConfig

public RdfRepositoryConfig(String jdbcDriver,
                           String jdbcUrl)
Creates a new RdfRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfRepository Sail that uses the specified JDBC Driver to connect to the specified database.

Parameters:
jdbcDriver - The fully qualified name of the Driver class, e.g. com.mysql.jdbc.Driver or org.postgresql.Driver.
jdbcUrl - A JDBC URL specifying the database to connect to, e.g. jdbc:mysql://localhost:3306/testdb or jdbc:postgresql://localhost:5432/testdb.

RdfRepositoryConfig

public RdfRepositoryConfig(String jdbcDriver,
                           String jdbcUrl,
                           String user,
                           String password)
Creates a new RdfRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfRepository Sail that uses the specified JDBC Driver to connect to the specified database. The specified username/password combination is used to get access to the database.

Parameters:
jdbcDriver - The fully qualified name of the Driver class, e.g. com.mysql.jdbc.Driver or org.postgresql.Driver.
jdbcUrl - A JDBC URL specifying the database to connect to, e.g. jdbc:mysql://localhost:3306/testdb or jdbc:postgresql://localhost:5432/testdb.
user - The name of a user that has access to the database.
password - The user's password for the database.
Method Detail

setJdbcDriver

public void setJdbcDriver(String jdbcDriver)
Sets the JDBC Driver class that should be used to connect to the database.

Parameters:
jdbcDriver - The fully qualified name of the Driver class, e.g. com.mysql.jdbc.Driver or org.postgresql.Driver.

getJdbcDriver

public String getJdbcDriver()
Gets the fully qualified class name of the used JDBC driver.


setJdbcUrl

public void setJdbcUrl(String jdbcUrl)
Sets the JDBC URL that identifies the database to connect to.

Parameters:
jdbcUrl - A JDBC URL specifying the database to connect to, e.g. jdbc:mysql://localhost:3306/testdb or jdbc:postgresql://localhost:5432/testdb.

getJdbcUrl

public String getJdbcUrl()
Gets the JDBC URL that identifies the database to connect to.


setUser

public void setUser(String user)
Sets the username that should be used to log in on the database.

Parameters:
user - The name of a user that has access to the database.

getUser

public String getUser()
Gets the username that is used to log in on the database.


setPassword

public void setPassword(String password)
Sets the password that should be used to log in on the database.

Parameters:
password - The user's password for the database.

getPassword

public String getPassword()
Gets the password that is used to log in on the database.



Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.