Examples of Helicopter


Examples of ArrayWithGrid.Helicopter

        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.initialize();
        this.setHeliList(new Array_Of_Helicopter<Helicopter>());

        Helicopter aHeli = new Helicopter();
        aHeli.setMake("Robinson");
        aHeli.setModel("R22");
        aHeli.setBlades(2);
        aHeli.getEngine().setPower(240f);
        aHeli.getEngine().setCylinders(4);
        aHeli.getEngine().setCapacity(240f);
        aHeli.getEngine().setCompany("Lycoming");
        this.getHeliList().add(aHeli);

        aHeli = new Helicopter();
        aHeli.setMake("Robinson");
        aHeli.setModel("R44");
        aHeli.setBlades(2);
        aHeli.getEngine().setPower(360f);
        aHeli.getEngine().setCylinders(6);
        aHeli.getEngine().setCapacity(540f);
        aHeli.getEngine().setCompany("Lycoming");
        this.getHeliList().add(aHeli);

        this.setWishList(new Array_Of_Helicopter<Helicopter>());

        this.setHeliListWithButton(this.getHeliList());
View Full Code Here

Examples of org.hibernate.ogm.backendtck.simpleentity.Helicopter

    int numInsert = 3;
    int numUpdate = 1;

    Session session = openSession();
    session.beginTransaction();
    Helicopter helicopter = helicopter( "H_tmp" );
    session.persist( helicopter );
    for ( int i = 0; i < numInsert; i++ ) {
      session.persist( helicopter( "H_" + i ) );
    }
    helicopter.setName( "H_" + numInsert );
    session.getTransaction().commit();
    session.close();

    Assertions.assertThat( LeakingMongoDBDialect.queueSize ).isEqualTo( numUpdate + ( numInsert + 1 ) );
  }
View Full Code Here

Examples of org.hibernate.ogm.backendtck.simpleentity.Helicopter

    Session session = openSession();
    session.beginTransaction();
    List<Helicopter> helicopters = new ArrayList<Helicopter>();
    for ( int i = 0; i < numInsert; i++ ) {
      Helicopter helicopter = helicopter( "H_" + i );
      session.persist( helicopter );
      helicopters.add( helicopter );
    }
    for ( Helicopter helicopter : helicopters ) {
      session.delete( helicopter );
View Full Code Here

Examples of org.hibernate.ogm.backendtck.simpleentity.Helicopter

    session.getTransaction().commit();
    session.close();
  }

  private Helicopter helicopter(String name) {
    Helicopter helicopter = new Helicopter();
    helicopter.setName( name );
    return helicopter;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.