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
  • Constructor Details

    • MariaDBConnectionSchemaInitializer

      public MariaDBConnectionSchemaInitializer(ConnectionProperties connectionProperties)
  • Method Details

    • initialize

      public boolean initialize(Connection toInitialize, String schema)
      Description copied from interface: ConnectionSchemaInitializer
      Initialize the connection, setting the current schema for the connection session.
      Specified by:
      initialize in interface ConnectionSchemaInitializer
      Parameters:
      toInitialize - The connection from the datasource to initialize
      schema - 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 interface ConnectionSchemaInitializer
      Specified by:
      getOrder in interface org.springframework.core.Ordered