|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.io.FetchMode
public class FetchMode
Represents the fetch mode for a single property.
| Field Summary | |
|---|---|
static FetchMode |
EAGER
Constant for propeties that should be eagerly fetched. |
static FetchMode |
LAZY
Constant for properties that should be lazily fetched. |
| Constructor Summary | |
|---|---|
FetchMode()
Creates a new instance. |
|
FetchMode(boolean lazy,
FetchPlan fetchPlan)
Creates a new instance. |
|
| Method Summary | |
|---|---|
FetchPlan |
getFetchPlan()
Returns the fetch plan for the associated entity if this property is an association type or null. |
boolean |
isLazy()
Whether this property should be lazily fetched. |
void |
readExternal(DataInput input)
Restores the content of this object from the DataInput instance. |
void |
writeExternal(DataOutput output)
Saves the content of this object to the DataOutput instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FetchMode EAGER
public static final FetchMode LAZY
| Constructor Detail |
|---|
public FetchMode()
public FetchMode(boolean lazy,
FetchPlan fetchPlan)
lazy - whether this property should be lazily fetchedfetchPlan - the optional fetch plan for the associated entity if this property is an association type| Method Detail |
|---|
public boolean isLazy()
public FetchPlan getFetchPlan()
public void readExternal(DataInput input)
Externalizable
readExternal in interface Externalizableinput - the AMF3 data to read frompublic void writeExternal(DataOutput output)
Externalizable
writeExternal in interface Externalizableoutput - the output to write to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||