예제 #1
0
 public org.pachyderm.foundation.eof.PDBScreen createEveryScreenRelationship() {
   EOEnterpriseObject eo =
       EOUtilities.createAndInsertInstance(
           editingContext(), org.pachyderm.foundation.eof.PDBScreen.ENTITY_NAME);
   addObjectToBothSidesOfRelationshipWithKey(eo, _PDBPresentation.EVERY_SCREEN_KEY);
   return (org.pachyderm.foundation.eof.PDBScreen) eo;
 }
예제 #2
0
 public static Category createCategory(EOEditingContext editingContext, Integer id, String name) {
   Category eo =
       (Category) EOUtilities.createAndInsertInstance(editingContext, _Category.ENTITY_NAME);
   eo.setId(id);
   eo.setName(name);
   return eo;
 }
예제 #3
0
파일: _Group.java 프로젝트: VboxNick/wounit
 public Group localInstanceIn(EOEditingContext editingContext) {
   Group localInstance = (Group) EOUtilities.localInstanceOfObject(editingContext, this);
   if (localInstance == null) {
     throw new IllegalStateException(
         "You attempted to localInstance " + this + ", which has not yet committed.");
   }
   return localInstance;
 }
예제 #4
0
파일: _Group.java 프로젝트: VboxNick/wounit
 public static Group localInstanceIn(EOEditingContext editingContext, Group eo) {
   Group localInstance =
       (eo == null) ? null : (Group) EOUtilities.localInstanceOfObject(editingContext, eo);
   if (localInstance == null && eo != null) {
     throw new IllegalStateException(
         "You attempted to localInstance " + eo + ", which has not yet committed.");
   }
   return localInstance;
 }
 public static ERSyncClientDevice createERSyncClientDevice(
     EOEditingContext editingContext, Boolean disable, String name) {
   ERSyncClientDevice eo =
       (ERSyncClientDevice)
           EOUtilities.createAndInsertInstance(editingContext, _ERSyncClientDevice.ENTITY_NAME);
   eo.setDisable(disable);
   eo.setName(name);
   return eo;
 }
예제 #6
0
 public static MovieRole createMovieRole(
     EOEditingContext editingContext,
     webobjectsexamples.businesslogic.movies.common.Movie movie,
     webobjectsexamples.businesslogic.movies.common.Talent talent) {
   MovieRole eo =
       (MovieRole) EOUtilities.createAndInsertInstance(editingContext, _MovieRole.ENTITY_NAME);
   eo.setMovieRelationship(movie);
   eo.setTalentRelationship(talent);
   return eo;
 }
예제 #7
0
 public static PDBPresentation createPDBPresentation(
     EOEditingContext editingContext,
     String identifier,
     Integer pk,
     org.pachyderm.foundation.eof.PDBScreen primeScreen) {
   PDBPresentation eo =
       (PDBPresentation)
           EOUtilities.createAndInsertInstance(editingContext, _PDBPresentation.ENTITY_NAME);
   eo.setIdentifier(identifier);
   eo.setPk(pk);
   eo.setPrimeScreenRelationship(primeScreen);
   return eo;
 }
 public static TimePointApplication createTimePointApplication(
     EOEditingContext editingContext,
     Integer instanceWeight,
     com.dyned.woremotesiteconfig.eom.StoredApp storedApp,
     com.dyned.woremotesiteconfig.eom.TimePoint timePoint) {
   TimePointApplication eo =
       (TimePointApplication)
           EOUtilities.createAndInsertInstance(editingContext, _TimePointApplication.ENTITY_NAME);
   eo.setInstanceWeight(instanceWeight);
   eo.setStoredAppRelationship(storedApp);
   eo.setTimePointRelationship(timePoint);
   return eo;
 }
예제 #9
0
파일: _Employee.java 프로젝트: anjo/wonder
 public static Employee createEmployee(
     EOEditingContext editingContext,
     Boolean admin,
     String firstName,
     NSTimestamp hireDate,
     Boolean insured,
     String lastName,
     er.uber.model.EmployeeStatus status,
     er.uber.model.Company company) {
   Employee eo =
       (Employee) EOUtilities.createAndInsertInstance(editingContext, _Employee.ENTITY_NAME);
   eo.setAdmin(admin);
   eo.setFirstName(firstName);
   eo.setHireDate(hireDate);
   eo.setInsured(insured);
   eo.setLastName(lastName);
   eo.setStatus(status);
   eo.setCompanyRelationship(company);
   return eo;
 }
예제 #10
0
파일: _Group.java 프로젝트: VboxNick/wounit
 public static Group createGroup(EOEditingContext editingContext) {
   Group eo = (Group) EOUtilities.createAndInsertInstance(editingContext, _Group.ENTITY_NAME);
   return eo;
 }
 public static ERRole createERRole(EOEditingContext editingContext, String name) {
   ERRole eo = (ERRole) EOUtilities.createAndInsertInstance(editingContext, _ERRole.ENTITY_NAME);
   eo.setName(name);
   return eo;
 }