|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.cayenne.access.util.PrefetchHelper
public class PrefetchHelper
A helper class to resolve relationships in batches for the lists of objects. Used for performance tuning.
| Constructor Summary | |
|---|---|
PrefetchHelper()
Deprecated. |
|
| Method Summary | |
|---|---|
static void |
resolveToManyRelations(DataContext context,
java.util.List objects,
java.lang.String relName)
Deprecated. Resolves a toMany relation for a list of objects. |
static void |
resolveToOneRelations(DataContext context,
java.util.List objects,
java.lang.String relName)
Deprecated. Resolves a to-one relationship for a list of objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrefetchHelper()
| Method Detail |
|---|
public static void resolveToOneRelations(DataContext context,
java.util.List objects,
java.lang.String relName)
public static void resolveToManyRelations(DataContext context,
java.util.List objects,
java.lang.String relName)
WARNING: this is a bit of a hack - it works for my toMany's, but it possibly doesn't work in all cases.
*** It definitly does not work for compound keys ***
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||