コード例 #1
0
 /**
  * Creates and inserts a new EOImplantationGeo with non null attributes and mandatory
  * relationships.
  *
  * @param editingContext
  * @param cImplantation
  * @param imgeoOrdre
  * @param lcImplantationGeo
  * @param llImplantationGeo
  * @return EOImplantationGeo
  */
 public static EOImplantationGeo create(
     EOEditingContext editingContext,
     String cImplantation,
     Integer imgeoOrdre,
     String lcImplantationGeo,
     String llImplantationGeo) {
   EOImplantationGeo eo = (EOImplantationGeo) createAndInsertInstance(editingContext);
   eo.setCImplantation(cImplantation);
   eo.setImgeoOrdre(imgeoOrdre);
   eo.setLcImplantationGeo(lcImplantationGeo);
   eo.setLlImplantationGeo(llImplantationGeo);
   return eo;
 }
コード例 #2
0
 private static EOImplantationGeo localInstanceOfObject(
     EOEditingContext ec, EOImplantationGeo object) {
   if (object != null && ec != null) {
     EOEditingContext otherEditingContext = object.editingContext();
     if (otherEditingContext == null) {
       throw new IllegalArgumentException(
           "The EOImplantationGeo " + object + " is not in an EOEditingContext.");
     } else {
       com.webobjects.eocontrol.EOGlobalID globalID =
           otherEditingContext.globalIDForObject(object);
       return (EOImplantationGeo) ec.faultForGlobalID(globalID, ec);
     }
   } else {
     return null;
   }
 }