FileDocCategorySizeDatePackage
KodoRentABike.javaAPI DocExample2820Mon Apr 25 00:00:16 BST 2005com.springbook

KodoRentABike

public class KodoRentABike extends org.springframework.orm.jdo.support.JdoDaoSupport implements RentABike

Fields Summary
private String
storeName
Constructors Summary
Methods Summary
public voiddeleteBike(Bike bike)

        getJdoTemplate().deletePersistent(bike);
    
public voiddeleteCustomer(Customer customer)

        //To change body of implemented methods use File | Settings | File Templates.
    
public BikegetBike(java.lang.String serialNo)

        Collection c = getJdoTemplate().find(Bike.class, "serialNo == '" + serialNo + "'");
        Bike b = null;
        if(c.size() > 0) {
            b = (Bike)c.iterator().next();
        }
        return b;
    
public BikegetBike(int bikeId)

        return (Bike)getJdoTemplate().getObjectById(Bike.class, new Long(bikeId));
    
public java.util.ListgetBikes()

        return (List)getJdoTemplate().find(Bike.class);
    
public java.util.CollectiongetBikesColl()

        JdoTemplate jdo = getJdoTemplate();
        Collection results = jdo.find(Bike.class);
        return results;
    
public CustomergetCustomer(int custId)

        return null;  //To change body of implemented methods use File | Settings | File Templates.
    
public java.util.ListgetCustomers()

        return null;  //To change body of implemented methods use File | Settings | File Templates.
    
public ReservationgetReservation(int resId)

        return null;  //To change body of implemented methods use File | Settings | File Templates.
    
public java.util.ListgetReservations()

        return null;  //To change body of implemented methods use File | Settings | File Templates.
    
public java.util.ListgetReservations(Customer customer)

        return null;  //To change body of implemented methods use File | Settings | File Templates.
    
public java.util.ListgetReservations(Bike bike)

        return null;  //To change body of implemented methods use File | Settings | File Templates.
    
public java.util.ListgetReservations(java.util.Date date)

        return null;  //To change body of implemented methods use File | Settings | File Templates.
    
public java.lang.StringgetStoreName()

        return this.storeName;
    
public voidsaveBike(Bike bike)

        getJdoTemplate().makePersistent(bike);
    
public voidsaveCustomer(Customer customer)

        //To change body of implemented methods use File | Settings | File Templates.
    
public voidsetStoreName(java.lang.String name)

        this.storeName = name;
    
public voidtransferReservation(Reservation oldRes, Reservation newRes)

      //To change body of implemented methods use File | Settings | File Templates.