Package com.centraview.marketing.List

Examples of com.centraview.marketing.List.ListLocal


  {
    HashMap messageMap = new HashMap();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ListLocalHome home = (ListLocalHome)ic.lookup("local/List");
      ListLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      messageMap = remote.getImportList(importList, headerRow, listid, indvID, CustomEntList,
          CustomIndList, tabDelimiter, lineDelimiter, headLine);
    } catch (Exception e) {
      System.out.println("Failed in getting EventList");
      e.printStackTrace();
      return null;
View Full Code Here


  {
    Collection col = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ListLocalHome home = (ListLocalHome)ic.lookup("local/List");
      ListLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      col = remote.getAllList();
    } catch (Exception e) {
      System.out.println("Failed in getting EmailList");
      e.printStackTrace();
      return col;
    }
View Full Code Here

  {
    int listid = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ListLocalHome home = (ListLocalHome)ic.lookup("local/List");
      ListLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      listid = remote.addList(userId, listVO);
    } catch (Exception e) {
      System.out.println("Failed in getting EmailList");
      // e.printStackTrace();
      return (0);
    }
View Full Code Here

  public boolean deleteList(int i)
  {
    try {
      InitialContext initialcontext = CVUtility.getInitialContext();
      ListLocalHome listlocalhome = (ListLocalHome)initialcontext.lookup("local/List");
      ListLocal listlocal = listlocalhome.create();
      listlocal.setDataSource(this.dataSource);
      listlocal.deleteList(i);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
View Full Code Here

  {
    boolean listid = false;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ListLocalHome home = (ListLocalHome)ic.lookup("local/List");
      ListLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      listid = remote.updateList(userId, listVO);
    } catch (Exception e) {
      System.out.println("Failed in getting EmailList");
      e.printStackTrace();
      return listid;
    }
View Full Code Here

  {
    ListVO listVO = new ListVO();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ListLocalHome home = (ListLocalHome)ic.lookup("local/List");
      ListLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      listVO = remote.viewList(listid);
    } catch (Exception e) {
      System.out.println("MarketingFacadeEJB.viewList" + e);
      e.printStackTrace();
      return listVO;
    }
View Full Code Here

TOP

Related Classes of com.centraview.marketing.List.ListLocal

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.