Interface DbReadContext

All Known Implementing Classes:
CQuery

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

    • isReadOnly

      Boolean isReadOnly()
      Return the state of the object graph.
    • propagateState

      void propagateState(Object e)
      Propagate the state to the bean.
    • dataReader

      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(EntityBeanIntercept ebi, String prefix)
      Add AutoTune profiling for a loaded entity bean.
    • persistenceContext

      PersistenceContext persistenceContext()
      Return the persistence context.
    • register

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

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

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

      void setLazyLoadedChildBean(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.