Class JdbcConnectionString

    • Field Detail

      • KEY_USER

        @NonNls
        @NotNull
        public static final String KEY_USER

        The "user" JDBC connection property.

        Since:
        2018.1.2
        See Also:
        Constant Field Values
      • KEY_PASSWORD

        @NonNls
        @NotNull
        public static final String KEY_PASSWORD

        The "password" JDBC connection property.

        Since:
        2018.1.2
        See Also:
        Constant Field Values
    • Constructor Detail

      • JdbcConnectionString

        public JdbcConnectionString​(@NotNull
                                    DatabaseType dbType,
                                    boolean nativ)
      • JdbcConnectionString

        public JdbcConnectionString​(@NotNull
                                    DatabaseType dbType,
                                    boolean nativ,
                                    @Nullable
                                    String protocol,
                                    @Nullable
                                    String host,
                                    @Nullable
                                    String port,
                                    @Nullable
                                    String inst,
                                    @Nullable
                                    String database,
                                    @Nullable
                                    String user,
                                    @Nullable
                                    String password)
      • JdbcConnectionString

        public JdbcConnectionString​(@NotNull
                                    String connectionString)
        Throws:
        IllegalArgumentException - if connectionString can't be parsed.
    • Method Detail

      • build

        @NotNull
        public String build​(boolean withLoginAndPassword)
      • getHostAndPort

        @Nullable
        public String getHostAndPort()
      • getProtocol

        @Nullable
        public String getProtocol()
      • getHost

        @Nullable
        public String getHost()
      • setHost

        public void setHost​(@Nullable
                            String host)
      • getPort

        @Nullable
        public String getPort()
      • setPort

        public void setPort​(@Nullable
                            String port)
      • getInst

        @Nullable
        public String getInst()
      • setInst

        public void setInst​(@Nullable
                            String inst)
      • getDatabase

        @Nullable
        public String getDatabase()
      • setDatabase

        public void setDatabase​(@Nullable
                                String database)
      • isIntegratedSecurity

        public boolean isIntegratedSecurity()
      • setIntegratedSecurity

        public void setIntegratedSecurity​(boolean integratedSecurity)
      • getUser

        @Nullable
        public String getUser()
      • setUser

        public void setUser​(@Nullable
                            String user)
      • getPassword

        @Nullable
        public String getPassword()
      • setPassword

        public void setPassword​(@Nullable
                                String password)
      • isCredentialExist

        public boolean isCredentialExist()
      • isNative

        public boolean isNative()
      • setNative

        public void setNative​(boolean aNative)
      • getConnectionProperties

        @NotNull
        public Map<String,​String> getConnectionProperties()

        Returns the connection properties explicitly specified in the URL.

        Returns:
        the connection properties explicitly specified in the URL.
        Since:
        2018.1.2
      • getConnectionStringAsIs

        @Nullable
        public String getConnectionStringAsIs()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object