Class ConnectionProperties
java.lang.Object
de.xima.fc.persistence.ConnectionProperties
- All Implemented Interfaces:
Serializable
- Since:
- 8.5.0
- Author:
- Norman Lorenz
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionProperties.Builderbuilder()booleanThe connection identifier which uniquely identifies the database connection.getDbms()Determines the DBMS type based on the JDBC URL.The JDBC URL for database connection.char[]The password for database authentication.The connection pool properties for this connection.Optional.The username for database authentication.inthashCode()static ConnectionPropertiessystem()Retrieves the connection properties for the system database using CDI.toString()
-
Method Details
-
getDbms
Determines the DBMS type based on the JDBC URL.- Returns:
- the DBMS type corresponding to the JDBC URL
-
system
Retrieves the connection properties for the system database using CDI.- Returns:
- the connection properties for the system database
- Throws:
IllegalStateException- if the CDI container is not available or the bean cannot be found
-
builder
-
toBuilder
-
getConnectionIdentifier
The connection identifier which uniquely identifies the database connection. Required for managed connections. -
getJdbcUrl
The JDBC URL for database connection. -
getUsername
The username for database authentication. -
getPassword
public char[] getPassword()The password for database authentication. -
getPoolProperties
The connection pool properties for this connection. If not provided, default properties will be used. -
getTlsScope
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. -
equals
-
hashCode
-
toString
-