- All Known Implementing Classes:
CQuery
public interface DbReadContext
Context provided when a BeanProperty reads from a ResultSet.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the DataReader.voidhandleLoadError(String fullName, Exception e) Handles a load error on given property.booleanReturn true if we are profiling this query.booleanReturn true if this request disables lazy loading.booleanReturn true if the beans that already exist in the persistence context should have data from the database loaded into them.booleanisRawSql()Return true if the query is using supplied SQL rather than generated SQL.Return the state of the object graph.Return the persistence context.voidprofileBean(EntityBeanIntercept ebi, String prefix) Add AutoTune profiling for a loaded entity bean.voidPropagate the state to the bean.Return the query mode.voidregister(BeanPropertyAssocMany<?> many, BeanCollection<?> bc) Register a collection for lazy loading.voidregister(String path, EntityBeanIntercept ebi) Register a reference for lazy loading.voidregisterBeanInherit(BeanPropertyAssocOne<?> property, EntityBeanIntercept ebi) Register a reference with inheritance for lazy loading.voidsetCurrentPrefix(String currentPrefix, Map<String, String> pathMap) Set the JoinNode - used by proxy/reference beans for profiling.voidsetLazyLoadedChildBean(EntityBean loadedBean, Object parentId) Set back the bean that has just been loaded with its id.
-
Method Details
-
isReadOnly
Boolean isReadOnly()Return the state of the object graph. -
propagateState
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
Set the JoinNode - used by proxy/reference beans for profiling. -
isAutoTuneProfiling
boolean isAutoTuneProfiling()Return true if we are profiling this query. -
profileBean
Add AutoTune profiling for a loaded entity bean. -
persistenceContext
PersistenceContext persistenceContext()Return the persistence context. -
register
Register a reference for lazy loading. -
registerBeanInherit
Register a reference with inheritance for lazy loading. -
register
Register a collection for lazy loading. -
setLazyLoadedChildBean
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
Handles a load error on given property.
-