public void addAttribute ( String attributeName , String attributeValue ) { if ( attributeName != null && attributeName . startsWith ( JDBC_PROPERTY_NAME_PREFIX ) ) { final String jdbcPropertyName = attributeName . substring ( JDBC_PROPERTY_NAME_LENGTH ) ; jdbcProperties . setProperty ( jdbcPropertyName , attributeValue ) ; } else if ( attributeName != null && attributeName . startsWith ( DBCP_PROPERTY_NAME_PREFIX ) ) { final String dbcpPropertyName = attributeName . substring ( DBCP_PROPERTY_NAME_LENGTH ) ; dbcpProperties . setProperty ( dbcpPropertyName , attributeValue ) ; } else { super . addAttribute ( attributeName , attributeValue ) ; } }
Sets a custom configuration attribute .