Class ConnectionSourceSkeleton

    • Constructor Detail

      • ConnectionSourceSkeleton

        public ConnectionSourceSkeleton()
    • Method Detail

      • discoverConnnectionProperties

        public void discoverConnnectionProperties()
        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 int 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 String getPassword()
        Get the password for this connection source.
      • setPassword

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

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

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

        public String getOverriddenSupportsGetGeneratedKeys()
        Returns the "overridden" value of "supportsGetGeneratedKeys" property of the JDBC driver. In certain cases, getting (e.g. Oracle 10g) generated keys does not work because it returns the ROWID, not the value of the sequence.
        Returns:
        A non null string, with "true" or "false" value, if overridden, null if not overridden.
      • setOverriddenSupportsGetGeneratedKeys

        public void setOverriddenSupportsGetGeneratedKeys​(String overriddenSupportsGetGeneratedKeys)
        Sets the "overridden" value of "supportsGetGeneratedKeys" property of the JDBC driver. In certain cases, getting (e.g. Oracle 10g) generated keys does not work because it returns the ROWID, not the value of the sequence.
        Parameters:
        overriddenSupportsGetGeneratedKeys - A non null string, with "true" or "false" value, if overridden, null if not overridden.