Class SchemaDomain

java.lang.Object
is.codion.framework.domain.DomainModel
is.codion.framework.domain.db.SchemaDomain
All Implemented Interfaces:
Domain

public final class SchemaDomain extends DomainModel
A DomainModel generated from a database schema's DatabaseMetaData, with an EntityDefinition per table and foreign keys derived from the schema's referential constraints. The basis for the domain generator tooling. For instances use the available factory methods.

The domain is named after the schema. A database reporting neither schemas nor catalogs, SQLite, has its tables in the schema NO_SCHEMA, the domain then named after the database file, without its extension, library for jdbc:sqlite:/data/library.db, a character not valid in a java name replaced by an underscore, or after the schema for a database without a file, in memory or temporary.

See Also: