Package google.registry.persistence
Class PersistenceModule
java.lang.Object
google.registry.persistence.PersistenceModule
@Module(includes={KeyringModule.class,SecretManagerModule.class,DummyKeyringModule.class})
public abstract class PersistenceModule
extends Object
Dagger module class for the persistence layer.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Dagger qualifier forJpaTransactionManager
used inside BEAM pipelines.static @interface
Dagger qualifier forJpaTransactionManager
used inside BEAM pipelines that uses the read-only Postgres replica if one is configured (otherwise it uses the standard DB).static @interface
Dagger qualifier for the default Hibernate configurations.static enum
Types ofJpaTransactionManagers
.static @interface
Dagger qualifier forJpaTransactionManager
used for Nomulus tool.static @interface
Dagger qualifier forJpaTransactionManager
that uses the read-only Postgres replica if one is configured (otherwise it uses the standard DB).static @interface
Dagger qualifier for JDBCConnection
with schema management privilege.static enum
Transaction isolation levels supported by Cloud SQL (mysql and postgresql). -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
PERSISTENCE_UNIT_NAME
- See Also:
-
HIKARI_CONNECTION_TIMEOUT
- See Also:
-
HIKARI_MINIMUM_IDLE
- See Also:
-
HIKARI_MAXIMUM_POOL_SIZE
- See Also:
-
HIKARI_IDLE_TIMEOUT
- See Also:
-
HIKARI_DS_SOCKET_FACTORY
- See Also:
-
HIKARI_DS_CLOUD_SQL_INSTANCE
- See Also:
-
JDBC_BATCH_SIZE
- See Also:
-
JDBC_FETCH_SIZE
- See Also:
-
-
Constructor Details
-
PersistenceModule
public PersistenceModule()
-
-
Method Details
-
provideDefaultDatabaseConfigs
@Provides @DefaultHibernateConfigs public static com.google.common.collect.ImmutableMap<String,String> provideDefaultDatabaseConfigs()
-