Package com.centraview.support.faq

Examples of com.centraview.support.faq.FaqLocalHome.create()


  public int addFaq(int userId, FaqVO fvo)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      FaqLocalHome home = (FaqLocalHome) ic.lookup("local/Faq");
      FaqLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      return remote.addFaq(userId, fvo);
    } catch (Exception e) {
      logger.error("[addFaq]: Exception", e);
    }
View Full Code Here


  {
    FaqVO faqVo = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      FaqLocalHome home = (FaqLocalHome) ic.lookup("local/Faq");
      FaqLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      faqVo = remote.getFaq(userId, faqId);
    } catch (Exception e) {
      logger.error("[getFaq]: Exception", e);
    }
View Full Code Here

  public void updateFaq(int userId, FaqVO fvo)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      FaqLocalHome home = (FaqLocalHome) ic.lookup("local/Faq");
      FaqLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.updateFaq(userId, fvo);
    } catch (Exception e) {
      logger.error("[updateFaq]: Exception", e);
    }
View Full Code Here

  public void deleteFaq(int userId, int faqId)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      FaqLocalHome home = (FaqLocalHome) ic.lookup("local/Faq");
      FaqLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteFaq(userId, faqId);
    } catch (Exception e) {
      logger.error("[deleteFaq]: Exception", e);
    }
View Full Code Here

  {
    int faqId = -1;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      FaqLocalHome home = (FaqLocalHome) ic.lookup("local/Faq");
      FaqLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      faqId = remote.duplicateFaq(userId, fvo);
    } catch (Exception e) {
      logger.error("[duplicateFaq]: Exception", e);
    }
View Full Code Here

  {
    int qId = -1;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      FaqLocalHome home = (FaqLocalHome) ic.lookup("local/Faq");
      FaqLocal local = home.create();
      local.setDataSource(this.dataSource);
      qId = local.addQuestion(userId, qvo);
    } catch (Exception e) {
      logger.error("[addQuestion]: Exception", e);
    }
View Full Code Here

  public void updateQuestion(int userId, QuestionVO qvo)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      FaqLocalHome home = (FaqLocalHome) ic.lookup("local/Faq");
      FaqLocal local = home.create();
      local.setDataSource(this.dataSource);
      local.updateQuestion(userId, qvo);
    } catch (Exception e) {
      logger.error("[updateQuestion]: Exception", e);
    }
View Full Code Here

  {
    QuestionVO qvo = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      FaqLocalHome home = (FaqLocalHome) ic.lookup("local/Faq");
      FaqLocal local = home.create();
      local.setDataSource(this.dataSource);
      qvo = local.getQuestion(userId, questionId);
    } catch (Exception e) {
      logger.error("[getQuestion]: Exception", e);
    }
View Full Code Here

  public void deleteQuestion(int userId, int questionId)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      FaqLocalHome home = (FaqLocalHome) ic.lookup("local/Faq");
      FaqLocal local = home.create();
      local.setDataSource(this.dataSource);
      local.deleteQuestion(userId, questionId);
    } catch (Exception e) {
      logger.error("[deleteQuestion]: Exception", e);
    }
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.