Klasse DataWriter

java.lang.Object
ch.nolix.system.noderawdata.datawriter.DataWriter
Alle implementierten Schnittstellen:
ChangeRequestable, IChangeSaver, IResettableChangeSaver, Closeable, CloseStateRequestable, GroupCloseable, Resettable, IDataWriter, AutoCloseable

public final class DataWriter extends Object implements IDataWriter
  • Konstruktordetails

  • Methodendetails

    • deleteEntity

      public void deleteEntity(String tableName, IEntityHeadDto entity)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      Causes an error if the concerned entity was deleted or changed in the meanwhile.
      Angegeben von:
      deleteEntity in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entity -
    • deleteMultiBackReferenceEntry

      public void deleteMultiBackReferenceEntry(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Angegeben von:
      deleteMultiBackReferenceEntry in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entityId -
      multiBackReferenceColumnId -
      backReferencedEntityId -
    • deleteMultiReferenceEntries

      public void deleteMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Angegeben von:
      deleteMultiReferenceEntries in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entityId -
      multiReferenceColumnName -
    • deleteMultiReferenceEntry

      public void deleteMultiReferenceEntry(String tableName, String entityId, String multiRefereceColumnName, String referencedEntityId)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Angegeben von:
      deleteMultiReferenceEntry in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entityId -
      multiRefereceColumnName -
      referencedEntityId -
    • deleteMultiValueEntries

      public void deleteMultiValueEntries(String tableName, String entityId, String multiValueColumnName)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Angegeben von:
      deleteMultiValueEntries in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entityId -
      multiValueColumnName -
    • deleteMultiValueEntry

      public void deleteMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Angegeben von:
      deleteMultiValueEntry in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entityId -
      multiValueColumnName -
      entry -
    • expectGivenSchemaTimestamp

      public void expectGivenSchemaTimestamp(ITime schemaTimestamp)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      Will cause an error if the database does not have the given schema timestamp.
      Angegeben von:
      expectGivenSchemaTimestamp in Schnittstelle IDataWriter
      Parameter:
      schemaTimestamp -
    • expectTableContainsEntity

      public void expectTableContainsEntity(String tableName, String entityId)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      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.
      Angegeben von:
      expectTableContainsEntity in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entityId -
    • getSaveCount

      public int getSaveCount()
      Angegeben von:
      getSaveCount in Schnittstelle IResettableChangeSaver
    • hasChanges

      public boolean hasChanges()
      Angegeben von:
      hasChanges in Schnittstelle ChangeRequestable
      Gibt zurück:
      true if the current ChangeRequestable has uncomitted changes.
    • insertEntity

      public void insertEntity(String tableName, INewEntityDto newEntity)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      Inserts the given newEntity into the table with the given tableName.
      Angegeben von:
      insertEntity in Schnittstelle IDataWriter
      Parameter:
      tableName -
      newEntity -
    • insertMultiBackReferenceEntry

      public void insertMultiBackReferenceEntry(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Angegeben von:
      insertMultiBackReferenceEntry in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entityId -
      multiBackReferenceColumnId -
      backReferencedEntityId -
    • insertMultiReferenceEntry

      public void insertMultiReferenceEntry(String tableName, String entityId, String multiReferenceColumnName, String referencedEntityId)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Angegeben von:
      insertMultiReferenceEntry in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entityId -
      multiReferenceColumnName -
      referencedEntityId -
    • insertMultiValueEntry

      public void insertMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Angegeben von:
      insertMultiValueEntry in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entityId -
      multiValueColumnName -
      entry -
    • getStoredCloseController

      public CloseController getStoredCloseController()
      Angegeben von:
      getStoredCloseController in Schnittstelle GroupCloseable
      Gibt zurück:
      the ICloseController of the current GroupCloseable.
    • noteClose

      public void noteClose()
      Beschreibung aus Schnittstelle kopiert: GroupCloseable
      Lets the current GroupCloseable note a close.
      Angegeben von:
      noteClose in Schnittstelle GroupCloseable
    • reset

      public void reset()
      Beschreibung aus Schnittstelle kopiert: Resettable
      Resets the current Resettable.
      Angegeben von:
      reset in Schnittstelle Resettable
    • saveChanges

      public void saveChanges()
      Beschreibung aus Schnittstelle kopiert: IChangeSaver
      Saves the changes of the current IChangeSaver.
      Angegeben von:
      saveChanges in Schnittstelle IChangeSaver
    • setEntityAsUpdated

      public void setEntityAsUpdated(String tableName, IEntityHeadDto entity)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      Sets the concerned entity as updated. Will cause an error if the concerned entity was deleted or changed in the meanwhile.
      Angegeben von:
      setEntityAsUpdated in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entity -
    • updateEntity

      public void updateEntity(String tableName, IEntityUpdateDto entityUpdate)
      Beschreibung aus Schnittstelle kopiert: IDataWriter
      There is not asserted that the concerned entity was not changed in the meanwhile.
      Angegeben von:
      updateEntity in Schnittstelle IDataWriter
      Parameter:
      tableName -
      entityUpdate -