Package com.centraview.support.faq

Examples of com.centraview.support.faq.FaqLocalHome


  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


  public FaqVO getFaq(int userId, int faqId)
  {
    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

  public int duplicateFaq(int userId, FaqVO fvo)
  {
    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

  public int addQuestion(int userId, QuestionVO qvo)
  {
    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

  public QuestionVO getQuestion(int userId, int questionId)
  {
    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

Related Classes of com.centraview.support.faq.FaqLocalHome

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.