Klasse DataReader

java.lang.Object
ch.nolix.system.nodemiddata.datareader.DataReader
Alle implementierten Schnittstellen:
IDatabaseNameHolder, Closeable, CloseStateRequestable, GroupCloseable, IDataReader, AutoCloseable

public final class DataReader extends Object implements IDataReader
  • Methodendetails

    • forNodeDatabaseAndDatabaseView

      public static DataReader forNodeDatabaseAndDatabaseView(IMutableNode<?> nodeDatabase, DatabaseViewDto databaseView)
    • getDatabaseName

      public String getDatabaseName()
      Angegeben von:
      getDatabaseName in Schnittstelle IDatabaseNameHolder
      Gibt zurück:
      the database name of the current IDatabaseNameHolder.
    • getSchemaTimestamp

      public ITime getSchemaTimestamp()
      Angegeben von:
      getSchemaTimestamp in Schnittstelle IDataReader
      Gibt zurück:
      the schema timestamp from the database.
    • getStoredCloseController

      public ICloseController getStoredCloseController()
      Angegeben von:
      getStoredCloseController in Schnittstelle GroupCloseable
      Gibt zurück:
      the ICloseController of the current GroupCloseable.
    • loadMultiBackReferenceBackReferencedEntityIds

      public IContainer<String> loadMultiBackReferenceBackReferencedEntityIds(String tableName, String entityId, String multiBackReferenceColumnName)
      Angegeben von:
      loadMultiBackReferenceBackReferencedEntityIds in Schnittstelle IDataReader
      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:
      loadMultiReferenceEntries in Schnittstelle IDataReader
      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:
      loadMultiValueValues in Schnittstelle IDataReader
      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

      public IContainer<EntityLoadingDto> loadEntities(String tableName)
      Angegeben von:
      loadEntities in Schnittstelle IDataReader
      Parameter:
      tableName -
      Gibt zurück:
      the entities, that are in the table with the given tableName, from the database.
    • loadEntity

      public EntityLoadingDto loadEntity(String tableName, String entityId)
      Angegeben von:
      loadEntity in Schnittstelle IDataReader
      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: GroupCloseable
      Lets the current GroupCloseable note a close.
      Angegeben von:
      noteClose in Schnittstelle GroupCloseable
    • tableContainsEntityWithValueAtColumn

      public boolean tableContainsEntityWithValueAtColumn(String tableName, String columnName, String value)
      Angegeben von:
      tableContainsEntityWithValueAtColumn in Schnittstelle IDataReader
      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:
      tableContainsEntityWithValueAtColumnIgnoringEntities in Schnittstelle IDataReader
      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

      public boolean tableContainsEntity(String tableName, String entityId)
      Angegeben von:
      tableContainsEntity in Schnittstelle IDataReader
      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.