Package ca.uhn.fhir.jpa.util
Class PartitionedIdModeVerificationSvc
java.lang.Object
ca.uhn.fhir.jpa.util.PartitionedIdModeVerificationSvc
This bean simply performs a startup check that the database schema is
appropriate for the Partitioned ID mode set in configuration.
If partitioned ID mode is active then the PARTITION_ID column
should be a part of primary keys.
-
Constructor Summary
ConstructorDescriptionPartitionedIdModeVerificationSvc
(PartitionSettings thePartitionSettings, HibernatePropertiesProvider theHibernatePropertiesProvider, org.springframework.transaction.PlatformTransactionManager theTxManager) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
verifySchemaIsAppropriateForDatabasePartitionMode
(DriverTypeEnum.ConnectionProperties cp, boolean expectDatabasePartitionMode)
-
Constructor Details
-
PartitionedIdModeVerificationSvc
public PartitionedIdModeVerificationSvc(PartitionSettings thePartitionSettings, HibernatePropertiesProvider theHibernatePropertiesProvider, org.springframework.transaction.PlatformTransactionManager theTxManager) Constructor
-
-
Method Details
-
verifyPartitionedIdMode
@EventListener(classes=org.springframework.context.event.ContextRefreshedEvent.class) public void verifyPartitionedIdMode() throws SQLException- Throws:
SQLException
-
verifySchemaIsAppropriateForDatabasePartitionMode
public static void verifySchemaIsAppropriateForDatabasePartitionMode(DriverTypeEnum.ConnectionProperties cp, boolean expectDatabasePartitionMode) throws SQLException - Throws:
SQLException
-