skoinfo.rfc.event
Class EventManager

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by skoinfo.rfc.common.action.AbstractAction
          extended by skoinfo.rfc.event.EventManager
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable

public class EventManager
extends AbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
EventManager(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 int eventCount(java.lang.String questionSid)
           
 SurveyResultVO eventQuestion(java.lang.String questionSid)
          public AdminEventVO eventQuestionTag(String adminEventSid)throws Exception { Session session = HibernateUtil.getSessionFactory().getCurrentSession(); try{ session.beginTransaction(); if(debugMode.equals("true")) session.setCacheMode(CacheMode.REFRESH); //log.info("adminEventSid"+adminEventSid); //log.info("contentsSid"+contentsSid); adminEventVO.setAdminEventSid(Long.parseLong(adminEventSid)); adminEventVO=eventDAO.viewEvent(session, adminEventVO); return adminEventVO; } catch (Exception e) { Transaction tx = session.getTransaction(); if (tx !
 
Methods inherited from class skoinfo.rfc.common.action.AbstractAction
getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventManager

public EventManager(javax.servlet.http.HttpServletRequest request)
Method Detail

eventQuestion

public SurveyResultVO eventQuestion(java.lang.String questionSid)
                             throws java.lang.Exception
public AdminEventVO eventQuestionTag(String adminEventSid)throws Exception { Session session = HibernateUtil.getSessionFactory().getCurrentSession(); try{ session.beginTransaction(); if(debugMode.equals("true")) session.setCacheMode(CacheMode.REFRESH); //log.info("adminEventSid"+adminEventSid); //log.info("contentsSid"+contentsSid); adminEventVO.setAdminEventSid(Long.parseLong(adminEventSid)); adminEventVO=eventDAO.viewEvent(session, adminEventVO); return adminEventVO; } catch (Exception e) { Transaction tx = session.getTransaction(); if (tx != null && tx.isActive()) { tx.rollback(); } throw e; } finally { if(session.isOpen()) session.close(); } } public AdminEventVO eventInfoTag(String adminEventSid)throws Exception { Session session = HibernateUtil.getSessionFactory().getCurrentSession(); try{ session.beginTransaction(); if(debugMode.equals("true")) session.setCacheMode(CacheMode.REFRESH); //log.info("adminEventSid"+adminEventSid); //log.info("contentsSid"+contentsSid); adminEventVO.setAdminEventSid(Long.parseLong(adminEventSid)); adminEventVO=eventDAO.viewEvent(session, adminEventVO); return adminEventVO; } catch (Exception e) { Transaction tx = session.getTransaction(); if (tx != null && tx.isActive()) { tx.rollback(); } throw e; } finally { if(session.isOpen()) session.close(); } }

Throws:
java.lang.Exception

eventCount

public int eventCount(java.lang.String questionSid)
               throws java.lang.Exception
Throws:
java.lang.Exception