Package com.centraview.marketing.literature

Examples of com.centraview.marketing.literature.LiteratureLocalHome.create()


  {
    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


  {
    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

  {
    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

  {
    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

  {
    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

  {
    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

  {
    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

  {
    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
Copyright © 2018 www.massapi.com. 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.