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 ofConnectionSchemaInitializer- Author:
- Jeff Fischer
-
-
Constructor Summary
Constructors Constructor Description PostgresConnectionSchemaInitializer(ConnectionProperties connectionProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetDriver()protected StringgetDriverFromUrl(String url)booleaninitialize(Connection toInitialize, String schema)Initialize the connection, setting the current schema for the connection session.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.common.jpa.data.ConnectionSchemaInitializer
getOrder
-
-
-
-
Constructor Detail
-
PostgresConnectionSchemaInitializer
public PostgresConnectionSchemaInitializer(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
-
getDriver
protected String getDriver()
-
-