Beispiel #1
0
 private static EOTypeGroupe localInstanceOfObject(EOEditingContext ec, EOTypeGroupe object) {
   if (object != null && ec != null) {
     EOEditingContext otherEditingContext = object.editingContext();
     if (otherEditingContext == null) {
       throw new IllegalArgumentException(
           "The EOTypeGroupe " + object + " is not in an EOEditingContext.");
     } else {
       com.webobjects.eocontrol.EOGlobalID globalID =
           otherEditingContext.globalIDForObject(object);
       return (EOTypeGroupe) ec.faultForGlobalID(globalID, ec);
     }
   } else {
     return null;
   }
 }
Beispiel #2
0
 /**
  * Creates and inserts a new EOTypeGroupe with non null attributes and mandatory relationships.
  *
  * @param editingContext
  * @param tgrpCode
  * @return EOTypeGroupe
  */
 public static EOTypeGroupe create(EOEditingContext editingContext, String tgrpCode) {
   EOTypeGroupe eo = (EOTypeGroupe) createAndInsertInstance(editingContext);
   eo.setTgrpCode(tgrpCode);
   return eo;
 }