Class LazyRowImpl

java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingMap<String,Object>
com.sap.cds.impl.LazyRowImpl
All Implemented Interfaces:
CdsData, Lazy, JSONizable, Row, Map<String,Object>

public class LazyRowImpl extends com.google.common.collect.ForwardingMap<String,Object> implements Row, Lazy
  • Constructor Details

    • LazyRowImpl

      public LazyRowImpl(Supplier<Row> rowSupplier)
  • Method Details

    • lazyRow

      public static LazyRowImpl lazyRow(CdsDataStore dataStore, CqnSelect query)
    • toJson

      public String toJson()
      Specified by:
      toJson in interface JSONizable
    • toString

      public String toString()
      Overrides:
      toString in class com.google.common.collect.ForwardingObject
    • delegate

      protected Map<String,Object> delegate()
      Specified by:
      delegate in class com.google.common.collect.ForwardingMap<String,Object>
    • as

      public <T> T as(Class<T> type)
      Specified by:
      as in interface Row
    • load

      public void load()
      Description copied from interface: Lazy
      Loads the data.
      Specified by:
      load in interface Lazy
    • isLoaded

      public boolean isLoaded()
      Description copied from interface: Lazy
      Returns true if the query to load the data has been executed.
      Specified by:
      isLoaded in interface Lazy
      Returns:
      true if the query has been executed, otherwise false
    • loadData

      public Object loadData()
      Description copied from interface: Lazy
      Loads the data.
      Specified by:
      loadData in interface Lazy
      Returns:
      the data object (List or Map)
    • ref

      public StructuredType<?> ref()
      Specified by:
      ref in interface Row
    • getPath

      public <T> T getPath(String path)
      Specified by:
      getPath in interface CdsData
    • getPathOrDefault

      public <T> T getPathOrDefault(String path, T defaultValue)
      Specified by:
      getPathOrDefault in interface CdsData
    • putPath

      public <T> T putPath(String path, T value)
      Specified by:
      putPath in interface CdsData
    • putPathIfAbsent

      public <T> T putPathIfAbsent(String path, T value)
      Specified by:
      putPathIfAbsent in interface CdsData
    • containsPath

      public boolean containsPath(String path)
      Specified by:
      containsPath in interface CdsData
    • removePath

      public <T> T removePath(String path)
      Specified by:
      removePath in interface CdsData
    • isForRemoval

      public boolean isForRemoval()
      Specified by:
      isForRemoval in interface CdsData
    • forRemoval

      public CdsData forRemoval(boolean remove)
      Specified by:
      forRemoval in interface CdsData