Examples of Car


Examples of org.qi4j.sample.rental.domain.Car

            Document dom = context.dom();
            Element result = dom.createElementNS( Page.XHTML, "div" );
            String bookingId = context.path();
            UnitOfWork uow = uowf.currentUnitOfWork();
            Booking booking = uow.get( Booking.class, bookingId );
            Car car = booking.car().get();
            createChildNode( dom, result, car.model().get() );
            createChildNode( dom, result, car.licensePlate().get() );
            createChildNode( dom, result, car.category().get().name().get() );
            return result;
        }
View Full Code Here

Examples of org.richfaces.showcase.dataTable.AbstractDataIterationWithCars.Car

    public List<Car> getCars() {
        List<Car> result = new ArrayList<Car>();
        for (WebElement row : tBody.findElements(By.tagName("tr"))) {
            List<WebElement> cells = row.findElements(By.tagName("td"));
            result.add(new Car(cells.get(0).getText(), cells.get(1).getText(), cells.get(2).getText(), cells.get(3).getText(),
                    cells.get(4).getText(), null));
        }
        return result;
    }
View Full Code Here

Examples of org.richfaces.showcase.dataTable.AbstractDataIterationWithCars.Car

            List<WebElement> cells = row.findElements(By.cssSelector("td > div > div"));
            mileage.add(cells.get(0).getText());
            vin.add(cells.get(1).getText());
        }
        for (int i=0; i < vendor.size(); i++) {
            result.add(new Car(vendor.get(i), model.get(i), null, mileage.get(i), vin.get(i), null));
        }
        return result;
    }
View Full Code Here

Examples of org.springframework.data.elasticsearch.entities.Car

  @Test
  public void shouldMapJsonStringToObject() throws IOException {
    //Given

    //When
    Car result = entityMapper.mapToObject(JSON_STRING, Car.class);

    //Then
    assertThat(result.getName(), is(CAR_NAME));
    assertThat(result.getModel(), is(CAR_MODEL));
  }
View Full Code Here

Examples of org.springframework.data.neo4j.Car

    @Test
  @Transactional
  public void testInstantiateConcreteClass() {
    log.debug("testInstantiateConcreteClass");
        Person p = persistedPerson("Michael", 35);
    Car c = new Volvo().persist();
    p.setCar(c);
    assertEquals("Wrong concrete class.", Volvo.class, p.getCar().getClass());
  }
View Full Code Here

Examples of org.springframework.data.neo4j.aspects.Car

    @Test
  @Transactional
  public void testInstantiateConcreteClass() {
    log.debug("testInstantiateConcreteClass");
        Person p = persistedPerson("Michael", 35);
        Car c = persist(new Volvo());
    p.setCar(c);
    assertEquals("Wrong concrete class.", Volvo.class, p.getCar().getClass());
  }
View Full Code Here

Examples of org.springframework.data.neo4j.model.Car

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:ReadWriteTests-context.xml");
        boolean delete = false;
        try {
            Neo4jTemplate template = ctx.getBean(Neo4jTemplate.class);
            Car car = findOne(template);
            if (car != null) {
                delete = true;
                assertEquals(Volvo.class, car.getClass());
            } else {
                Transaction tx = template.getGraphDatabase().beginTx();
                Volvo volvo = template.save(new Volvo());
                assertEquals(1, volvo.id.intValue());
                tx.success();
View Full Code Here

Examples of org.springframework.integration.voldemort.test.domain.Car

    final StoreClient storeClient = context.getBean( "objectStoreClient", StoreClient.class );
    final MessageChannel voldemortOutboundPutChannel = context.getBean( "voldemortOutboundPutChannel", MessageChannel.class );

    // given
    final Car.CarId carId = new Car.CarId( 1 );
    final Car car = new Car( carId, "Ford Mustang" );

    // when
    final Message<Car> message = MessageBuilder.withPayload( car ).setHeader( VoldemortHeaders.KEY, carId ).build();
    voldemortOutboundPutChannel.send( message );
View Full Code Here

Examples of org.springmodules.samples.jsr94.model.Car

    /**
     * @see org.springframework.jdbc.object.MappingSqlQuery#mapRow(java.sql.ResultSet, int)
     */
    protected Object mapRow(ResultSet rs, int pos) throws SQLException {
      Car car=new Car();
      car.setId(rs.getInt("car_id"));
      car.setName(rs.getString("car_name"));
      car.setMark(rs.getString("car_mark"));
      car.setModel(rs.getString("car_model"));
      car.setYear(rs.getInt("car_year"));
      car.setPrice(rs.getFloat("car_price"));
      return car;
    }
View Full Code Here

Examples of org.springmodules.samples.jsr94.model.Car

public class TestJSR94 {
  private static final Log log = LogFactory.getLog(TestJSR94.class);

  private static void showCars(List cars) {
    for(Iterator i=cars.iterator();i.hasNext();) {
      Car car=(Car)i.next();
      log.info("## "+car.getName()+" ("+car.getId()+")");
      log.info("    - "+car.getMark());
      log.info("    - "+car.getModel());
      log.info("    - "+car.getYear());
      log.info("    - "+car.getPrice());
    }
  }
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.