Package com.centraview.marketing.literature

Examples of com.centraview.marketing.literature.LiteratureLocalHome


      throws AuthorizationFailedException
  {
    int result = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.deleteLiterature(elementid, userid);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
View Full Code Here


  public int addLiterature(HashMap mapLiterature)
  {
    int result = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.addLiterature(mapLiterature);
    } catch (Exception exe) {
      exe.printStackTrace();
      result = 1;
View Full Code Here

  public Vector getAllLiterature()
  {
    Vector result = new Vector();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.getAllLiterature();
    } catch (Exception exe) {
      exe.printStackTrace();
      return null;
View Full Code Here

  public Vector getAllDeliveryMethod()
  {
    Vector result = new Vector();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.getAllDeliveryMethod();
    } catch (Exception exe) {
      exe.printStackTrace();
      return null;
View Full Code Here

  public Vector getAllActivityStatus()
  {
    Vector result = new Vector();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.getAllActivityStatus();
    } catch (Exception exe) {
      exe.printStackTrace();
      return null;
View Full Code Here

  public LiteratureDetails getLiteratureDetails(int activityID, int individualID)
  {
    LiteratureDetails literatureDetails = new LiteratureDetails();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      literatureDetails = local.getLiteratureDetails(activityID, individualID);
    } catch (Exception exe) {
      exe.printStackTrace();
      return null;
View Full Code Here

  public int editLiterature(HashMap mapLiterature)
  {
    int result = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.editLiterature(mapLiterature);
    } catch (Exception exe) {
      exe.printStackTrace();
      result = 1;
View Full Code Here

  public int deleteLiterature(int activityid, int individualID) throws AuthorizationFailedException
  {
    int result = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.deleteLiterature(activityid, individualID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
View Full Code Here

TOP

Related Classes of com.centraview.marketing.literature.LiteratureLocalHome

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.