Class PostgresConnectionSchemaInitializer

java.lang.Object
com.broadleafcommerce.common.jpa.data.PostgresConnectionSchemaInitializer
All Implemented Interfaces:
ConnectionSchemaInitializer, org.springframework.core.Ordered
Direct Known Subclasses:
YugabytedbConnectionSchemaInitializer

public class PostgresConnectionSchemaInitializer extends Object implements ConnectionSchemaInitializer
Postgres specific version of ConnectionSchemaInitializer
Author:
Jeff Fischer
  • Constructor Details

    • PostgresConnectionSchemaInitializer

      public PostgresConnectionSchemaInitializer(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
    • getDriver

      protected String getDriver()
    • getDriverFromUrl

      protected String getDriverFromUrl(String url)