Klasse DataWriter
java.lang.Object
ch.nolix.system.sqlmiddata.datawriter.DataWriter
- Alle implementierten Schnittstellen:
ChangeRequestable,IChangeSaver,IResettableChangeSaver,Closeable,CloseStateRequestable,GroupCloseable,Resettable,IDataWriter,AutoCloseable
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclearMultiReference(String tableName, String entityId, String multiReferenceColumnName) This method does not validate that the concerned entity was not changed in the meanwhile.voidclearMultiValue(String tableName, String entityId, String multiValueColumnName) This method does not validate that the concerned entity was not changed in the meanwhile.voiddeleteEntity(String tableName, EntityDeletionDto entity) Causes an error if the concerned entity was deleted or changed in the meanwhile.voiddeleteMultiBackReferenceEntry(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId) This method does not validate that the concerned entity was not changed in the meanwhile.voiddeleteMultiReferenceEntry(String tableName, String entityId, String multiRefereceColumnName, String referencedEntityId) This method does not validate that the concerned entity was not changed in the meanwhile.voiddeleteMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry) This method does not validate that the concerned entity was not changed in the meanwhile.voidexpectSchemaTimestamp(ITime schemaTimestamp) Will cause an error if the database does not have the given schema timestamp.voidexpectTableContainsEntity(String tableName, String entityId) Will cause an error if the concerned table does not contain an entity with the given entityId.static DataWriterforDatabaseNameAndDatabaseSchemaViewAndSqlConnection(String databaseName, DatabaseViewDto databaseSchemaView, ISqlConnection sqlConnection) intbooleanvoidinsertEntity(String tableName, EntityCreationDto newEntity) Inserts the given newEntity into the table with the given tableName.voidinsertMultiBackReferenceEntry(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId) This method does not validate that the concerned entity was not changed in the meanwhile.voidinsertMultiReferenceEntry(MultiReferenceEntryDto multiReferenceEntry) This method does not validate that the concerned entity was not changed in the meanwhile.voidinsertMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry) This method does not validate that the concerned entity was not changed in the meanwhile.voidLets the currentGroupCloseablenote a close.voidreset()Resets the currentResettable.voidSaves the changes of the currentIChangeSaver.voidupdateEntity(String tableName, EntityUpdateDto entityUpdate) This method does not validate 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, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.programcontrolapi.savecontrolapi.ChangeRequestable
isChangeFreeVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.GroupCloseable
close, createCloseDependencyTo, isClosed
-
Methodendetails
-
forDatabaseNameAndDatabaseSchemaViewAndSqlConnection
public static DataWriter forDatabaseNameAndDatabaseSchemaViewAndSqlConnection(String databaseName, DatabaseViewDto databaseSchemaView, ISqlConnection sqlConnection) -
clearMultiReference
Beschreibung aus Schnittstelle kopiert:IDataWriterThis method does not validate that the concerned entity was not changed in the meanwhile.- Angegeben von:
clearMultiReferencein SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiReferenceColumnName-
-
clearMultiValue
Beschreibung aus Schnittstelle kopiert:IDataWriterThis method does not validate that the concerned entity was not changed in the meanwhile.- Angegeben von:
clearMultiValuein SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiValueColumnName-
-
deleteEntity
Beschreibung aus Schnittstelle kopiert:IDataWriterCauses an error if the concerned entity was deleted or changed in the meanwhile.- Angegeben von:
deleteEntityin SchnittstelleIDataWriter- Parameter:
tableName-entity-
-
deleteMultiBackReferenceEntry
public void deleteMultiBackReferenceEntry(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId) Beschreibung aus Schnittstelle kopiert:IDataWriterThis method does not validate that the concerned entity was not changed in the meanwhile.- Angegeben von:
deleteMultiBackReferenceEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiBackReferenceColumnId-backReferencedEntityId-
-
deleteMultiReferenceEntry
public void deleteMultiReferenceEntry(String tableName, String entityId, String multiRefereceColumnName, String referencedEntityId) Beschreibung aus Schnittstelle kopiert:IDataWriterThis method does not validate that the concerned entity was not changed in the meanwhile.- Angegeben von:
deleteMultiReferenceEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiRefereceColumnName-referencedEntityId-
-
deleteMultiValueEntry
public void deleteMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry) Beschreibung aus Schnittstelle kopiert:IDataWriterThis method does not validate that the concerned entity was not changed in the meanwhile.- Angegeben von:
deleteMultiValueEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiValueColumnName-entry-
-
expectSchemaTimestamp
Beschreibung aus Schnittstelle kopiert:IDataWriterWill cause an error if the database does not have the given schema timestamp.- Angegeben von:
expectSchemaTimestampin SchnittstelleIDataWriter- Parameter:
schemaTimestamp-
-
expectTableContainsEntity
Beschreibung aus Schnittstelle kopiert:IDataWriterWill 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:
expectTableContainsEntityin SchnittstelleIDataWriter- Parameter:
tableName-entityId-
-
getStoredCloseController
- Angegeben von:
getStoredCloseControllerin SchnittstelleGroupCloseable- Gibt zurück:
- the
ICloseControllerof the currentGroupCloseable.
-
getSaveCount
public int getSaveCount()- Angegeben von:
getSaveCountin SchnittstelleIResettableChangeSaver
-
hasChanges
public boolean hasChanges()- Angegeben von:
hasChangesin SchnittstelleChangeRequestable- Gibt zurück:
- true if the current
ChangeRequestablehas uncomitted changes.
-
insertEntity
Beschreibung aus Schnittstelle kopiert:IDataWriterInserts the given newEntity into the table with the given tableName.- Angegeben von:
insertEntityin SchnittstelleIDataWriter- Parameter:
tableName-newEntity-
-
insertMultiBackReferenceEntry
public void insertMultiBackReferenceEntry(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId) Beschreibung aus Schnittstelle kopiert:IDataWriterThis method does not validate that the concerned entity was not changed in the meanwhile.- Angegeben von:
insertMultiBackReferenceEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiBackReferenceColumnId-backReferencedEntityId-
-
insertMultiReferenceEntry
Beschreibung aus Schnittstelle kopiert:IDataWriterThis method does not validate that the concerned entity was not changed in the meanwhile.- Angegeben von:
insertMultiReferenceEntryin SchnittstelleIDataWriter- Parameter:
multiReferenceEntry-
-
insertMultiValueEntry
public void insertMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry) Beschreibung aus Schnittstelle kopiert:IDataWriterThis method does not validate that the concerned entity was not changed in the meanwhile.- Angegeben von:
insertMultiValueEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiValueColumnName-entry-
-
noteClose
public void noteClose()Beschreibung aus Schnittstelle kopiert:GroupCloseableLets the currentGroupCloseablenote a close.- Angegeben von:
noteClosein SchnittstelleGroupCloseable
-
reset
public void reset()Beschreibung aus Schnittstelle kopiert:ResettableResets the currentResettable.- Angegeben von:
resetin SchnittstelleResettable
-
saveChanges
public void saveChanges()Beschreibung aus Schnittstelle kopiert:IChangeSaverSaves the changes of the currentIChangeSaver.- Angegeben von:
saveChangesin SchnittstelleIChangeSaver
-
updateEntity
Beschreibung aus Schnittstelle kopiert:IDataWriterThis method does not validate that the concerned entity was not changed in the meanwhile.- Angegeben von:
updateEntityin SchnittstelleIDataWriter- Parameter:
tableName-entityUpdate-
-