|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.FetchGroupImpl
public class FetchGroupImpl
Group of fields for fetching, to be part of a FetchPlan.
| Field Summary | |
|---|---|
protected static Localiser |
LOCALISER
Localisation utility for output messages |
| Constructor Summary | |
|---|---|
FetchGroupImpl(java.lang.String name,
java.lang.Class cls)
Constructor. |
|
| Method Summary | |
|---|---|
FetchGroup |
add(java.lang.String fieldName)
Method to add a field of the class to the fetch group. |
void |
deregisterListener(FetchPlan plan)
Method to deregister a listener for changes to this FetchGroup. |
void |
disconnectFromListeners()
Method to disconnect this fetch group from all listeners since the group is removed from use. |
java.lang.String |
getClassName()
Accessor for the class for this fetch group. |
java.lang.Class |
getFetchGroupClass()
Accessor for the class that this group is for. |
java.lang.String[] |
getFieldNames()
Accessor for the names of the fields in this fetch group. |
java.lang.String |
getName()
Accessor for the group name. |
boolean |
getPostLoad()
Accessor for whether to call postLoad when this group is loaded. |
boolean |
hasField(java.lang.String fieldName)
Accessor for whether a particular field is in this group. |
void |
registerListener(FetchPlan plan)
Method to register a listener for changes to this FetchGroup. |
FetchGroup |
remove(java.lang.String fieldName)
Method to remove a field of the class from the fetch group. |
void |
setPostLoad(boolean postLoad)
Mutator for whether the postLoad callback should be called on loading this fetch group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Localiser LOCALISER
| Constructor Detail |
|---|
public FetchGroupImpl(java.lang.String name,
java.lang.Class cls)
name - Name of the groupcls - The class| Method Detail |
|---|
public java.lang.String getName()
getName in interface FetchGrouppublic java.lang.Class getFetchGroupClass()
public java.lang.String getClassName()
getClassName in interface FetchGrouppublic void setPostLoad(boolean postLoad)
setPostLoad in interface FetchGrouppostLoad - Whether the postLoad callback should be called.public boolean getPostLoad()
getPostLoad in interface FetchGrouppublic boolean hasField(java.lang.String fieldName)
hasField in interface FetchGroupfieldName - Name of the field
public java.lang.String[] getFieldNames()
getFieldNames in interface FetchGrouppublic FetchGroup add(java.lang.String fieldName)
add in interface FetchGroupfieldName - Name of the field
JPOXUserException - if the field doesnt exist for this classpublic FetchGroup remove(java.lang.String fieldName)
remove in interface FetchGroupfieldName - Name of the field
public void registerListener(FetchPlan plan)
plan - The FetchPlan that is listeningpublic void deregisterListener(FetchPlan plan)
plan - The FetchPlan that is no longer listeningpublic void disconnectFromListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||