Package de.xima.fc.persistence
Class ConnectionProperties.Builder
- java.lang.Object
-
- de.xima.fc.persistence.ConnectionProperties.Builder
-
- Enclosing class:
- ConnectionProperties
public static class ConnectionProperties.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionPropertiesbuild()ConnectionProperties.BuilderconnectionIdentifier(ConnectionIdentifier connectionIdentifier)The connection identifier which uniquely identifies the database connection.ConnectionProperties.BuilderjdbcUrl(String jdbcUrl)The JDBC URL for database connection.ConnectionProperties.Builderpassword(char[] password)The password for database authentication.ConnectionProperties.BuilderpoolProperties(ConnectionPoolProperties poolProperties)The connection pool properties for this connection.ConnectionProperties.BuildertlsScope(ConnectionProperties.TlsScope tlsScope)Optional.StringtoString()ConnectionProperties.Builderusername(String username)The username for database authentication.
-
-
-
Method Detail
-
connectionIdentifier
public ConnectionProperties.Builder connectionIdentifier(ConnectionIdentifier connectionIdentifier)
The connection identifier which uniquely identifies the database connection. Required for managed connections.- Returns:
this.
-
jdbcUrl
public ConnectionProperties.Builder jdbcUrl(String jdbcUrl)
The JDBC URL for database connection.- Returns:
this.
-
username
public ConnectionProperties.Builder username(String username)
The username for database authentication.- Returns:
this.
-
password
public ConnectionProperties.Builder password(char[] password)
The password for database authentication.- Returns:
this.
-
poolProperties
public ConnectionProperties.Builder poolProperties(ConnectionPoolProperties poolProperties)
The connection pool properties for this connection. If not provided, default properties will be used.- Returns:
this.
-
tlsScope
public ConnectionProperties.Builder tlsScope(ConnectionProperties.TlsScope tlsScope)
Optional. The TLS scope for secure connections. For identified connections, this scope is ignored and the TLS scope is determined by the connection identifier. For unmanaged connections, this scope is used if provided.- Returns:
this.
-
build
public ConnectionProperties build()
-
-