Class ConnectionSourceBase

    • Constructor Detail

      • ConnectionSourceBase

        public ConnectionSourceBase()
    • Method Detail

      • discoverConnectionProperties

        public void discoverConnectionProperties()
        Learn relevant information about this connection source.
      • supportsGetGeneratedKeys

        public final boolean supportsGetGeneratedKeys()
        Does this connection support the JDBC Connection.getGeneratedKeys method?
        Specified by:
        supportsGetGeneratedKeys in interface ConnectionSource
      • getSQLDialectCode

        public final SQLDialectCode getSQLDialectCode()
        Description copied from interface: ConnectionSource
        Get the SQL dialect that should be used for this connection. Note that the dialect is not needed if the JDBC driver supports the getGeneratedKeys method.
        Specified by:
        getSQLDialectCode in interface ConnectionSource
      • getPassword

        public final java.lang.String getPassword()
        Get the password for this connection source.
      • setPassword

        public final void setPassword​(java.lang.String password)
        Sets the password.
        Parameters:
        password - The password to set
      • getUser

        public final java.lang.String getUser()
        Get the user for this connection source.
      • setUser

        public final void setUser​(java.lang.String username)
        Sets the username.
        Parameters:
        username - The username to set
      • start

        public void start()
        Specified by:
        start in interface LifeCycle
      • stop

        public void stop()
        Specified by:
        stop in interface LifeCycle