java.lang.Object
is.codion.framework.domain.DomainModel
is.codion.framework.domain.db.SchemaDomain
- All Implemented Interfaces:
Domain
For instances use the available factory methods.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Specifies the settings used when deriving a domain model from a database schema. -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaDomain
schemaDomain
(DatabaseMetaData metaData, String schemaName) Factory method for creating a newSchemaDomain
instance.static SchemaDomain
schemaDomain
(DatabaseMetaData metaData, String schemaName, SchemaDomain.SchemaSettings settings) Factory method for creating a newSchemaDomain
instance.tableType
(EntityType entityType) Methods inherited from class is.codion.framework.domain.DomainModel
add, add, add, add, add, addEntities, addFunctions, addProcedures, addReports, entities, function, functions, procedure, procedures, report, reports, type, validateForeignKeys
-
Method Details
-
schemaDomain
Factory method for creating a newSchemaDomain
instance.- Parameters:
metaData
- the database metadataschemaName
- the schema name- Returns:
- a new
SchemaDomain
instance
-
schemaDomain
public static SchemaDomain schemaDomain(DatabaseMetaData metaData, String schemaName, SchemaDomain.SchemaSettings settings) Factory method for creating a newSchemaDomain
instance.- Parameters:
metaData
- the database metadataschemaName
- the schema namesettings
- the configuration- Returns:
- a new
SchemaDomain
instance
-
tableType
- Parameters:
entityType
- the entity type- Returns:
- the table type for the given entity type, table or view
-