The JDBCJournalSchemaGenerator is an auxiliary class that is used for database
administration tasks. It allows an application to do the following:
- Generate the set of tables for a journal schema with the given entity
names, number of journal generations, and column definitions for the journal
tables (in SQL format)
- Add or remove an entity from the list of entities
- Show the names of the defined entities
- Get the number of generations defined for a specific journal schema
- Remove the whole schema
The journal schema must be understood as an abstract way of grouping all
journal tables. By default, the Schema Generator will try to create a database
schema in the DBMS by using the SQL statement CREATE SCHEMA. Because not all
DBMSs allow schema generation and management, the application can change the
JDBCJournalSchemaGenerator default behavior by setting the createSchema attribute
to false, using the setCreateSchema(boolean newCreateSchema) method.
See Using the Electronic Journal
Schema Generator.