public abstract class LoadRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
lazy |
protected Transaction |
transaction |
| Constructor and Description |
|---|
LoadRequest(Transaction transaction,
boolean lazy) |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
getTransaction()
Return the transaction to use if this is a secondary query.
|
boolean |
isLazy()
Return true if this is a lazy load and false if it is a secondary query.
|
protected final boolean lazy
protected final Transaction transaction
public LoadRequest(Transaction transaction, boolean lazy)
public boolean isLazy()
public Transaction getTransaction()
Lazy loading queries run in their own transaction.
Copyright © 2014. All Rights Reserved.