Code example for Properties

Methods: hashCode

0
    public int hashCode() 
    { 
      int result = jdbcConnectString.hashCode();
      result = 31 * result + (logWriter != null ? logWriter.hashCode() : 0);
      result = 31 * result + loginTimeout;
      result = 31 * result + jdbcProperties.hashCode();
      return result;
    } 
 
    public Connection getConnection() throws SQLException
    { 
      return DriverManager.getConnection(jdbcConnectString, jdbcProperties);
    } 
 
    public Connection getConnection(final String username, final String password)
        throws SQLException 
    { 
      final Properties temp = (Properties) jdbcProperties.clone();
      if (username != null)
      { 
        temp.put("user", username);