Package com.atlassian.crowd.config
Class AbstractDatabaseConnectionDecorator
java.lang.Object
com.atlassian.crowd.config.AbstractDatabaseConnectionDecorator
- All Implemented Interfaces:
DatabaseConnectionDecorator
- Direct Known Subclasses:
MySQLConnectionDecorator
,NoOpConnectionDecorator
,OracleConnectionDecorator
,PostgreSQLConnectionDecorator
public abstract class AbstractDatabaseConnectionDecorator
extends Object
implements DatabaseConnectionDecorator
-
Constructor Summary
ConstructorDescriptionAbstractDatabaseConnectionDecorator
(Map<String, String> decoratingParameters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decorateConnectionProperties
(com.atlassian.config.ApplicationConfiguration applicationConfig) It updates the application config, by decorating the connection url or hibernate connection properties whichever supported by underlying implementationdecorateConnectionURL
(String connectionURL) This method decorates the given connection URL with the parameters supplied bygetConnectionParameters()
, to note it will not override the parameters already present in the connection urlThis method returns the parameters which are to be used for decorating the connectionprotected String
prepareMessageWithParams
(Map<String, String> params)
-
Constructor Details
-
AbstractDatabaseConnectionDecorator
-
-
Method Details
-
getConnectionParameters
This method returns the parameters which are to be used for decorating the connection -
decorateConnectionProperties
public void decorateConnectionProperties(com.atlassian.config.ApplicationConfiguration applicationConfig) It updates the application config, by decorating the connection url or hibernate connection properties whichever supported by underlying implementation- Specified by:
decorateConnectionProperties
in interfaceDatabaseConnectionDecorator
-
decorateConnectionURL
This method decorates the given connection URL with the parameters supplied bygetConnectionParameters()
, to note it will not override the parameters already present in the connection url- Specified by:
decorateConnectionURL
in interfaceDatabaseConnectionDecorator
- Returns:
- the decorated connection URL
-
prepareMessageWithParams
-