コード例 #1
0
 /** api to update appointment status to signed */
 public void sign() {
   setApptStatus(SIGNED);
   Hib.template().update(this);
 }
コード例 #2
0
 /**
  * static method for removing an instance from the database
  *
  * @param apptClient id of appointment to remove
  */
 public static void removeInstance(final ApptClient apptClient) {
   Hib.template().delete(apptClient);
 }
コード例 #3
0
 /** public interface to set status to checked out */
 public void checkout() {
   setApptStatus(CHECKED_OUT);
   Hib.template().update(this);
 }
コード例 #4
0
 /**
  * factory method for instance from the database
  *
  * @param apptId the appointment id
  * @return an instance from the database or null
  */
 public static ApptClient getInstance(final Integer apptId) {
   return Hib.template().get(ApptClient.class, apptId);
 }
コード例 #5
0
 /** public interface to set status to checked in */
 public void checkin() {
   setApptStatus(CHECKED_IN);
   this.setCheckinTime(new Date());
   Hib.template().update(this);
 }