Interface DbReadContext

All Known Implementing Classes:
CQuery

public interface DbReadContext
Context provided when a BeanProperty reads from a ResultSet.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.ebean.core.type.DataReader
    Return the DataReader.
    void
    Handles a load error on given property.
    boolean
    Return true if this many property should be included in unmodifiable query via a secondary query.
    boolean
    Return true if we are profiling this query.
    boolean
    Return true if this request disables lazy loading.
    boolean
    Return true if the beans that already exist in the persistence context should have data from the database loaded into them.
    boolean
    Return true if the query is using supplied SQL rather than generated SQL.
    io.ebean.bean.PersistenceContext
    Return the persistence context.
    void
    profileBean(io.ebean.bean.EntityBeanIntercept ebi, String prefix)
    Add AutoTune profiling for a loaded entity bean.
    Return the query mode.
    void
    register(BeanPropertyAssocMany<?> many, io.ebean.bean.BeanCollection<?> bc)
    Register a collection for lazy loading.
    void
    register(String path, io.ebean.bean.EntityBeanIntercept ebi)
    Register a reference for lazy loading.
    void
    registerBeanInherit(BeanPropertyAssocOne<?> property, io.ebean.bean.EntityBeanIntercept ebi)
    Register a reference with inheritance for lazy loading.
    void
    setCurrentPrefix(String currentPrefix, Map<String,String> pathMap)
    Set the JoinNode - used by proxy/reference beans for profiling.
    void
    setLazyLoadedChildBean(io.ebean.bean.EntityBean loadedBean, Object parentId)
    Set back the bean that has just been loaded with its id.
    boolean
    Return true if we are loading unmodifiable beans.
  • Method Details

    • dataReader

      io.ebean.core.type.DataReader dataReader()
      Return the DataReader.
    • isRawSql

      boolean isRawSql()
      Return true if the query is using supplied SQL rather than generated SQL.
    • setCurrentPrefix

      void setCurrentPrefix(String currentPrefix, Map<String,String> pathMap)
      Set the JoinNode - used by proxy/reference beans for profiling.
    • isAutoTuneProfiling

      boolean isAutoTuneProfiling()
      Return true if we are profiling this query.
    • profileBean

      void profileBean(io.ebean.bean.EntityBeanIntercept ebi, String prefix)
      Add AutoTune profiling for a loaded entity bean.
    • persistenceContext

      io.ebean.bean.PersistenceContext persistenceContext()
      Return the persistence context.
    • register

      void register(String path, io.ebean.bean.EntityBeanIntercept ebi)
      Register a reference for lazy loading.
    • registerBeanInherit

      void registerBeanInherit(BeanPropertyAssocOne<?> property, io.ebean.bean.EntityBeanIntercept ebi)
      Register a reference with inheritance for lazy loading.
    • register

      void register(BeanPropertyAssocMany<?> many, io.ebean.bean.BeanCollection<?> bc)
      Register a collection for lazy loading.
    • setLazyLoadedChildBean

      void setLazyLoadedChildBean(io.ebean.bean.EntityBean loadedBean, Object parentId)
      Set back the bean that has just been loaded with its id.
    • queryMode

      SpiQuery.Mode queryMode()
      Return the query mode.
    • isDisableLazyLoading

      boolean isDisableLazyLoading()
      Return true if this request disables lazy loading.
    • isLoadContextBean

      boolean isLoadContextBean()
      Return true if the beans that already exist in the persistence context should have data from the database loaded into them.

      This is the case for REFRESH and forUpdate queries.

    • handleLoadError

      void handleLoadError(String fullName, Exception e)
      Handles a load error on given property.
    • includeSecondary

      boolean includeSecondary(BeanPropertyAssocMany<?> many)
      Return true if this many property should be included in unmodifiable query via a secondary query.
    • unmodifiable

      boolean unmodifiable()
      Return true if we are loading unmodifiable beans.