Class ConnectionProperties

    • Method Detail

      • getDbms

        public Dbms getDbms()
        Determines the DBMS type based on the JDBC URL.
        Returns:
        the DBMS type corresponding to the JDBC URL
      • system

        public static ConnectionProperties 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
      • getConnectionIdentifier

        public ConnectionIdentifier getConnectionIdentifier()
        The connection identifier which uniquely identifies the database connection. Required for managed connections.
      • getJdbcUrl

        public String getJdbcUrl()
        The JDBC URL for database connection.
      • getUsername

        public String getUsername()
        The username for database authentication.
      • getPassword

        public char[] getPassword()
        The password for database authentication.
      • getPoolProperties

        public ConnectionPoolProperties getPoolProperties()
        The connection pool properties for this connection. If not provided, default properties will be used.
      • getTlsScope

        public ConnectionProperties.TlsScope 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object