Interface Schema


public interface Schema
Interface representing the or schema model.
Since:
5.0.100
  • Method Details

    • getCaseMode

      @NotNull @NotNull CaseMode 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

      void setName(String name)
      Set the name of this schema to name. 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

      @NotNull @NotNull EntityType createEntityType(String name) throws de.espirit.or.SchemaException
      Create a new entity type with the given name
      Throws:
      de.espirit.or.SchemaException
      Since:
      4.0.17
    • getEntityType

      @Nullable @Nullable EntityType getEntityType(String name)
      Return the entity type with the given name if one was defined in this schema else null
      Since:
      4.0.17
    • removeEntityType

      void removeEntityType(EntityType entityType)
      Delete the entityType from this schema.
      Since:
      4.0.17
    • getEntityTypes

      @NotNull @NotNull Collection<? extends EntityType> getEntityTypes()
      Return all entity types contained in this schema.
      Since:
      4.0.17