コード例 #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
ファイル: _Category.java プロジェクト: warrencohn/marketplace
 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;
 }
コード例 #5
0
 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;
 }
コード例 #8
0
 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;
 }
コード例 #11
0
 public static ERRole createERRole(EOEditingContext editingContext, String name) {
   ERRole eo = (ERRole) EOUtilities.createAndInsertInstance(editingContext, _ERRole.ENTITY_NAME);
   eo.setName(name);
   return eo;
 }