public class TableDependencyTracker extends Object
In Spanner, interleaved tables must be created or dropped in the correct order. For example, one must create a parent table before its interleaved table. And one must drop the interleaved table first before its parent table.
| Constructor and Description |
|---|
TableDependencyTracker() |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.hibernate.mapping.Table> |
getDependentTables(org.hibernate.mapping.Table table)
Returns the list of tables that one must process before processing the provided
table. |
void |
initializeDependencies(org.hibernate.boot.Metadata metadata,
org.hibernate.tool.schema.Action schemaAction)
Initializes the table dependency tracker.
|
public void initializeDependencies(org.hibernate.boot.Metadata metadata,
org.hibernate.tool.schema.Action schemaAction)
metadata - the Hibernate metadataschemaAction - the kind of schema operation being done: {CREATE or DROP}.public Collection<org.hibernate.mapping.Table> getDependentTables(org.hibernate.mapping.Table table)
table.table - The table that you wish to processArrayDeque of tables to process before processing tableCopyright © 2022 Google LLC. All rights reserved.