Changes for page EOF-Using EOF-EOGenerator

Last modified by Pascal Robert on 2012/01/21 22:03

From version 17.1
edited by David Holt
on 2007/08/14 11:27
Change comment: Corrected some slight errors in the code that were created in the transfer from the older Wiki
To version 25.1
edited by Quinton Dolan
on 2007/07/16 22:42
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.dholt
1 +XWiki.qdolan
Content
... ... @@ -179,18 +179,10 @@
179 179   return <$GEN_PREFIX$><$classNameWithoutPackage$>.fetchAll<$classNameWithoutPackage$>s(_editingContext, null);
180 180   }
181 181  
182 -{{/code}}
183 -
184 -{{code}}
185 -
186 186   public static NSArray fetchAll<$classNameWithoutPackage$>s(EOEditingContext _editingContext, NSArray _sortOrderings) {
187 187   return <$GEN_PREFIX$><$classNameWithoutPackage$>.fetch<$classNameWithoutPackage$>s(_editingContext, null, _sortOrderings);
188 188   }
189 189  
190 -{{/code}}
191 -
192 -{{code}}
193 -
194 194   public static NSArray fetch<$classNameWithoutPackage$>s(EOEditingContext _editingContext, EOQualifier _qualifier, NSArray _sortOrderings) {
195 195   EOFetchSpecification fetchSpec = new EOFetchSpecification(<$GEN_PREFIX$><$classNameWithoutPackage$>.ENTITY_NAME, _qualifier, _sortOrderings);
196 196   fetchSpec.setIsDeep(true);
... ... @@ -198,18 +198,10 @@
198 198   return eoObjects;
199 199   }
200 200  
201 -{{/code}}
202 -
203 -{{code}}
204 -
205 205   public static <$classNameWithoutPackage$> fetch<$classNameWithoutPackage$>(EOEditingContext _editingContext, String _keyName, Object _value) {
206 206   return <$GEN_PREFIX$><$classNameWithoutPackage$>.fetch<$classNameWithoutPackage$>(_editingContext, new EOKeyValueQualifier(_keyName, EOQualifier.QualifierOperatorEqual, _value));
207 207   }
208 208  
209 -{{/code}}
210 -
211 -{{code}}
212 -
213 213   public static <$classNameWithoutPackage$> fetch<$classNameWithoutPackage$>(EOEditingContext _editingContext, EOQualifier _qualifier) {
214 214   NSArray eoObjects = <$GEN_PREFIX$><$classNameWithoutPackage$>.fetch<$classNameWithoutPackage$>s(_editingContext, _qualifier, null);
215 215   <$classNameWithoutPackage$> eoObject;
... ... @@ -225,22 +225,14 @@
225 225   }
226 226   return eoObject;
227 227   }
228 -
229 -{{/code}}
230 -
231 -{{code}}
232 -
212 +
233 233   public static <$classNameWithoutPackage$> fetchRequired<$classNameWithoutPackage$>(EOEditingContext _editingContext, String _keyName, Object _value) {
234 234   return <$GEN_PREFIX$><$classNameWithoutPackage$>.fetchRequired<$classNameWithoutPackage$>(_editingContext, new EOKeyValueQualifier(_keyName, EOQualifier.QualifierOperatorEqual, _value));
235 235   }
236 236  
237 -{{/code}}
238 -
239 -{{code}}
240 -
241 241   public static <$classNameWithoutPackage$> fetchRequired<$classNameWithoutPackage$>(EOEditingContext _editingContext, EOQualifier _qualifier) {
242 242   <$classNameWithoutPackage$> eoObject = <$GEN_PREFIX$><$classNameWithoutPackage$>.fetch<$classNameWithoutPackage$>(_editingContext, _qualifier);
243 - if (eoObject == null) {
219 + if (eoObject h1. null) {
244 244   throw new NoSuchElementException("There was no <$classNameWithoutPackage$> that matched the qualifier '" + _qualifier + "'.");
245 245   }
246 246   return eoObject;
... ... @@ -256,12 +256,8 @@
256 256   return (<$classNameWithoutPackage$>)EOUtilities.localInstanceOfObject(_editingContext, this);
257 257   }
258 258  
259 -{{/code}}
260 -
261 -{{code}}
262 -
263 263   public static <$classNameWithoutPackage$> localInstanceOf<$classNameWithoutPackage$>(EOEditingContext _editingContext, <$classNameWithoutPackage$> _eo) {
264 - return (_eo == null) ? null : (<$classNameWithoutPackage$>)EOUtilities.localInstanceOfObject(_editingContext, _eo);
236 + return (_eo null) ? null : (<$classNameWithoutPackage$>)EOUtilities.localInstanceOfObject(_editingContext, _eo);
265 265   }
266 266  
267 267  {{/code}}