Schnittstelle IDataWriter

Alle Superschnittstellen:
AutoCloseable, ChangeRequestable, Closeable, CloseStateRequestable, GroupCloseable, IChangeSaver, IResettableChangeSaver, Resettable
Alle bekannten Unterschnittstellen:
IDataAdapter, IDataAdapterAndSchemaReader
Alle bekannten Implementierungsklassen:
AbstractDataAdapter, AbstractDataAdapterAndSchemaReader, AbstractSqlDataAdapter, DataWriter, DataWriter, MsSqlDataAdapter, MsSqlDataAdapterAndSchemaReader, NodeDataAdapter, NodeDataAdapterAndSchemaReader

public interface IDataWriter extends IResettableChangeSaver
Version:
2021-09-19
Autor:
Silvan Wyss
  • Methodendetails

    • clearMultiReference

      void clearMultiReference(String tableName, String entityId, String multiReferenceColumnName)
      Deletes the references of the multi reference, that is in the multi reference column with the given multiReferenceColumnName and belongs to the entity, that has the given entityId and belongs to the table with the given tableName, from the database.
      Parameter:
      tableName -
      entityId -
      multiReferenceColumnName -
    • clearMultiValue

      void clearMultiValue(String tableName, String entityId, String multiValueColumnName)
      Deletes the values of the multi value, that is in the multi value column with the given multiValueColumnName and belongs to the entity, that has the given entityId and belongs to the table with the given tableName, from the database.
      Parameter:
      tableName -
      entityId -
      multiValueColumnName -
    • deleteEntity

      void deleteEntity(String tableName, EntityDeletionDto entity)
      Deletes the given entity from the database. Will cause an error by saving if the given entity was deleted or changed on the database in the meanwhile.
      Parameter:
      tableName -
      entity -
    • deleteMultiBackReferenceEntry

      void deleteMultiBackReferenceEntry(MultiBackReferenceEntryDeletionDto multiBackReferenceEntry)
      Deletes the given multiBackReferenceEntry from the database.
      Parameter:
      multiBackReferenceEntry -
    • deleteMultiReferenceEntry

      void deleteMultiReferenceEntry(MultiReferenceEntryDeletionDto multiReferenceEntry)
      Deletes the given multiReferenceEntry from the database.
      Parameter:
      multiReferenceEntry -
    • deleteMultiValueEntry

      void deleteMultiValueEntry(MultiValueEntryDto multiValueEntry)
      Deletes the given multiValueEntry from the database.
      Parameter:
      multiValueEntry -
    • expectSchemaTimestamp

      void expectSchemaTimestamp(ITime schemaTimestamp)
      Will cause an error by saving if the database does not have the given schemaTimestamp. This method can be used to prevent from saving changes when the schemaTimestamp was changed in the meanwhile
      Parameter:
      schemaTimestamp -
    • expectTableContainsEntity

      void expectTableContainsEntity(String tableName, String entityId)
      Will cause an error by saving if on the database the table with the given tableName does not contain an entity with the given entityId. This method can be used to prevent from referencing an entity that was deleted in the meanwhile.
      Parameter:
      tableName -
      entityId -
    • insertEntity

      void insertEntity(String tableName, EntityCreationDto entity)
      Inserts the given entity into the table with the given tableName on the database.
      Parameter:
      tableName -
      entity -
    • insertMultiBackReferenceEntry

      void insertMultiBackReferenceEntry(MultiBackReferenceEntryDto multiBackReferenceEntry)
      Inserts the given multiBackReferenceEntry into the database.
      Parameter:
      multiBackReferenceEntry -
    • insertMultiReferenceEntry

      void insertMultiReferenceEntry(MultiReferenceEntryDto multiReferenceEntry)
      Inserts the given multiReferenceEntry into the database.
      Parameter:
      multiReferenceEntry -
    • insertMultiValueEntry

      void insertMultiValueEntry(MultiValueEntryDto multiValueEntry)
      Inserts the given multiValueEntry into the database.
      Parameter:
      multiValueEntry -
    • updateEntity

      void updateEntity(String tableName, EntityUpdateDto entityUpdate)
      Updates the entity, that belongs to the table with the given tableName, in the database according to the given entityUpdate.
      Parameter:
      tableName -
      entityUpdate -