Session.java Addition

Version 1.1 by David Avendasora on 2008/03/06 09:43
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

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;
}
}