Session.java Addition
Version 2.1 by David Avendasora on 2008/03/06 09:43
These additions are based on a more advanced Stateless RMI concept by Florijan Stamenkovic.
Unknown macro: color. Click on this message for details.
You cannot call Model-defined FetchSpecifications from the client-side that use a Raw SQL Expression without implementing the delegate method distributionContextShouldFetchObjectsWithFetchSpecification.
If you try, you will get the following exception:
Unknown macro: color. Click on this message for details.
public EOFetchSpecification clientSideRequestGetFetchSpecification(String fetchSpecification, String entity) {
return getFetchSpecification(fetchSpecification, entity);
}
public EOFetchSpecification getFetchSpecification(String fetchSpecification, String entity){
try{
return EOFetchSpecification.fetchSpecificationNamed(fetchSpecification, entity);
}catch(Exception ex){
NSLog.out.appendln(ex);
return null;
}
}