Class PostgreSqlRule.Configuration
- java.lang.Object
-
- net.officefloor.jdbc.postgresql.test.PostgreSqlRule.Configuration
-
- Enclosing class:
- PostgreSqlRule
public static class PostgreSqlRule.Configuration extends java.lang.Object
Configuration of the PostgreSql database.
Follows builder pattern to allow configuring and passing to
PostgreSqlRule
constructor.
-
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostgreSqlRule.Configuration
database(java.lang.String databaseName)
Specifies the database.PostgreSqlRule.Configuration
maxConnections(int maxConnections)
Specifies the max connections.PostgreSqlRule.Configuration
password(java.lang.String password)
Specifies the password.PostgreSqlRule.Configuration
port(int port)
Specifies the port.PostgreSqlRule.Configuration
server(java.lang.String server)
Specifies the server.PostgreSqlRule.Configuration
username(java.lang.String username)
Specifies the user name.
-
-
-
Method Detail
-
server
public PostgreSqlRule.Configuration server(java.lang.String server)
Specifies the server.- Parameters:
server
- Server.- Returns:
this
.
-
port
public PostgreSqlRule.Configuration port(int port)
Specifies the port.- Parameters:
port
- Port.- Returns:
this
.
-
database
public PostgreSqlRule.Configuration database(java.lang.String databaseName)
Specifies the database.- Parameters:
databaseName
- Database name.- Returns:
this
.
-
username
public PostgreSqlRule.Configuration username(java.lang.String username)
Specifies the user name.- Parameters:
username
- User name.- Returns:
this
.
-
password
public PostgreSqlRule.Configuration password(java.lang.String password)
Specifies the password.- Parameters:
password
- Password.- Returns:
this
.
-
maxConnections
public PostgreSqlRule.Configuration maxConnections(int maxConnections)
Specifies the max connections.- Parameters:
maxConnections
- Max connections.- Returns:
this
.
-
-