Klasse DataWriter
java.lang.Object
ch.nolix.system.noderawdata.datawriter.DataWriter
- Alle implementierten Schnittstellen:
ChangeRequestable
,IChangeSaver
,IResettableChangeSaver
,Closeable
,CloseStateRequestable
,GroupCloseable
,Resettable
,IDataWriter
,AutoCloseable
-
Konstruktorübersicht
KonstruktorBeschreibungDataWriter
(IMutableNode<?> nodeDatabase, IContainer<ITableInfo> tableInfos) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
deleteEntity
(String tableName, IEntityHeadDto entity) Causes an error if the concerned entity was deleted or changed in the meanwhile.void
deleteMultiBackReferenceEntry
(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.void
deleteMultiReferenceEntries
(String tableName, String entityId, String multiReferenceColumnName) There is not asserted that the concerned entity was not changed in the meanwhile.void
deleteMultiReferenceEntry
(String tableName, String entityId, String multiRefereceColumnName, String referencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.void
deleteMultiValueEntries
(String tableName, String entityId, String multiValueColumnName) There is not asserted that the concerned entity was not changed in the meanwhile.void
deleteMultiValueEntry
(String tableName, String entityId, String multiValueColumnName, String entry) There is not asserted that the concerned entity was not changed in the meanwhile.void
expectGivenSchemaTimestamp
(ITime schemaTimestamp) Will cause an error if the database does not have the given schema timestamp.void
expectTableContainsEntity
(String tableName, String entityId) Will cause an error if the concerned table does not contain an entity with the given entityId.int
boolean
void
insertEntity
(String tableName, INewEntityDto newEntity) Inserts the given newEntity into the table with the given tableName.void
insertMultiBackReferenceEntry
(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.void
insertMultiReferenceEntry
(String tableName, String entityId, String multiReferenceColumnName, String referencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.void
insertMultiValueEntry
(String tableName, String entityId, String multiValueColumnName, String entry) There is not asserted that the concerned entity was not changed in the meanwhile.void
Lets the currentGroupCloseable
note a close.void
reset()
Resets the currentResettable
.void
Saves the changes of the currentIChangeSaver
.void
setEntityAsUpdated
(String tableName, IEntityHeadDto entity) Sets the concerned entity as updated.void
updateEntity
(String tableName, IEntityUpdateDto entityUpdate) There is not asserted that the concerned entity was not changed in the meanwhile.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.programcontrolapi.savecontrolapi.ChangeRequestable
isChangeFree
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.CloseStateRequestable
isOpen
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.GroupCloseable
close, createCloseDependencyTo, isClosed
-
Konstruktordetails
-
DataWriter
-
-
Methodendetails
-
deleteEntity
Beschreibung aus Schnittstelle kopiert:IDataWriter
Causes an error if the concerned entity was deleted or changed in the meanwhile.- Angegeben von:
deleteEntity
in SchnittstelleIDataWriter
- 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 SchnittstelleIDataWriter
- 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 SchnittstelleIDataWriter
- 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 SchnittstelleIDataWriter
- Parameter:
tableName
-entityId
-multiRefereceColumnName
-referencedEntityId
-
-
deleteMultiValueEntries
Beschreibung aus Schnittstelle kopiert:IDataWriter
There is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
deleteMultiValueEntries
in SchnittstelleIDataWriter
- 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 SchnittstelleIDataWriter
- Parameter:
tableName
-entityId
-multiValueColumnName
-entry
-
-
expectGivenSchemaTimestamp
Beschreibung aus Schnittstelle kopiert:IDataWriter
Will cause an error if the database does not have the given schema timestamp.- Angegeben von:
expectGivenSchemaTimestamp
in SchnittstelleIDataWriter
- Parameter:
schemaTimestamp
-
-
expectTableContainsEntity
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 SchnittstelleIDataWriter
- Parameter:
tableName
-entityId
-
-
getSaveCount
public int getSaveCount()- Angegeben von:
getSaveCount
in SchnittstelleIResettableChangeSaver
-
hasChanges
public boolean hasChanges()- Angegeben von:
hasChanges
in SchnittstelleChangeRequestable
- Gibt zurück:
- true if the current
ChangeRequestable
has uncomitted changes.
-
insertEntity
Beschreibung aus Schnittstelle kopiert:IDataWriter
Inserts the given newEntity into the table with the given tableName.- Angegeben von:
insertEntity
in SchnittstelleIDataWriter
- 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 SchnittstelleIDataWriter
- 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 SchnittstelleIDataWriter
- 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 SchnittstelleIDataWriter
- Parameter:
tableName
-entityId
-multiValueColumnName
-entry
-
-
getStoredCloseController
- Angegeben von:
getStoredCloseController
in SchnittstelleGroupCloseable
- Gibt zurück:
- the
ICloseController
of the currentGroupCloseable
.
-
noteClose
public void noteClose()Beschreibung aus Schnittstelle kopiert:GroupCloseable
Lets the currentGroupCloseable
note a close.- Angegeben von:
noteClose
in SchnittstelleGroupCloseable
-
reset
public void reset()Beschreibung aus Schnittstelle kopiert:Resettable
Resets the currentResettable
.- Angegeben von:
reset
in SchnittstelleResettable
-
saveChanges
public void saveChanges()Beschreibung aus Schnittstelle kopiert:IChangeSaver
Saves the changes of the currentIChangeSaver
.- Angegeben von:
saveChanges
in SchnittstelleIChangeSaver
-
setEntityAsUpdated
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 SchnittstelleIDataWriter
- Parameter:
tableName
-entity
-
-
updateEntity
Beschreibung aus Schnittstelle kopiert:IDataWriter
There is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
updateEntity
in SchnittstelleIDataWriter
- Parameter:
tableName
-entityUpdate
-
-