Schnittstelle IDataReader
- Alle Superschnittstellen:
AutoCloseable, Closeable, CloseStateRequestable, GroupCloseable, IDatabaseNameHolder
- Alle bekannten Unterschnittstellen:
IDataAdapter, IDataAdapterAndSchemaReader
- Alle bekannten Implementierungsklassen:
AbstractDataAdapter, AbstractDataAdapterAndSchemaReader, AbstractSqlDataAdapter, DataReader, DataReader, MsSqlDataAdapter, MsSqlDataAdapterAndSchemaReader, NodeDataAdapter, NodeDataAdapterAndSchemaReader
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungintgetEntityCount(String tableName) loadEntities(String tableName) loadEntity(String tableName, String entityId) loadMultiBackReferenceBackReferencedEntityIds(String tableName, String entityId, String multiBackReferenceColumnName) loadMultiBackReferenceEntries(TableIdentification table, String entityId, ColumnIdentification multiBackReferenceColumn) loadMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName) loadMultiValueValues(String tableName, String entityId, String multiValueColumnName) booleantableContainsEntity(String tableName, String entityId) booleantableContainsEntityWithValueAtColumn(String tableName, String columnName, String value) booleantableContainsEntityWithValueAtColumnIgnoringEntities(String tableName, String columnName, String value, IContainer<String> entitiesToIgnoreIds) Von Schnittstelle geerbte Methoden CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosed, noteCloseVon Schnittstelle geerbte Methoden IDatabaseNameHolder
getDatabaseName, getDatabaseNameInQuotes
-
Methodendetails
-
getEntityCount
- Parameter:
tableName-- Gibt zurück:
- the number of the entities of the table with the given tableName from the database.
- Löst aus:
RuntimeException- if the currentIDataReaderis closed.
-
getSchemaTimestamp
ITime getSchemaTimestamp()- Gibt zurück:
- the schema timestamp from the database.
- Löst aus:
RuntimeException- if the currentIDataReaderis closed.
-
loadEntities
- Parameter:
tableName-- Gibt zurück:
- the entities, that are in the table with the given tableName, from the database.
- Löst aus:
RuntimeException- if the currentIDataReaderis closed.
-
loadEntity
- Parameter:
tableName-entityId-- Gibt zurück:
- the entity, that is in the table with the given tableName and has the given entityId, from the database.
- Löst aus:
RuntimeException- if the currentIDataReaderis closed.
-
loadMultiBackReferenceBackReferencedEntityIds
IContainer<String> loadMultiBackReferenceBackReferencedEntityIds(String tableName, String entityId, String multiBackReferenceColumnName) - Parameter:
tableName-entityId-multiBackReferenceColumnName-- Gibt zurück:
- the entity ids of the multi back reference, that is in the multi back reference column with the given multiBackReferenceColumnName and belongs to the entity, that has the given entityId and is in the table with the given tableName, from the database.
- Löst aus:
RuntimeException- if the currentIDataReaderis closed.
-
loadMultiBackReferenceEntries
IContainer<MultiBackReferenceEntryDto> loadMultiBackReferenceEntries(TableIdentification table, String entityId, ColumnIdentification multiBackReferenceColumn) - Parameter:
table-entityId-multiBackReferenceColumn-- Gibt zurück:
- the multi back reference entries of the multi back reference that is in the given table and in the entity with the given entityId and in the given multiBackReferenceColumn.
-
loadMultiReferenceEntries
IContainer<MultiReferenceEntryDto> loadMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName) - Parameter:
tableName-entityId-multiReferenceColumnName-- Gibt zurück:
- the multi reference entries of the the multi reference field, that is in the multi reference column with the given multiReferenceColumnName and belongs to the entity, that has the given entityId and is in the table with the given tableName, from the database.
- Löst aus:
RuntimeException- if the currentIDataReaderis closed.
-
loadMultiValueValues
IContainer<Object> loadMultiValueValues(String tableName, String entityId, String multiValueColumnName) - Parameter:
tableName-entityId-multiValueColumnName-- Gibt zurück:
- the values of the multi value, that is in the multi value column with the given multiValueColumnName and belongs to the entity, that has the given entityId and is in the table with the given tableName, from the database.
- Löst aus:
RuntimeException- if the currentIDataReaderis closed.
-
tableContainsEntity
- Parameter:
tableName-entityId-- Gibt zurück:
- true if the table with the given tableName contains an entity with the given entityId on the database, false otherwise.
- Löst aus:
RuntimeException- if the currentIDataReaderis closed.
-
tableContainsEntityWithValueAtColumn
- Parameter:
tableName-columnName-value-- Gibt zurück:
- true if the table with the given tableName contains in the column with the given columnName the given value on the database, false otherwise.
- Löst aus:
RuntimeException- if the currentIDataReaderis closed.
-
tableContainsEntityWithValueAtColumnIgnoringEntities
boolean tableContainsEntityWithValueAtColumnIgnoringEntities(String tableName, String columnName, String value, IContainer<String> entitiesToIgnoreIds) - Parameter:
tableName-columnName-value-entitiesToIgnoreIds-- Gibt zurück:
- true if the table with the given tableName contains in the column with the given columnName the given value ignoring the entities with the given entitiesToIgnoreIds on the database, false otherwise.
- Löst aus:
RuntimeException- if the currentIDataReaderis closed.
-