Package org.dspace.storage.rdbms
Class DatabaseConfigVO
java.lang.Object
org.dspace.storage.rdbms.DatabaseConfigVO
Get database configuration parameters. The parameter values are retrieved by
the configured implementation of the
DBConnection interface.
This class cannot be used to alter configuration; it is just used to export and can be used for display purposes
- Author:
- kevinvandevelde at atmire.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the DBMS driver, which should indicate what DBMS is in use.Get the JDBC URL which identifies the DBMS instance and database.intGet the maximum number of concurrent DBMS connections that will be opened (if possible).Get the name of the database schema.Get the name of the database role used to authenticate connections to the DBMS.voidsetDatabaseDriver(String databaseDriver) DO NOT USE unless you are writing an implementation of DBConnection.voidsetDatabaseUrl(String databaseUrl) DO NOT USE unless you are writing a DBConnection implementation.voidsetMaxConnections(int maxConnections) DO NOT USE unless you are writing an implementation of DBConnection.voidDO NOT USE unless you are writing an implementation of DBConnection.voidsetUserName(String userName) DO NOT USE unless you are writing an implementation of DBConnection.
-
Constructor Details
-
DatabaseConfigVO
public DatabaseConfigVO()
-
-
Method Details
-
getDatabaseUrl
Get the JDBC URL which identifies the DBMS instance and database. This is set in the DSpace configuration.- Returns:
- URL pointing to the configured database.
-
setDatabaseUrl
DO NOT USE unless you are writing a DBConnection implementation. This method does not set the URL that will be used to connect to the database.- Parameters:
databaseUrl- JDBC URL being used by the DBConnection for creating connections.
-
getDatabaseDriver
Get the name of the DBMS driver, which should indicate what DBMS is in use.- Returns:
- the driver's notion of its "name".
-
setDatabaseDriver
DO NOT USE unless you are writing an implementation of DBConnection. This method does not select the DBMS driver.- Parameters:
databaseDriver- the driver's name.
-
getUserName
Get the name of the database role used to authenticate connections to the DBMS.- Returns:
- DBMS user name, from DSpace configuration.
-
setUserName
DO NOT USE unless you are writing an implementation of DBConnection. This method does not alter the user name.- Parameters:
userName- the configured DBMS username.
-
getSchema
Get the name of the database schema.- Returns:
- name of the schema.
-
setSchema
DO NOT USE unless you are writing an implementation of DBConnection. This method does not set the schema that will be used.- Parameters:
schema- name of the database schema, from configuration.
-
getMaxConnections
public int getMaxConnections()Get the maximum number of concurrent DBMS connections that will be opened (if possible).- Returns:
- configured maximum DBMS connection count.
-
setMaxConnections
public void setMaxConnections(int maxConnections) DO NOT USE unless you are writing an implementation of DBConnection. This method does not set the connection maximum.- Parameters:
maxConnections- configured maximum number of concurrent DBMS connections.
-