Package com.onec.schema
Class SchemaGenerator
java.lang.Object
com.onec.schema.SchemaGenerator
Renders
CREATE TABLE IF NOT EXISTS DDL for everything in the metadata registry.
Table layouts come from SchemaModelBuilder, the shared source of truth also used
by SchemaDiffEngine/SchemaUpgrader for evolving existing databases.
execute(Jdbi) is the simple bootstrap path: create what is missing, then add
missing columns. For the full lifecycle (renames, type changes, history, destructive-change
gating) use SchemaUpgrader.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.jdbi.v3.core.Jdbi jdbi) generateDDL(SqlDialect dialect) Index statements for every generated table, covering the columns the framework itself queries by: ref columns (auto-joins and reference expansion), catalog hierarchy parents, document dates, tabular-section owners, register periods, document refs, and dimensions.static Stringstatic Stringstatic Stringstatic String
-
Constructor Details
-
SchemaGenerator
-
-
Method Details
-
generateSequenceTableDDL
-
generateOutboxTableDDL
-
generateDDL
-
generateDDL
-
execute
public void execute(org.jdbi.v3.core.Jdbi jdbi) -
generateIndexDDL
Index statements for every generated table, covering the columns the framework itself queries by: ref columns (auto-joins and reference expansion), catalog hierarchy parents, document dates, tabular-section owners, register periods, document refs, and dimensions. Statements useIF NOT EXISTSand run after the additive column migration, so existing databases pick them up on next boot. -
sqlType
-
sqlType
-