Class MariaDBConnectionSchemaInitializer
java.lang.Object
com.broadleafcommerce.common.jpa.data.MariaDBConnectionSchemaInitializer
- All Implemented Interfaces:
ConnectionSchemaInitializer
,org.springframework.core.Ordered
public class MariaDBConnectionSchemaInitializer
extends Object
implements ConnectionSchemaInitializer
MariaDB specific version of
ConnectionSchemaInitializer
- Author:
- Jeff Fischer
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionMariaDBConnectionSchemaInitializer
(ConnectionProperties connectionProperties) -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
boolean
initialize
(Connection toInitialize, String schema) Initialize the connection, setting the current schema for the connection session.
-
Constructor Details
-
MariaDBConnectionSchemaInitializer
-
-
Method Details
-
initialize
Description copied from interface:ConnectionSchemaInitializer
Initialize the connection, setting the current schema for the connection session.- Specified by:
initialize
in interfaceConnectionSchemaInitializer
- Parameters:
toInitialize
- The connection from the datasource to initializeschema
- The schema to set as the default for the connection session- Returns:
- whether or not the initializer was qualified to operate on the connection and did indeed perform the initialization
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceConnectionSchemaInitializer
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-