public class DefaultJpaConnectionProviderFactory extends Object implements JpaConnectionProviderFactory, ServerInfoAwareProviderFactory
Constructor and Description |
---|
DefaultJpaConnectionProviderFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkJtaEnabled(KeycloakSessionFactory factory) |
void |
close()
This is called when the server shuts down.
|
JpaConnectionProvider |
create(KeycloakSession session) |
protected String |
detectDialect(Connection connection) |
protected void |
export(Connection connection,
String schema,
File databaseUpdateFile,
KeycloakSession session,
JpaUpdaterProvider updater) |
Connection |
getConnection() |
String |
getId() |
Map<String,String> |
getOperationalInfo()
Return actual info about the provider.
|
String |
getSchema() |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
protected void |
prepareOperationalInfo(Connection connection) |
protected void |
startGlobalStats(KeycloakSession session,
int globalStatsIntervalSecs) |
protected void |
update(Connection connection,
String schema,
KeycloakSession session,
JpaUpdaterProvider updater) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public JpaConnectionProvider create(KeycloakSession session)
create
in interface ProviderFactory<JpaConnectionProvider>
public void close()
ProviderFactory
close
in interface ProviderFactory<JpaConnectionProvider>
public String getId()
getId
in interface ProviderFactory<JpaConnectionProvider>
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<JpaConnectionProvider>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<JpaConnectionProvider>
protected void checkJtaEnabled(KeycloakSessionFactory factory)
protected void prepareOperationalInfo(Connection connection)
protected String detectDialect(Connection connection)
protected void startGlobalStats(KeycloakSession session, int globalStatsIntervalSecs)
protected void update(Connection connection, String schema, KeycloakSession session, JpaUpdaterProvider updater)
protected void export(Connection connection, String schema, File databaseUpdateFile, KeycloakSession session, JpaUpdaterProvider updater)
public Connection getConnection()
getConnection
in interface JpaConnectionProviderFactory
public String getSchema()
getSchema
in interface JpaConnectionProviderFactory
public Map<String,String> getOperationalInfo()
ServerInfoAwareProviderFactory
getOperationalInfo
in interface ServerInfoAwareProviderFactory
Copyright © 2021 JBoss by Red Hat. All rights reserved.