FileDocCategorySizeDatePackage
IBatisRentABike.javaAPI DocExample2500Sun Apr 24 21:24:38 BST 2005com.springbook

IBatisRentABike

public class IBatisRentABike extends org.springframework.orm.ibatis.support.SqlMapDaoSupport implements RentABike

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

        getSqlMapTemplate().executeUpdate("deleteBike", bike);
    
public voiddeleteCustomer(Customer customer)

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

        return (Bike) getSqlMapTemplate().executeQueryForObject("getBikeBySerialNo", serialNo);
    
public BikegetBike(int bikeId)

        return (Bike) getSqlMapTemplate().executeQueryForObject("getBikeByID", new Integer(bikeId));
    
public java.util.ListgetBikes()



       
        return getSqlMapTemplate().executeQueryForList("getBikes", null);
    
public CustomergetCustomer(int custId)

        return (Customer) getSqlMapTemplate().executeQueryForObject("getCustomer", new Integer(custId));
    
public java.util.ListgetCustomers()

        return getSqlMapTemplate().executeQueryForList("getCustomers", null);
    
public ReservationgetReservation(int resId)

        return (Reservation) getSqlMapTemplate().executeQueryForObject("getReservation", new Integer(resId));
    
public java.util.ListgetReservations()

        return getSqlMapTemplate().executeQueryForList("getReservations", null);
    
public java.util.ListgetReservations(Customer customer)

        return getSqlMapTemplate().executeQueryForList("getReservationsForCustomer", customer);
    
public java.util.ListgetReservations(Bike bike)

        return getSqlMapTemplate().executeQueryForList("getReservationsForBike", bike);
    
public java.util.ListgetReservations(java.util.Date date)

        return getSqlMapTemplate().executeQueryForList("getReservationsForDate", date);
    
public java.lang.StringgetStoreName()

        return this.storeName;
    
public voidsaveBike(Bike bike)

        getSqlMapTemplate().executeUpdate("saveBike", 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.