Class MySqlConnectionSchemaInitializer
- java.lang.Object
-
- com.broadleafcommerce.common.jpa.data.MySqlConnectionSchemaInitializer
-
- All Implemented Interfaces:
ConnectionSchemaInitializer,org.springframework.core.Ordered
public class MySqlConnectionSchemaInitializer extends Object implements ConnectionSchemaInitializer
MySql specific version ofConnectionSchemaInitializer- Author:
- Jeff Fischer
-
-
Constructor Summary
Constructors Constructor Description MySqlConnectionSchemaInitializer(ConnectionProperties connectionProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()booleaninitialize(Connection toInitialize, String schema)Initialize the connection, setting the current schema for the connection session.
-
-
-
Constructor Detail
-
MySqlConnectionSchemaInitializer
public MySqlConnectionSchemaInitializer(ConnectionProperties connectionProperties)
-
-
Method Detail
-
initialize
public boolean initialize(Connection toInitialize, String schema)
Description copied from interface:ConnectionSchemaInitializerInitialize the connection, setting the current schema for the connection session.- Specified by:
initializein 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:
getOrderin interfaceConnectionSchemaInitializer- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
-