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
- Version:
- 2021-09-19
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclearMultiReference(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.voidclearMultiValue(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.voiddeleteEntity(String tableName, EntityDeletionDto entity) Deletes the given entity from the database.voiddeleteMultiBackReferenceEntry(MultiBackReferenceEntryDeletionDto multiBackReferenceEntry) Deletes the given multiBackReferenceEntry from the database.voiddeleteMultiReferenceEntry(MultiReferenceEntryDeletionDto multiReferenceEntry) Deletes the given multiReferenceEntry from the database.voiddeleteMultiValueEntry(MultiValueEntryDto multiValueEntry) Deletes the given multiValueEntry from the database.voidexpectSchemaTimestamp(ITime schemaTimestamp) Will cause an error by saving if the database does not have the given schemaTimestamp.voidexpectTableContainsEntity(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.voidinsertEntity(String tableName, EntityCreationDto entity) Inserts the given entity into the table with the given tableName on the database.voidinsertMultiBackReferenceEntry(MultiBackReferenceEntryDto multiBackReferenceEntry) Inserts the given multiBackReferenceEntry into the database.voidinsertMultiReferenceEntry(MultiReferenceEntryDto multiReferenceEntry) Inserts the given multiReferenceEntry into the database.voidinsertMultiValueEntry(MultiValueEntryDto multiValueEntry) Inserts the given multiValueEntry into the database.voidupdateEntity(String tableName, EntityUpdateDto entityUpdate) Updates the entity, that belongs to the table with the given tableName, in the database according to the given entityUpdate.Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.savecontrol.ChangeRequestable
hasChanges, isChangeFreeVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosed, noteCloseVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.savecontrol.IChangeSaver
saveChangesVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.savecontrol.IResettableChangeSaver
getSaveCountVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.statemutation.Resettable
reset
-
Methodendetails
-
clearMultiReference
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
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
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
Deletes the given multiBackReferenceEntry from the database.- Parameter:
multiBackReferenceEntry-
-
deleteMultiReferenceEntry
Deletes the given multiReferenceEntry from the database.- Parameter:
multiReferenceEntry-
-
deleteMultiValueEntry
Deletes the given multiValueEntry from the database.- Parameter:
multiValueEntry-
-
expectSchemaTimestamp
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
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
Inserts the given entity into the table with the given tableName on the database.- Parameter:
tableName-entity-
-
insertMultiBackReferenceEntry
Inserts the given multiBackReferenceEntry into the database.- Parameter:
multiBackReferenceEntry-
-
insertMultiReferenceEntry
Inserts the given multiReferenceEntry into the database.- Parameter:
multiReferenceEntry-
-
insertMultiValueEntry
Inserts the given multiValueEntry into the database.- Parameter:
multiValueEntry-
-
updateEntity
Updates the entity, that belongs to the table with the given tableName, in the database according to the given entityUpdate.- Parameter:
tableName-entityUpdate-
-