Exemplo n.º 1
0
 private static EOActivites localInstanceOfObject(EOEditingContext ec, EOActivites object) {
   if (object != null && ec != null) {
     EOEditingContext otherEditingContext = object.editingContext();
     if (otherEditingContext == null) {
       throw new IllegalArgumentException(
           "The EOActivites " + object + " is not in an EOEditingContext.");
     } else {
       com.webobjects.eocontrol.EOGlobalID globalID =
           otherEditingContext.globalIDForObject(object);
       return (EOActivites) ec.faultForGlobalID(globalID, ec);
     }
   } else {
     return null;
   }
 }
Exemplo n.º 2
0
 /**
  * Creates and inserts a new EOActivites with non null attributes and mandatory relationships.
  *
  * @param editingContext
  * @param actAffichable
  * @param actLibelle
  * @param actOrdre
  * @param actPere
  * @param actPref
  * @param actResp
  * @param cStructure
  * @return EOActivites
  */
 public static EOActivites create(
     EOEditingContext editingContext,
     String actAffichable,
     String actLibelle,
     Integer actOrdre,
     Integer actPere,
     Integer actPref,
     Integer actResp,
     String cStructure) {
   EOActivites eo = (EOActivites) createAndInsertInstance(editingContext);
   eo.setActAffichable(actAffichable);
   eo.setActLibelle(actLibelle);
   eo.setActOrdre(actOrdre);
   eo.setActPere(actPere);
   eo.setActPref(actPref);
   eo.setActResp(actResp);
   eo.setCStructure(cStructure);
   return eo;
 }