Examples of DAOFactory


Examples of com.elasticinbox.core.DAOFactory

  @Context UriInfo uriInfo;

  public LabelResource()
  {
    DAOFactory dao = DAOFactory.getDAOFactory();
    messageDAO = dao.getMessageDAO();
    labelDAO = dao.getLabelDAO();
  }
View Full Code Here

Examples of com.elasticinbox.core.DAOFactory

public class MailboxHandlerFactory
{
  private final MessageDAO messageDAO;

  public MailboxHandlerFactory() {
    DAOFactory dao = DAOFactory.getDAOFactory();
    messageDAO = dao.getMessageDAO();
  }
View Full Code Here

Examples of com.germinus.mashupbuilder.dao.factory.DAOFactory

                response.setContentType("text/javascript");
            } else {
                response.setContentType("application/x-json");
            }

            DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.FactoryType.JDBC);
            PageDAO pageDAO = (PageDAO) daoFactory.getDAO(Page.class);
            List<Page> pages = pageDAO.getAll();

            if (scriptTag) {
                out.write(cb + "(");
            }
View Full Code Here

Examples of dao.DAOFactory

    final static Logger log = Logger.getLogger(ShowFlightInformation.class);
    public String getName() {
        return "ShowFlightsFrom";
    }
    public ActionResult perform(HttpServletRequest request) {
        DAOFactory factory = DAOFactory.getDAOFactory(1);
        String FlightsFrom = null;
        FlightsFrom = request.getParameter("flightFromTo");
        List<Flight> flights = factory.getFlightDAO().searchForFlightsFromAirport(FlightsFrom);
        for (Flight flight: flights) {
            flight.setDepartureAirport(factory.getAirportDAO().loadCountryName(flight.getDepartureAirport()));
            flight.setDestinationAirport(factory.getAirportDAO().loadCountryName(flight.getDestinationAirport()));
        }
        ActionResult actionResult = new ActionResult();
        actionResult.setUrlAddress("flt/ShowFlightsInformation.jsp");
        if (flights!=null) {
            actionResult.setUrlAddress("/flt/ShowFlightsInformation.jsp");
View Full Code Here

Examples of dao.DAOFactory

    final static Logger log = Logger.getLogger(ShowFlightInformation.class);
    public String getName() {
        return "ShowFlightsFrom";
    }
    public ActionResult perform(HttpServletRequest request) {
        DAOFactory factory = DAOFactory.getDAOFactory(1);
        String FlightsTo = null;
        FlightsTo = request.getParameter("flightFromTo");
        List<Flight> flights = factory.getFlightDAO().searchForFlightsToAirport(FlightsTo);
        for (Flight flight: flights) {
            flight.setDepartureAirport(factory.getAirportDAO().loadCountryName(flight.getDepartureAirport()));
            flight.setDestinationAirport(factory.getAirportDAO().loadCountryName(flight.getDestinationAirport()));
        }
        ActionResult actionResult = new ActionResult();
        actionResult.setUrlAddress("flt/ShowFlightsInformation.jsp");
        if (flights!=null) {
            actionResult.setUrlAddress("/flt/ShowFlightsInformation.jsp");
View Full Code Here

Examples of dao.DAOFactory

        return "Index";
    }

    @Override
    public ActionResult perform(HttpServletRequest request) {
        DAOFactory factory = DAOFactory.getDAOFactory(1);
        //List<Airport> airportList = factory.getAirportDAO().allAirportList();
        //List<Country> countryList = factory.getCountryDAO().allCountryList();
        ActionResult actionResult = new ActionResult();
        actionResult.setUrlAddress("index.jsp");
//        if (airportList!=null && countryList!=null) {
View Full Code Here

Examples of de.paulwein.notes.dao.DAOFactory

   
    String keyString = req.getParameter("key");
    Key listKey = KeyFactory.stringToKey(keyString);
   
    try {
      DAOFactory df = DAOFactory.getInstance();
      NotesDAO nDao = df.getDAO(Note.class, NotesDAO.class);
      NoteList notesList = nDao.loadNotesList(listKey);
      req.setAttribute("key", keyString);
      req.setAttribute("list", notesList.getNotes());
      RequestDispatcher requestDispatcher = req.getRequestDispatcher(NOTELIST_SERVLET + ".jsp");
      requestDispatcher.forward(req, resp);
View Full Code Here

Examples of de.paulwein.notes.dao.DAOFactory

  // load note lists and show them in jsp page
  @Override
  public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    super.doGet(req, resp);
    try {
      DAOFactory df = DAOFactory.getInstance();
      NotesDAO nDao = df.getDAO(Note.class, NotesDAO.class);
      List<NoteList> notesLists = nDao.fetchNotesLists(user.getUserId());
      req.setAttribute("list", notesLists);
      RequestDispatcher requestDispatcher = req.getRequestDispatcher(NOTELISTS_SERVLET + ".jsp");
      requestDispatcher.forward(req, resp);
    } catch (DAOException e) {
View Full Code Here

Examples of de.paulwein.notes.dao.DAOFactory

    super.doPost(req,resp);

    String action = req.getParameter("action");
   
    try {
      DAOFactory df = DAOFactory.getInstance();
      NotesDAO nDao = df.getDAO(Note.class, NotesDAO.class);
      if(action.equals("create")){
        String name = req.getParameter("name");
        if(name != null && !name.equals(""))
          nDao.createNotesList(user.getUserId(), name);
      }
View Full Code Here

Examples of de.paulwein.notes.dao.DAOFactory

      errorOccured(resp);
      return;
    }
   
    try {
      DAOFactory df = DAOFactory.getInstance();
      NotesDAO notesDAO = df.getDAO(Note.class, NotesDAO.class);
      List<Note> notes = notesDAO.search(search, user.getUserId());
      req.setAttribute("list", notes);
      RequestDispatcher requestDispatcher = req.getRequestDispatcher(SEARCH_SERVLET + ".jsp");
      requestDispatcher.forward(req, resp);
    } catch (DAOException 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.