Klasse DataReader
java.lang.Object
ch.nolix.system.sqlmiddata.datareader.DataReader
- Alle implementierten Schnittstellen:
IDatabaseNameHolder,Closeable,CloseStateRequestable,GroupCloseable,IDataReader,AutoCloseable
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic DataReaderforDatabaseNameAndDatabaseSchemaViewAndSqlConnection(String databaseName, DatabaseViewDto databaseView, ISqlConnection sqlConnection) loadEntities(String tableName) loadEntity(String tableName, String entityId) loadMultiBackReferenceBackReferencedEntityIds(String tableName, String entityId, String multiBackReferenceColumnName) loadMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName) loadMultiValueValues(String tableName, String entityId, String multiValueColumnName) voidLets the currentGroupCloseablenote a close.booleantableContainsEntity(String tableName, String entityId) booleantableContainsEntityWithValueAtColumn(String tableName, String columnName, String value) booleantableContainsEntityWithValueAtColumnIgnoringEntities(String tableName, String columnName, String value, IContainer<String> entitiesToIgnoreIds) Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.GroupCloseable
close, createCloseDependencyTo, isClosedVon Schnittstelle geerbte Methoden ch.nolix.coreapi.attribute.mandatoryattribute.IDatabaseNameHolder
getDatabaseNameInQuotes
-
Methodendetails
-
forDatabaseNameAndDatabaseSchemaViewAndSqlConnection
public static DataReader forDatabaseNameAndDatabaseSchemaViewAndSqlConnection(String databaseName, DatabaseViewDto databaseView, ISqlConnection sqlConnection) -
getDatabaseName
- Angegeben von:
getDatabaseNamein SchnittstelleIDatabaseNameHolder- Gibt zurück:
- the database name of the current
IDatabaseNameHolder.
-
getSchemaTimestamp
- Angegeben von:
getSchemaTimestampin SchnittstelleIDataReader- Gibt zurück:
- the schema timestamp from the database.
-
getStoredCloseController
- Angegeben von:
getStoredCloseControllerin SchnittstelleGroupCloseable- Gibt zurück:
- the
ICloseControllerof the currentGroupCloseable.
-
loadMultiBackReferenceBackReferencedEntityIds
public IContainer<String> loadMultiBackReferenceBackReferencedEntityIds(String tableName, String entityId, String multiBackReferenceColumnName) - Angegeben von:
loadMultiBackReferenceBackReferencedEntityIdsin SchnittstelleIDataReader- 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.
-
loadMultiReferenceEntries
public IContainer<MultiReferenceEntryDto> loadMultiReferenceEntries(String tableName, String entityId, String multiReferenceColumnName) - Angegeben von:
loadMultiReferenceEntriesin SchnittstelleIDataReader- 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.
-
loadMultiValueValues
public IContainer<Object> loadMultiValueValues(String tableName, String entityId, String multiValueColumnName) - Angegeben von:
loadMultiValueValuesin SchnittstelleIDataReader- 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.
-
loadEntities
- Angegeben von:
loadEntitiesin SchnittstelleIDataReader- Parameter:
tableName-- Gibt zurück:
- the entities, that are in the table with the given tableName, from the database.
-
loadEntity
- Angegeben von:
loadEntityin SchnittstelleIDataReader- 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.
-
noteClose
public void noteClose()Beschreibung aus Schnittstelle kopiert:GroupCloseableLets the currentGroupCloseablenote a close.- Angegeben von:
noteClosein SchnittstelleGroupCloseable
-
tableContainsEntityWithValueAtColumn
public boolean tableContainsEntityWithValueAtColumn(String tableName, String columnName, String value) - Angegeben von:
tableContainsEntityWithValueAtColumnin SchnittstelleIDataReader- 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.
-
tableContainsEntityWithValueAtColumnIgnoringEntities
public boolean tableContainsEntityWithValueAtColumnIgnoringEntities(String tableName, String columnName, String value, IContainer<String> entitiesToIgnoreIds) - Angegeben von:
tableContainsEntityWithValueAtColumnIgnoringEntitiesin SchnittstelleIDataReader- 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.
-
tableContainsEntity
- Angegeben von:
tableContainsEntityin SchnittstelleIDataReader- 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.
-