public class PostgreSQLInheritanceManager
extends java.lang.Object
INHERITS clause).
MyTISM maps Object-Oriented (OO) entity hierarchies directly to PostgreSQL's table
inheritance feature. This class evaluates the StructuredEntityI.getBaseEntity()
relations and compares them against the physical pg_inherits catalog.
Responsibilities:
INHERIT).NO INHERIT).| Constructor and Description |
|---|
PostgreSQLInheritanceManager(PostgreSQL pg,
PostgreSQLMigrationContext ctx,
PostgreSQLTableMigrator tblMgr,
PostgreSQLCatalogInspector inspector) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInheritanceForEntity(CBOEntityI entity,
boolean disconnectOnly)
Recursively verifies and corrects the PostgreSQL table inheritance structure
(
INHERITS) to match the MyTISM entity hierarchy. |
boolean |
removeInheritance(java.lang.String tableName,
java.lang.String parentTableName)
Detaches a table from an incorrect or outdated parent table.
|
public PostgreSQLInheritanceManager(PostgreSQL pg, PostgreSQLMigrationContext ctx, PostgreSQLTableMigrator tblMgr, PostgreSQLCatalogInspector inspector)
public boolean checkInheritanceForEntity(CBOEntityI entity, boolean disconnectOnly)
INHERITS) to match the MyTISM entity hierarchy.entity - The entity to evaluate.disconnectOnly - If true, only removes faulty inheritances without establishing new ones.public boolean removeInheritance(java.lang.String tableName,
java.lang.String parentTableName)
tableName - The table being altered.parentTableName - The table it is detached from.Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.