public interface DatasetProvider
Modifier and Type | Method and Description |
---|---|
Dataset |
createDataset()
Creates a new entity with the entity type of this dataset provider and returns a new dataset for this entity.
|
Dataset |
getDataset(Entity entity)
Get a dataset for the given entity.
|
Dataset |
getDataset(Entity entity,
Revision revision)
Get a dataset for the given entity in a defined revision.
|
EntityType |
getEntityType()
Get the entity type supported by this dataset provider.
|
Schema |
getSchema()
Get the schema the provider refers to.
|
@NotNull Dataset getDataset(@NotNull Entity entity)
entity
- The entity to get as Dataset.@NotNull Dataset createDataset()
@Nullable Dataset getDataset(@NotNull Entity entity, @NotNull Revision revision)
entity
- The entity to get as Dataset.revision
- The revision to get the Dataset in.null
.@NotNull EntityType getEntityType() throws de.espirit.firstspirit.access.database.EntityTypeNotFoundException
EntityTypeNotFoundException
de.espirit.firstspirit.access.database.EntityTypeNotFoundException
- when a referenced entity type (database table) does not exist.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210