private static final EODistributedObjectStore dos = (EODistributedObjectStore)(EOEditingContext.defaultParentObjectStore());
/**
* Invokes the remote method on session to get a named fetch specification. Needed because
* the whole eoaccess package is excluded from the client side frameworks.
*
@param spec Fetch specification name.
@param entity Name of the entity for which the fetch specification is for.
@return The fetch specification, or null if it is not in the model, or an error occured
*/
public static EOFetchSpecification getFetchSpecification(
String spec,
String entity){
return (EOFetchSpecification) dos.invokeStatelessRemoteMethodWithKeyPath(
"session",
"clientSideRequestGetFetchSpecification",
new Class[]{String.class, String.class},
new String[]{spec, entity});
}