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
ModifiziererKonstruktorBeschreibungprotected
BaseDataAndSchemaAdapter
(IDataAdapter dataAdapter, ISchemaReader schemaReader) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal boolean
columnIsEmpty
(String tableName, String columnName) final 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 multiValueColumnName) There is not asserted that the concerned entity was not changed in the meanwhile.final void
deleteMultiValueEntry
(String tableName, String entityId, String multiValueColumnName, 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 int
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 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 ILoadedEntityDto
loadEntity
(String tableName, String id) final IFlatTableDto
final IFlatTableDto
loadFlatTableByName
(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 ITime
final ITableDto
loadTableById
(String id) final ITableDto
loadTableByName
(String name) final IContainer
<ITableDto> 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
-
BaseDataAndSchemaAdapter
-
-
Methodendetails
-
columnIsEmpty
- Angegeben von:
columnIsEmpty
in SchnittstelleISchemaReader
-
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 multiValueColumnName) 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 final 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
-
-
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
-
getTableCount
public final int getTableCount()- Angegeben von:
getTableCount
in SchnittstelleISchemaReader
-
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 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
-
-
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
-
loadColumnsByTableId
- Angegeben von:
loadColumnsByTableId
in SchnittstelleISchemaReader
-
loadColumnsByTableName
- Angegeben von:
loadColumnsByTableName
in SchnittstelleISchemaReader
-
loadFlatTableById
- Angegeben von:
loadFlatTableById
in SchnittstelleISchemaReader
-
loadFlatTableByName
- Angegeben von:
loadFlatTableByName
in SchnittstelleISchemaReader
-
loadFlatTables
- Angegeben von:
loadFlatTables
in SchnittstelleISchemaReader
-
loadEntity
- Angegeben von:
loadEntity
in SchnittstelleIDataReader
-
loadSchemaTimestamp
- Angegeben von:
loadSchemaTimestamp
in SchnittstelleISchemaReader
-
loadTableById
- Angegeben von:
loadTableById
in SchnittstelleISchemaReader
-
loadTableByName
- Angegeben von:
loadTableByName
in SchnittstelleISchemaReader
-
loadTables
- Angegeben von:
loadTables
in SchnittstelleISchemaReader
-
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
-
-