Methods Summary |
---|
public void | deleteBike(Bike bike)
getJdoTemplate().deletePersistent(bike);
|
public void | deleteCustomer(Customer customer)
//To change body of implemented methods use File | Settings | File Templates.
|
public Bike | getBike(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 Bike | getBike(int bikeId)
return (Bike)getJdoTemplate().getObjectById(Bike.class, new Long(bikeId));
|
public java.util.List | getBikes()
return (List)getJdoTemplate().find(Bike.class);
|
public java.util.Collection | getBikesColl()
JdoTemplate jdo = getJdoTemplate();
Collection results = jdo.find(Bike.class);
return results;
|
public Customer | getCustomer(int custId)
return null; //To change body of implemented methods use File | Settings | File Templates.
|
public java.util.List | getCustomers()
return null; //To change body of implemented methods use File | Settings | File Templates.
|
public Reservation | getReservation(int resId)
return null; //To change body of implemented methods use File | Settings | File Templates.
|
public java.util.List | getReservations()
return null; //To change body of implemented methods use File | Settings | File Templates.
|
public java.util.List | getReservations(Customer customer)
return null; //To change body of implemented methods use File | Settings | File Templates.
|
public java.util.List | getReservations(Bike bike)
return null; //To change body of implemented methods use File | Settings | File Templates.
|
public java.util.List | getReservations(java.util.Date date)
return null; //To change body of implemented methods use File | Settings | File Templates.
|
public java.lang.String | getStoreName()
return this.storeName;
|
public void | saveBike(Bike bike)
getJdoTemplate().makePersistent(bike);
|
public void | saveCustomer(Customer customer)
//To change body of implemented methods use File | Settings | File Templates.
|
public void | setStoreName(java.lang.String name)
this.storeName = name;
|
public void | transferReservation(Reservation oldRes, Reservation newRes)
//To change body of implemented methods use File | Settings | File Templates.
|