|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.config.SailConfig
org.openrdf.sesame.sailimpl.rdbms.RdfRepositoryConfig
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 |
public RdfRepositoryConfig()
public RdfRepositoryConfig(String jdbcDriver,
String jdbcUrl)
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.
public RdfRepositoryConfig(String jdbcDriver,
String jdbcUrl,
String user,
String password)
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 |
public void setJdbcDriver(String jdbcDriver)
jdbcDriver - The fully qualified name of the Driver class, e.g.
com.mysql.jdbc.Driver or org.postgresql.Driver.public String getJdbcDriver()
public void setJdbcUrl(String jdbcUrl)
jdbcUrl - A JDBC URL specifying the database to connect to, e.g.
jdbc:mysql://localhost:3306/testdb or
jdbc:postgresql://localhost:5432/testdb.public String getJdbcUrl()
public void setUser(String user)
user - The name of a user that has access to the database.public String getUser()
public void setPassword(String password)
password - The user's password for the database.public String getPassword()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||