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() |
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() |
String |
getSchema() |
void |
init(Config.Scope config) |
void |
postInit(KeycloakSessionFactory factory) |
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()
close
in interface ProviderFactory<JpaConnectionProvider>
public String getId()
getId
in interface ProviderFactory<JpaConnectionProvider>
public void init(Config.Scope config)
init
in interface ProviderFactory<JpaConnectionProvider>
public void postInit(KeycloakSessionFactory factory)
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()
getOperationalInfo
in interface ServerInfoAwareProviderFactory
Copyright © 2021 JBoss by Red Hat. All rights reserved.