@groovy.transform.CompileStatic class QueryState extends java.lang.Object
Used to maintain query state and avoid hitting the database again when loading associations
Modifiers | Name | Description |
---|---|---|
private java.util.Map<java.lang.Class, java.util.Map<java.io.Serializable, java.lang.Object>> |
loadedEntities |
Constructor and description |
---|
QueryState
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addLoadedEntity(java.lang.Class type, java.io.Serializable id, java.lang.Object object) |
<T> |
T |
getLoadedEntity(java.lang.Class<T> type, java.io.Serializable id) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |