Package uk.ac.manchester.spinnaker.alloc
Class SpallocProperties.DataSourceProperties
java.lang.Object
uk.ac.manchester.spinnaker.alloc.SpallocProperties.DataSourceProperties
- Enclosing class:
- SpallocProperties
public static class SpallocProperties.DataSourceProperties extends Object
The properties of a
DataSource
, describing how to make a database
connection.-
Constructor Summary
Constructors Constructor Description DataSourceProperties(String jdbcUrl, String username, String password)
-
Method Summary
Modifier and Type Method Description String
getJdbcUrl()
String
getPassword()
String
getUsername()
-
Constructor Details
-
DataSourceProperties
public DataSourceProperties(@DefaultValue("jdbc:sqlite:/fix.me") String jdbcUrl, @DefaultValue("sa") String username, @DefaultValue("*") String password)- Parameters:
jdbcUrl
- URL for creating a connection.username
- User name for the connection.password
- Password for the connection.
-
-
Method Details
-
getJdbcUrl
- Returns:
- URL for creating a connection.
-
getUsername
- Returns:
- User name for the connection.
-
getPassword
- Returns:
- Password for the connection.
-