Package com.centraview.marketing.promotion

Examples of com.centraview.marketing.promotion.PromotionLocal


  {
    PromotionVO promotionVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PromotionLocalHome home = (PromotionLocalHome)ic.lookup("local/Promotion");
      PromotionLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      promotionVO = (PromotionVO)remote.getPromotion(userId, data);
    } catch (Exception e) {
      e.printStackTrace();
      return null;
    }
    return promotionVO;
View Full Code Here


  {
    String result = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PromotionLocalHome home = (PromotionLocalHome)ic.lookup("local/Promotion");
      PromotionLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      result = (String)remote.addPromotion(userId, data);
    } catch (Exception e) {
      e.printStackTrace();
      return null;
    }
    return result;
View Full Code Here

  {
    String result = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PromotionLocalHome home = (PromotionLocalHome)ic.lookup("local/Promotion");
      PromotionLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      result = (String)remote.deletePromotion(userId, elementID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
View Full Code Here

  {
    String result = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PromotionLocalHome home = (PromotionLocalHome)ic.lookup("local/Promotion");
      PromotionLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      result = (String)remote.updatePromotion(userId, data);
    } catch (Exception e) {
      e.printStackTrace();
      return null;
    }
    return result;
View Full Code Here

TOP

Related Classes of com.centraview.marketing.promotion.PromotionLocal

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.