Package com.centraview.projects.timeslip

Examples of com.centraview.projects.timeslip.TimeSlipLocal


  public int addTimeSlip(int userId, TimeSlipVO tsvo)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TimeSlipLocalHome home = (TimeSlipLocalHome)ic.lookup("local/TimeSlip");
      TimeSlipLocal remote = (TimeSlipLocal)home.create();
      remote.setDataSource(this.dataSource);

      return remote.addTimeSlip(userId, tsvo);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.addTimeSlip] Exception Thrown: " + e);
      e.printStackTrace();
    }
    return 0;
View Full Code Here


  public void deleteTimeSlip(int timeslipID)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TimeSlipLocalHome home = (TimeSlipLocalHome)ic.lookup("local/TimeSlip");
      TimeSlipLocal remote = (TimeSlipLocal)home.create();
      remote.setDataSource(this.dataSource);

      remote.deleteTimeSlip(timeslipID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
View Full Code Here

  public void duplicateTimeSlip(int userId, int timeSlipId)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TimeSlipLocalHome home = (TimeSlipLocalHome)ic.lookup("local/TimeSlip");
      TimeSlipLocal remote = (TimeSlipLocal)home.create();
      remote.setDataSource(this.dataSource);

      remote.duplicateTimeSlip(userId, timeSlipId);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.duplicateTimeSlip] Exception Thrown: " + e);
      e.printStackTrace();
    }
View Full Code Here

    TimeSlipVO tVO = null;

    try {
      InitialContext ic = CVUtility.getInitialContext();
      TimeSlipLocalHome home = (TimeSlipLocalHome)ic.lookup("local/TimeSlip");
      TimeSlipLocal remote = (TimeSlipLocal)home.create();
      remote.setDataSource(this.dataSource);

      tVO = remote.getTimeSlip(timeSlipId, userId);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.getTimeSlip] Exception Thrown: " + e);
      e.printStackTrace();
    }
    return tVO;
View Full Code Here

  public void updateTimeSlip(int userId, TimeSlipVO tsvo)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TimeSlipLocalHome home = (TimeSlipLocalHome)ic.lookup("local/TimeSlip");
      TimeSlipLocal remote = (TimeSlipLocal)home.create();
      remote.setDataSource(this.dataSource);

      remote.updateTimeSlip(userId, tsvo);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.updateTimeSlip] Exception Thrown: " + e);
      e.printStackTrace();
    }
    return;
View Full Code Here

    int timeslipID = 0;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      TimeSlipLocalHome home = (TimeSlipLocalHome)ic.lookup("local/TimeSlip");
      TimeSlipLocal remote = (TimeSlipLocal) home.create();
      remote.setDataSource(this.dataSource);
      timeslipID = remote.addTimeSlip(indvId,tsvo);

    }catch(Exception e)
    {
      System.out.println("[Exception][HrFacadeEJB.addTimeSlip] Exception Thrown: "+e);
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.centraview.projects.timeslip.TimeSlipLocal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.