Package ch.nolix.system.middata.adapter
Klasse AbstractDataAdapter
java.lang.Object
ch.nolix.system.middata.adapter.AbstractDataAdapter
- Alle implementierten Schnittstellen:
ChangeRequestable,IChangeSaver,IResettableChangeSaver,Closeable,CloseStateRequestable,GroupCloseable,Resettable,IDataAdapter,IDataReader,IDataWriter,AutoCloseable
- Bekannte direkte Unterklassen:
AbstractDataAdapterAndSchemaReader,AbstractSqlDataAdapter,NodeDataAdapter
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedAbstractDataAdapter(IDataReader dataReader, IDataWriter dataWriter) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal voidclearMultiReference(String tableName, String entityId, String multiReferenceColumnName) This method does not validate that the concerned entity was not changed in the meanwhile.final voidclearMultiValue(String tableName, String entityId, String multiFieldColumn) This method does not validate that the concerned entity was not changed in the meanwhile.final voidcreateCloseDependencyTo(GroupCloseable element) Creates a close dependency between the currentGroupCloseableand the given element.final voiddeleteEntity(String tableName, EntityDeletionDto entity) Causes an error if the concerned entity was deleted or changed in the meanwhile.final voiddeleteMultiBackReferenceEntry(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId) This method does not validate that the concerned entity was not changed in the meanwhile.final voiddeleteMultiReferenceEntry(String tableName, String entityId, String multiRefereceColumnName, String referencedEntityId) This method does not validate that the concerned entity was not changed in the meanwhile.final voiddeleteMultiValueEntry(String tableName, String entityId, String multiFieldColumn, String entry) This method does not validate that the concerned entity was not changed in the meanwhile.final voidexpectSchemaTimestamp(ITime schemaTimestamp) Will cause an error if the database does not have the given schema timestamp.final voidexpectTableContainsEntity(String tableName, String entityId) Will cause an error if the concerned table does not contain an entity with the given entityId.final Stringfinal intfinal ITimefinal ICloseControllerfinal booleanfinal voidinsertEntity(String tableName, EntityCreationDto newEntity) Inserts the given newEntity into the table with the given tableName.final 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.final voidinsertMultiValueEntry(String tableName, String entityId, String multiFieldColumn, String entry) This method does not validate that the concerned entity was not changed in the meanwhile.final IContainer<EntityLoadingDto> loadEntities(String tableName) final EntityLoadingDtoloadEntity(String tableName, String id) final IContainer<String> loadMultiBackReferenceEntries(String tableName, String entityId, String multiBackReferenceColumnName) final IContainer<String> loadMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName) final IContainer<Object> loadMultiValueEntries(String tableName, String entityId, String multiFieldColumnName) final voidLets the currentGroupCloseablenote a close.final voidreset()Resets the currentResettable.final voidSaves the changes of the currentIChangeSaver.final booleantableContainsEntity(String tableName, String id) final booleantableContainsEntityWithValueAtColumn(String tableName, String columnName, String value) final booleantableContainsEntityWithValueAtColumnIgnoringEntities(String tableName, String columnName, String value, IContainer<String> entitiesToIgnoreIds) final 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, isClosed
-
Konstruktordetails
-
AbstractDataAdapter
-
-
Methodendetails
-
createCloseDependencyTo
Beschreibung aus Schnittstelle kopiert:GroupCloseableCreates a close dependency between the currentGroupCloseableand the given element. When aGroupCloseableis closed, all elements, the currentGroupCloseablehas a close dependency to, will be closed too and vice versa.- Angegeben von:
createCloseDependencyToin SchnittstelleGroupCloseable- Parameter:
element-
-
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 final 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-
-
clearMultiReference
public final void clearMultiReference(String tableName, String entityId, String multiReferenceColumnName) 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-
-
deleteMultiReferenceEntry
public final 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-
-
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-multiFieldColumn-
-
deleteMultiValueEntry
public final void deleteMultiValueEntry(String tableName, String entityId, String multiFieldColumn, 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-multiFieldColumn-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-
-
getDatabaseName
- Angegeben von:
getDatabaseNamein SchnittstelleIDataReader
-
getSaveCount
public final int getSaveCount()- Angegeben von:
getSaveCountin SchnittstelleIResettableChangeSaver
-
getSchemaTimestamp
- Angegeben von:
getSchemaTimestampin SchnittstelleIDataReader
-
getStoredCloseController
- Angegeben von:
getStoredCloseControllerin SchnittstelleGroupCloseable- Gibt zurück:
- the
ICloseControllerof the currentGroupCloseable.
-
hasChanges
public final boolean hasChanges()- Angegeben von:
hasChangesin SchnittstelleChangeRequestable- Gibt zurück:
- true if the current
ChangeRequestablehas uncomitted changes.
-
insertMultiBackReferenceEntry
public final 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 final void insertMultiValueEntry(String tableName, String entityId, String multiFieldColumn, 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-multiFieldColumn-entry-
-
insertEntity
Beschreibung aus Schnittstelle kopiert:IDataWriterInserts the given newEntity into the table with the given tableName.- Angegeben von:
insertEntityin SchnittstelleIDataWriter- Parameter:
tableName-newEntity-
-
loadMultiBackReferenceEntries
public final IContainer<String> loadMultiBackReferenceEntries(String tableName, String entityId, String multiBackReferenceColumnName) - Angegeben von:
loadMultiBackReferenceEntriesin SchnittstelleIDataReader
-
loadMultiReferenceEntries
public final IContainer<String> loadMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName) - Angegeben von:
loadMultiReferenceEntriesin SchnittstelleIDataReader
-
loadMultiValueEntries
public final IContainer<Object> loadMultiValueEntries(String tableName, String entityId, String multiFieldColumnName) - Angegeben von:
loadMultiValueEntriesin SchnittstelleIDataReader
-
loadEntities
- Angegeben von:
loadEntitiesin SchnittstelleIDataReader
-
loadEntity
- Angegeben von:
loadEntityin SchnittstelleIDataReader
-
noteClose
public final void noteClose()Beschreibung aus Schnittstelle kopiert:GroupCloseableLets the currentGroupCloseablenote a close.- Angegeben von:
noteClosein SchnittstelleGroupCloseable
-
reset
public final void reset()Beschreibung aus Schnittstelle kopiert:ResettableResets the currentResettable.- Angegeben von:
resetin SchnittstelleResettable
-
saveChanges
public final void saveChanges()Beschreibung aus Schnittstelle kopiert:IChangeSaverSaves the changes of the currentIChangeSaver.- Angegeben von:
saveChangesin SchnittstelleIChangeSaver
-
tableContainsEntityWithValueAtColumn
public final boolean tableContainsEntityWithValueAtColumn(String tableName, String columnName, String value) - Angegeben von:
tableContainsEntityWithValueAtColumnin SchnittstelleIDataReader
-
tableContainsEntityWithValueAtColumnIgnoringEntities
public final boolean tableContainsEntityWithValueAtColumnIgnoringEntities(String tableName, String columnName, String value, IContainer<String> entitiesToIgnoreIds) - Angegeben von:
tableContainsEntityWithValueAtColumnIgnoringEntitiesin SchnittstelleIDataReader
-
tableContainsEntity
- Angegeben von:
tableContainsEntityin SchnittstelleIDataReader
-
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-
-