Package com.centraview.projects.task

Examples of com.centraview.projects.task.TaskLocalHome


  public int addProjectTask(int userId, TaskVO tvo)
  {
    int id = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TaskLocalHome home = (TaskLocalHome)ic.lookup("local/Task");
      TaskLocal remote = (TaskLocal)home.create();
      remote.setDataSource(this.dataSource);
      id = remote.addTask(userId, tvo);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.addProjectTask] Exception Thrown: " + e);
      e.printStackTrace();
View Full Code Here


          "<error> You don't have privilege to update some Records. </error>");
    }

    try {
      InitialContext ic = CVUtility.getInitialContext();
      TaskLocalHome home = (TaskLocalHome)ic.lookup("local/Task");
      TaskLocal remote = (TaskLocal)home.create();
      remote.setDataSource(this.dataSource);
      remote.updateTask(userId, tvo);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.updateProjectTask] Exception Thrown: " + e);
      e.printStackTrace();
View Full Code Here

          "<error> You don't have privilege to Delete some Records. </error>");
    }

    try {
      InitialContext ic = CVUtility.getInitialContext();
      TaskLocalHome home = (TaskLocalHome)ic.lookup("local/Task");
      TaskLocal remote = (TaskLocal)home.create();
      remote.setDataSource(this.dataSource);

      remote.deleteTask(taskID, individualID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
View Full Code Here

  {
    TaskVO taskVO = null;

    try {
      InitialContext ic = CVUtility.getInitialContext();
      TaskLocalHome home = (TaskLocalHome)ic.lookup("local/Task");
      TaskLocal remote = (TaskLocal)home.create();
      remote.setDataSource(this.dataSource);

      taskVO = remote.getTask(taskId, userId);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.getTask] Exception Thrown: " + e);
View Full Code Here

      Collection result = cvdal.executeQuery();
      if (result != null) {
        // if we have any results from the query set up the connection
        // to the local task session EJB
        InitialContext ctx = new InitialContext();
        TaskLocalHome taskHome = (TaskLocalHome)ctx.lookup("local/Task");
        TaskLocal taskBean = taskHome.create();
        taskBean.setDataSource(dataSource);
        // the iterate through the results of the query grabbing a taskVO
        // for each id.
        Iterator i = result.iterator();
        while (i.hasNext()) {
View Full Code Here

TOP

Related Classes of com.centraview.projects.task.TaskLocalHome

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.