Schnittstelle IDataWriter

Alle Superschnittstellen:
AutoCloseable, ChangeRequestable, Closeable, CloseStateRequestable, GroupCloseable, IChangeSaver, IResettableChangeSaver, Resettable
Alle bekannten Unterschnittstellen:
IDataAdapter, IDataAndSchemaAdapter
Alle bekannten Implementierungsklassen:
BaseDataAdapter, BaseDataAndSchemaAdapter, DataAdapter, DataAdapter, DataAndSchemaAdapter, DataWriter, DataWriter, MsSqlDataAdapter, MsSqlDataAndSchemaAdapter

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

    • deleteEntity

      void deleteEntity(String tableName, IEntityHeadDto entity)
      Causes an error if the concerned entity was deleted or changed in the meanwhile.
      Parameter:
      tableName -
      entity -
    • deleteMultiBackReferenceEntry

      void deleteMultiBackReferenceEntry(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId)
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Parameter:
      tableName -
      entityId -
      multiBackReferenceColumnId -
      backReferencedEntityId -
    • deleteMultiReferenceEntries

      void deleteMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName)
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Parameter:
      tableName -
      entityId -
      multiReferenceColumnName -
    • deleteMultiReferenceEntry

      void deleteMultiReferenceEntry(String tableName, String entityId, String multiRefereceColumnName, String referencedEntityId)
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Parameter:
      tableName -
      entityId -
      multiRefereceColumnName -
      referencedEntityId -
    • deleteMultiValueEntries

      void deleteMultiValueEntries(String tableName, String entityId, String multiValueColumnName)
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Parameter:
      tableName -
      entityId -
      multiValueColumnName -
    • deleteMultiValueEntry

      void deleteMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry)
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Parameter:
      tableName -
      entityId -
      multiValueColumnName -
      entry -
    • expectTableContainsEntity

      void expectTableContainsEntity(String tableName, String entityId)
      Will cause an error if the concerned table 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 -
    • expectGivenSchemaTimestamp

      void expectGivenSchemaTimestamp(ITime schemaTimestamp)
      Will cause an error if the database does not have the given schema timestamp.
      Parameter:
      schemaTimestamp -
    • insertEntity

      void insertEntity(String tableName, INewEntityDto newEntity)
      Inserts the given newEntity into the table with the given tableName.
      Parameter:
      tableName -
      newEntity -
    • insertMultiBackReferenceEntry

      void insertMultiBackReferenceEntry(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId)
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Parameter:
      tableName -
      entityId -
      multiBackReferenceColumnId -
      backReferencedEntityId -
    • insertMultiReferenceEntry

      void insertMultiReferenceEntry(String tableName, String entityId, String multiReferenceColumnName, String referencedEntityId)
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Parameter:
      tableName -
      entityId -
      multiReferenceColumnName -
      referencedEntityId -
    • insertMultiValueEntry

      void insertMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry)
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Parameter:
      tableName -
      entityId -
      multiValueColumnName -
      entry -
    • setEntityAsUpdated

      void setEntityAsUpdated(String tableName, IEntityHeadDto entity)
      Sets the concerned entity as updated. Will cause an error if the concerned entity was deleted or changed in the meanwhile.
      Parameter:
      tableName -
      entity -
    • updateEntity

      void updateEntity(String tableName, IEntityUpdateDto entityUpdate)
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Parameter:
      tableName -
      entityUpdate -