public class PostgreSQLRelationManager
extends java.lang.Object
This manager ensures that cross-reference (link) tables are created correctly
for any relation defined as SchemaI.RELATION_TYPE_N_M. It is responsible for:
int8 foreign key columns.Incorporates early-exit optimization strategies to bypass heavy JDBC catalog checks when the relational structure is already pristine.
| Constructor and Description |
|---|
PostgreSQLRelationManager(PostgreSQL pg,
PostgreSQLMigrationContext ctx,
PostgreSQLCatalogInspector inspector,
PostgreSQLIndexSynchronizer idxSync) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateRelationTables(SchemaI schema,
boolean nonDestructive)
Synchronizes n-m (many-to-many) relation tables.
|
void |
logObsoleteN2MTables(SchemaI schema)
Identifies and logs n-m tables that physically exist in the database
but are no longer defined in the current application schema.
|
public PostgreSQLRelationManager(PostgreSQL pg, PostgreSQLMigrationContext ctx, PostgreSQLCatalogInspector inspector, PostgreSQLIndexSynchronizer idxSync)
public void generateRelationTables(SchemaI schema, boolean nonDestructive)
schema - The active schema definition.nonDestructive - If true, prevents dropping obsolete relation tables.public void logObsoleteN2MTables(SchemaI schema)
schema - The current in-memory schema definition.Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.