Package com.centraview.customfield

Examples of com.centraview.customfield.CustomFieldLocal


    {
      // Save CustomFields
      Vector custfieldVec = promotionvo.getCustomfield();
      InitialContext ic = CVUtility.getInitialContext();
      CustomFieldLocalHome custHome = (CustomFieldLocalHome)ic.lookup("local/CustomField");
      CustomFieldLocal custRemote = custHome.create();
      custRemote.setDataSource(this.dataSource);

      for (int i =0;i<custfieldVec.size();i++)
      {
        CustomFieldVO custFieldVO = (CustomFieldVO)custfieldVec.get(i);
        custFieldVO.setRecordID( promotionid );
        custRemote.addCustomField(custFieldVO);
      }

            AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
            AuthorizationLocal authorizationLocal = authorizationHome.create();
            authorizationLocal.setDataSource(dataSource);
View Full Code Here


    {
      // update CustomFields
      Vector custfieldVec = promotionvo.getCustomfield();
      InitialContext ic = CVUtility.getInitialContext();
      CustomFieldLocalHome custHome = (CustomFieldLocalHome)ic.lookup("local/CustomField");
      CustomFieldLocal custRemote = custHome.create();
      custRemote.setDataSource(this.dataSource);

      for (int i =0;i<custfieldVec.size();i++)
      {
        CustomFieldVO custFieldVO = (CustomFieldVO)custfieldVec.get(i);
        custFieldVO.setRecordID( PromotionID );
        custRemote.updateCustomField( custFieldVO );
      }
    }
    catch(Exception e )
    {
      System.out.println("[Exception][PromotionEJB.updatePromotion] Exception Thrown: "+e);
View Full Code Here

TOP

Related Classes of com.centraview.customfield.CustomFieldLocal

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.