Package org.eclipselabs.mongoemf.perf.model

Examples of org.eclipselabs.mongoemf.perf.model.TestObject1


        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ModelPackage.TEST_OBJECT1:
      {
        TestObject1 testObject1 = (TestObject1)theEObject;
        T result = caseTestObject1(testObject1);
        if (result == null) result = caseBaseObject(testObject1);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
View Full Code Here


   * @param i unique object index
   * @return test object filled with dummy data
   */
  private TestObject1 createTestObject1(int i)
  {
    TestObject1 object = ModelFactory.eINSTANCE.createTestObject1();

    object.setName("Test Object " + i);
    object.setDescription("MongoDB test object " + i);
    object.setCategory("Test Object");
    object.setCount(i);
    object.setTag("Object Tag");
    object.setCreated(new Date());
    object.setFirstAvailable(new Date());
    object.setLastAvailable(new Date());
    object.setLastModified(new Date());
    object.setData(object.toString());

    return object;
  }
View Full Code Here

    ObjectGroup root = createObjectGroup(0);

    for (int i = 0; i < numberObjects; i++)
    {
      TestObject1 object = createTestObject1(i);
      root.getChildren().add(object);

      Resource resource = resourceSet.createResource(uri);
      resource.getContents().add(object);
      resource.save(null);
View Full Code Here

   * @param i unique object index
   * @return test object filled with dummy data
   */
  private TestObject1 createTestObject1(int i)
  {
    TestObject1 object = ModelFactory.eINSTANCE.createTestObject1();

    object.setName("Test Object " + i);
    object.setDescription("MongoDB test object " + i);
    object.setCategory("Test Object");
    object.setCount(i);
    object.setTag("Object Tag");
    object.setCreated(new Date());
    object.setFirstAvailable(new Date());
    object.setLastAvailable(new Date());
    object.setLastModified(new Date());
    object.setData(object.toString());

    return object;
  }
View Full Code Here

TOP

Related Classes of org.eclipselabs.mongoemf.perf.model.TestObject1

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.