Package de.espirit.or.schema
Interface Schema
public interface Schema
Interface representing the or schema model.
- Since:
- 5.0.100
-
Method Summary
Modifier and TypeMethodDescription@NotNull EntityType
createEntityType
(String name) Create a new entity type with the givenname
@NotNull CaseMode
Get the case mode of the underlying database: lower, upper, or mixed case.@Nullable EntityType
getEntityType
(String name) Return the entity type with the given name if one was defined in this schema elsenull
@NotNull Collection<? extends EntityType>
Return all entity types contained in this schema.getName()
Return the name of this schema.boolean
Return true if this schema is a temporal schema else false test.void
removeEntityType
(EntityType entityType) Delete theentityType
from this schema.void
Set the name of this schema toname
.
-
Method Details
-
getCaseMode
Get the case mode of the underlying database: lower, upper, or mixed case.- Returns:
- The case mode of the underlying database.
- Since:
- 4.1.11
-
getName
String getName()Return the name of this schema.- Since:
- 4.0.17
-
setName
Set the name of this schema toname
. Also sets the internal database name of this schema.- Parameters:
name
- The name of this schema- Since:
- 3.0.313
-
isTemporal
boolean isTemporal()Return true if this schema is a temporal schema else false test.- Since:
- 4.0.17
-
createEntityType
Create a new entity type with the givenname
- Throws:
SchemaException
- Since:
- 4.0.17
-
getEntityType
Return the entity type with the given name if one was defined in this schema elsenull
- Since:
- 4.0.17
-
removeEntityType
Delete theentityType
from this schema.- Since:
- 4.0.17
-
getEntityTypes
Return all entity types contained in this schema.- Since:
- 4.0.17
-