Package org.xooof.xooofoscope.dao

Examples of org.xooof.xooofoscope.dao.IFamousPlaceDAO


  // class methods

  protected SFamousPlace ejbHomeQueryImpl(XMLDispatcherContext xdCtx, SObjRef rqst)
    throws XMLDispatcherUserException, XMLDispatcherAppException {

    IFamousPlaceDAO dao = FamousPlaceDAOFactory.getFamousPlaceDAOInstance();
   
    try {
      return dao.fetchByPK(new Integer(rqst.getObjId()));
    }
    catch (DAOException e) {
      logcat.error("DAOError", e)
      throw new XMLDispatcherAppException(e.getMessage());
   
View Full Code Here


  protected SFamousPlace ejbHomeQueryByNameImpl
                            (XMLDispatcherContext xdCtx, SKey rqst)
    throws XMLDispatcherUserException, XMLDispatcherAppException {

    IFamousPlaceDAO dao = FamousPlaceDAOFactory.getFamousPlaceDAOInstance();
   
    try {
      return dao.fetchByName(rqst.getKey());
    }
    catch (DAOException e) {
      logcat.error("DAOError", e)
      throw new XMLDispatcherAppException(e.getMessage());
    }
View Full Code Here

  }

  protected SFamousPlaceArrayList ejbHomeQueryAllImpl(XMLDispatcherContext xdCtx
  throws XMLDispatcherUserException, XMLDispatcherAppException {

    IFamousPlaceDAO dao = FamousPlaceDAOFactory.getFamousPlaceDAOInstance();
   
    try {
      return dao.fetchAll();
    }
    catch (DAOException e) {
      logcat.error("DAOError", e)
      throw new XMLDispatcherAppException(e.getMessage());
   
View Full Code Here

  protected String ejbCreateCreateImpl(XMLDispatcherContext xdCtx, SFamousPlaceCreate rqst)
  throws XMLDispatcherUserException, XMLDispatcherAppException, javax.ejb.CreateException {
   
    /* Assign the primary key*/  
    IFamousPlaceDAO dao = FamousPlaceDAOFactory.getFamousPlaceDAOInstance();
    try {
      Integer newPK = dao.getPK();
      setId(newPK.toString());
    }
    catch (DAOException e) {
      throw new XMLDispatcherAppException("Error while getting new primary key for FamousPlace:"+e.getMessage());
    }
View Full Code Here

TOP

Related Classes of org.xooof.xooofoscope.dao.IFamousPlaceDAO

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.