Klasse BaseDataAdapter
java.lang.Object
ch.nolix.system.baserawdatabase.databaseadapter.BaseDataAdapter
- Alle implementierten Schnittstellen:
ChangeRequestable
,IChangeSaver
,IResettableChangeSaver
,Closeable
,CloseStateRequestable
,GroupCloseable
,Resettable
,IDataAdapter
,IDataReader
,IDataWriter
,AutoCloseable
- Bekannte direkte Unterklassen:
DataAdapter
,DataAdapter
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
BaseDataAdapter
(IDataReader dataReader, IDataWriter dataWriter) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal void
deleteEntity
(String tableName, IEntityHeadDto entity) Causes an error if the concerned entity was deleted or changed in the meanwhile.final void
deleteMultiBackReferenceEntry
(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.final void
deleteMultiReferenceEntries
(String tableName, String entityId, String multiReferenceColumnName) There is not asserted that the concerned entity was not changed in the meanwhile.final void
deleteMultiReferenceEntry
(String tableName, String entityId, String multiRefereceColumnName, String referencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.final void
deleteMultiValueEntries
(String tableName, String entityId, String multiFieldColumn) There is not asserted that the concerned entity was not changed in the meanwhile.final void
deleteMultiValueEntry
(String tableName, String entityId, String multiFieldColumn, String entry) There is not asserted that the concerned entity was not changed in the meanwhile.final void
expectGivenSchemaTimestamp
(ITime schemaTimestamp) Will cause an error if the database does not have the given schema timestamp.final void
expectTableContainsEntity
(String tableName, String entityId) Will cause an error if the concerned table does not contain an entity with the given entityId.final int
final ITime
final CloseController
final boolean
final void
insertEntity
(String tableName, INewEntityDto newEntity) Inserts the given newEntity into the table with the given tableName.final void
insertMultiBackReferenceEntry
(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.final void
insertMultiReferenceEntry
(String tableName, String entityId, String multiReferenceColumnName, String referencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.final void
insertMultiValueEntry
(String tableName, String entityId, String multiFieldColumn, String entry) There is not asserted that the concerned entity was not changed in the meanwhile.final IContainer
<ILoadedEntityDto> loadEntitiesOfTable
(String tableName) final ILoadedEntityDto
loadEntity
(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 void
Lets the currentGroupCloseable
note a close.final void
reset()
Resets the currentResettable
.final void
Saves the changes of the currentIChangeSaver
.final void
setEntityAsUpdated
(String tableName, IEntityHeadDto entity) Sets the concerned entity as updated.final boolean
tableContainsEntityWithGivenId
(String tableName, String id) final boolean
tableContainsEntityWithGivenValueAtGivenColumn
(String tableName, String columnName, String value) final boolean
tableContainsEntityWithGivenValueAtGivenColumnIgnoringGivenEntities
(String tableName, String columnName, String value, IContainer<String> entitiesToIgnoreIds) final 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
-
BaseDataAdapter
-
-
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 final 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 final 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 final 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
public final void deleteMultiValueEntries(String tableName, String entityId, String multiFieldColumn) 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
-multiFieldColumn
-
-
deleteMultiValueEntry
public final void deleteMultiValueEntry(String tableName, String entityId, String multiFieldColumn, 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
-multiFieldColumn
-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
-
-
getStoredCloseController
- Angegeben von:
getStoredCloseController
in SchnittstelleGroupCloseable
- Gibt zurück:
- the
ICloseController
of the currentGroupCloseable
.
-
getSaveCount
public final int getSaveCount()- Angegeben von:
getSaveCount
in SchnittstelleIResettableChangeSaver
-
getSchemaTimestamp
- Angegeben von:
getSchemaTimestamp
in SchnittstelleIDataReader
-
hasChanges
public final boolean hasChanges()- Angegeben von:
hasChanges
in SchnittstelleChangeRequestable
- Gibt zurück:
- true if the current
ChangeRequestable
has uncomitted changes.
-
insertMultiBackReferenceEntry
public final 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 final 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 final void insertMultiValueEntry(String tableName, String entityId, String multiFieldColumn, 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
-multiFieldColumn
-entry
-
-
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
-
-
loadMultiBackReferenceEntries
public final IContainer<String> loadMultiBackReferenceEntries(String tableName, String entityId, String multiBackReferenceColumnName) - Angegeben von:
loadMultiBackReferenceEntries
in SchnittstelleIDataReader
-
loadMultiReferenceEntries
public final IContainer<String> loadMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName) - Angegeben von:
loadMultiReferenceEntries
in SchnittstelleIDataReader
-
loadMultiValueEntries
public final IContainer<Object> loadMultiValueEntries(String tableName, String entityId, String multiFieldColumnName) - Angegeben von:
loadMultiValueEntries
in SchnittstelleIDataReader
-
loadEntitiesOfTable
- Angegeben von:
loadEntitiesOfTable
in SchnittstelleIDataReader
-
loadEntity
- Angegeben von:
loadEntity
in SchnittstelleIDataReader
-
noteClose
public final void noteClose()Beschreibung aus Schnittstelle kopiert:GroupCloseable
Lets the currentGroupCloseable
note a close.- Angegeben von:
noteClose
in SchnittstelleGroupCloseable
-
reset
public final void reset()Beschreibung aus Schnittstelle kopiert:Resettable
Resets the currentResettable
.- Angegeben von:
reset
in SchnittstelleResettable
-
saveChanges
public final 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
-
-
tableContainsEntityWithGivenValueAtGivenColumn
public final boolean tableContainsEntityWithGivenValueAtGivenColumn(String tableName, String columnName, String value) - Angegeben von:
tableContainsEntityWithGivenValueAtGivenColumn
in SchnittstelleIDataReader
-
tableContainsEntityWithGivenValueAtGivenColumnIgnoringGivenEntities
public final boolean tableContainsEntityWithGivenValueAtGivenColumnIgnoringGivenEntities(String tableName, String columnName, String value, IContainer<String> entitiesToIgnoreIds) - Angegeben von:
tableContainsEntityWithGivenValueAtGivenColumnIgnoringGivenEntities
in SchnittstelleIDataReader
-
tableContainsEntityWithGivenId
- Angegeben von:
tableContainsEntityWithGivenId
in SchnittstelleIDataReader
-
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
-
-