public class CarServiceEmJtaAnn extends Object implements CarService
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
| Constructor and Description |
|---|
CarServiceEmJtaAnn() |
public Car getCar(String id)
getCar in interface CarServicepublic void addCar(Car car)
addCar in interface CarServicepublic Collection<Car> getCars()
getCars in interface CarServicepublic void updateCar(Car car)
updateCar in interface CarServicepublic void deleteCar(String id)
deleteCar in interface CarServicepublic void setEm(javax.persistence.EntityManager em)
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.