Klasse BaseDataAndSchemaAdapter
java.lang.Object
ch.nolix.system.baserawschema.databaseandschemaadapter.BaseDataAndSchemaAdapter
- Alle implementierten Schnittstellen:
ChangeRequestable,IChangeSaver,IResettableChangeSaver,Closeable,CloseStateRequestable,GroupCloseable,Resettable,IDataReader,IDataWriter,IDataAndSchemaAdapter,ISchemaReader,AutoCloseable
- Bekannte direkte Unterklassen:
DataAndSchemaAdapter,MsSqlDataAndSchemaAdapter
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedBaseDataAndSchemaAdapter(IDataAdapter dataAdapter, ISchemaReader schemaReader) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal booleancolumnIsEmpty(String tableName, String columnName) final voiddeleteEntity(String tableName, IEntityHeadDto 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) There is not asserted that the concerned entity was not changed in the meanwhile.final voiddeleteMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName) There is not asserted that the concerned entity was not changed in the meanwhile.final voiddeleteMultiReferenceEntry(String tableName, String entityId, String multiRefereceColumnName, String referencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.final voiddeleteMultiValueEntries(String tableName, String entityId, String multiValueColumnName) There is not asserted that the concerned entity was not changed in the meanwhile.final voiddeleteMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry) There is not asserted that the concerned entity was not changed in the meanwhile.final voidexpectGivenSchemaTimestamp(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 intfinal ITimefinal CloseControllerfinal intfinal booleanfinal voidinsertEntity(String tableName, INewEntityDto newEntity) Inserts the given newEntity into the table with the given tableName.final voidinsertMultiBackReferenceEntry(String tableName, String entityId, String multiBackReferenceColumnId, String backReferencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.final voidinsertMultiReferenceEntry(String tableName, String entityId, String multiReferenceColumnId, String referencedEntityId) There is not asserted that the concerned entity was not changed in the meanwhile.final voidinsertMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry) There is not asserted that the concerned entity was not changed in the meanwhile.final IContainer<IColumnDto> loadColumnsByTableId(String tableId) final IContainer<IColumnDto> loadColumnsByTableName(String tableName) final IContainer<ILoadedEntityDto> loadEntitiesOfTable(String tableName) final ILoadedEntityDtoloadEntity(String tableName, String id) final IFlatTableDtofinal IFlatTableDtoloadFlatTableByName(String name) final IContainer<IFlatTableDto> 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 ITimefinal ITableDtoloadTableById(String id) final ITableDtoloadTableByName(String name) final IContainer<ITableDto> final voidLets the currentGroupCloseablenote a close.final voidreset()Resets the currentResettable.final voidSaves the changes of the currentIChangeSaver.final voidsetEntityAsUpdated(String tableName, IEntityHeadDto entity) Sets the concerned entity as updated.final booleantableContainsEntityWithGivenId(String tableName, String id) final booleantableContainsEntityWithGivenValueAtGivenColumn(String tableName, String columnName, String value) final booleantableContainsEntityWithGivenValueAtGivenColumnIgnoringGivenEntities(String tableName, String columnName, String value, IContainer<String> entitiesToIgnoreIds) final voidupdateEntity(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, 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
-
Konstruktordetails
-
BaseDataAndSchemaAdapter
-
-
Methodendetails
-
columnIsEmpty
- Angegeben von:
columnIsEmptyin SchnittstelleISchemaReader
-
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:IDataWriterThere is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
deleteMultiBackReferenceEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiBackReferenceColumnId-backReferencedEntityId-
-
deleteMultiReferenceEntries
public final void deleteMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName) Beschreibung aus Schnittstelle kopiert:IDataWriterThere is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
deleteMultiReferenceEntriesin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiReferenceColumnName-
-
deleteMultiReferenceEntry
public final void deleteMultiReferenceEntry(String tableName, String entityId, String multiRefereceColumnName, String referencedEntityId) Beschreibung aus Schnittstelle kopiert:IDataWriterThere is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
deleteMultiReferenceEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiRefereceColumnName-referencedEntityId-
-
deleteMultiValueEntries
public final void deleteMultiValueEntries(String tableName, String entityId, String multiValueColumnName) Beschreibung aus Schnittstelle kopiert:IDataWriterThere is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
deleteMultiValueEntriesin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiValueColumnName-
-
deleteMultiValueEntry
public final void deleteMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry) Beschreibung aus Schnittstelle kopiert:IDataWriterThere is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
deleteMultiValueEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiValueColumnName-entry-
-
expectGivenSchemaTimestamp
Beschreibung aus Schnittstelle kopiert:IDataWriterWill cause an error if the database does not have the given schema timestamp.- Angegeben von:
expectGivenSchemaTimestampin 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 final int getSaveCount()- Angegeben von:
getSaveCountin SchnittstelleIResettableChangeSaver
-
getSchemaTimestamp
- Angegeben von:
getSchemaTimestampin SchnittstelleIDataReader
-
getTableCount
public final int getTableCount()- Angegeben von:
getTableCountin SchnittstelleISchemaReader
-
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:IDataWriterThere is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
insertMultiBackReferenceEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiBackReferenceColumnId-backReferencedEntityId-
-
insertMultiReferenceEntry
public final void insertMultiReferenceEntry(String tableName, String entityId, String multiReferenceColumnId, String referencedEntityId) Beschreibung aus Schnittstelle kopiert:IDataWriterThere is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
insertMultiReferenceEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiReferenceColumnId-referencedEntityId-
-
insertMultiValueEntry
public final void insertMultiValueEntry(String tableName, String entityId, String multiValueColumnName, String entry) Beschreibung aus Schnittstelle kopiert:IDataWriterThere is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
insertMultiValueEntryin SchnittstelleIDataWriter- Parameter:
tableName-entityId-multiValueColumnName-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
-
loadEntitiesOfTable
- Angegeben von:
loadEntitiesOfTablein SchnittstelleIDataReader
-
loadColumnsByTableId
- Angegeben von:
loadColumnsByTableIdin SchnittstelleISchemaReader
-
loadColumnsByTableName
- Angegeben von:
loadColumnsByTableNamein SchnittstelleISchemaReader
-
loadFlatTableById
- Angegeben von:
loadFlatTableByIdin SchnittstelleISchemaReader
-
loadFlatTableByName
- Angegeben von:
loadFlatTableByNamein SchnittstelleISchemaReader
-
loadFlatTables
- Angegeben von:
loadFlatTablesin SchnittstelleISchemaReader
-
loadEntity
- Angegeben von:
loadEntityin SchnittstelleIDataReader
-
loadSchemaTimestamp
- Angegeben von:
loadSchemaTimestampin SchnittstelleISchemaReader
-
loadTableById
- Angegeben von:
loadTableByIdin SchnittstelleISchemaReader
-
loadTableByName
- Angegeben von:
loadTableByNamein SchnittstelleISchemaReader
-
loadTables
- Angegeben von:
loadTablesin SchnittstelleISchemaReader
-
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
-
setEntityAsUpdated
Beschreibung aus Schnittstelle kopiert:IDataWriterSets the concerned entity as updated. Will cause an error if the concerned entity was deleted or changed in the meanwhile.- Angegeben von:
setEntityAsUpdatedin SchnittstelleIDataWriter- Parameter:
tableName-entity-
-
tableContainsEntityWithGivenValueAtGivenColumn
public final boolean tableContainsEntityWithGivenValueAtGivenColumn(String tableName, String columnName, String value) - Angegeben von:
tableContainsEntityWithGivenValueAtGivenColumnin SchnittstelleIDataReader
-
tableContainsEntityWithGivenValueAtGivenColumnIgnoringGivenEntities
public final boolean tableContainsEntityWithGivenValueAtGivenColumnIgnoringGivenEntities(String tableName, String columnName, String value, IContainer<String> entitiesToIgnoreIds) - Angegeben von:
tableContainsEntityWithGivenValueAtGivenColumnIgnoringGivenEntitiesin SchnittstelleIDataReader
-
tableContainsEntityWithGivenId
- Angegeben von:
tableContainsEntityWithGivenIdin SchnittstelleIDataReader
-
updateEntity
Beschreibung aus Schnittstelle kopiert:IDataWriterThere is not asserted that the concerned entity was not changed in the meanwhile.- Angegeben von:
updateEntityin SchnittstelleIDataWriter- Parameter:
tableName-entityUpdate-
-