Package io.ebeaninternal.server.deploy
Interface DbReadContext
-
- All Known Implementing Classes:
CQuery
public interface DbReadContext
Context provided when a BeanProperty reads from a ResultSet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataReader
getDataReader()
Return the DataReader.STreePropertyAssocMany
getManyProperty()
Return the property that is associated with the many.PersistenceContext
getPersistenceContext()
Return the persistence context.SpiQuery.Mode
getQueryMode()
Return the query mode.void
handleLoadError(String fullName, Exception e)
Handles a load error on given property.boolean
isAutoTuneProfiling()
Return true if we are profiling this query.boolean
isDisableLazyLoading()
Return true if this request disables lazy loading.boolean
isDraftQuery()
Return true if the underlying query is a 'asDraft' query.boolean
isRawSql()
Return true if the query is using supplied SQL rather than generated SQL.Boolean
isReadOnly()
Return the state of the object graph.void
profileBean(EntityBeanIntercept ebi, String prefix)
Add AutoTune profiling for a loaded entity bean.void
propagateState(Object e)
Propagate the state to the bean.void
register(String path, BeanCollection<?> bc)
Register a collection for lazy loading.void
register(String path, EntityBeanIntercept ebi)
Register a reference for lazy loading.void
registerBeanInherit(BeanPropertyAssocOne<?> property, 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(EntityBean loadedBean, Object parentId)
Set back the bean that has just been loaded with its id.
-
-
-
Method Detail
-
isReadOnly
Boolean isReadOnly()
Return the state of the object graph.
-
propagateState
void propagateState(Object e)
Propagate the state to the bean.
-
getDataReader
DataReader getDataReader()
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.
-
getPersistenceContext
PersistenceContext getPersistenceContext()
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(String path, BeanCollection<?> bc)
Register a collection for lazy loading.
-
getManyProperty
STreePropertyAssocMany getManyProperty()
Return the property that is associated with the many. There can only be one. This can be null.
-
setLazyLoadedChildBean
void setLazyLoadedChildBean(EntityBean loadedBean, Object parentId)
Set back the bean that has just been loaded with its id.
-
getQueryMode
SpiQuery.Mode getQueryMode()
Return the query mode.
-
isDraftQuery
boolean isDraftQuery()
Return true if the underlying query is a 'asDraft' query.
-
isDisableLazyLoading
boolean isDisableLazyLoading()
Return true if this request disables lazy loading.
-
handleLoadError
void handleLoadError(String fullName, Exception e)
Handles a load error on given property.
-
-