@Override
    public List<DirectionStayHotel> load(Criteria criteria, GenericLoadQuery loadGeneric, Connection conn) throws DaoQueryException {
        int pageSize = 50;

        List paramList = new ArrayList<>();
        StringBuilder sb = new StringBuilder(WHERE);
        String queryStr = new QueryMapper() {
            @Override
            public String mapQuery() {
                Appender.append(DAO_ID_DIRSTAY, DB_DIRSTAY_ID_STAY, criteria, paramList, sb, AND);
                Appender.append(DAO_DIRSTAY_NO, DB_DIRSTAY_STAY_NO, criteria, paramList, sb, AND);
                Appender.append(DAO_DIRSTAY_STATUS, DB_DIRSTAY_STATUS, criteria, paramList, sb, AND);
                Appender.append(DAO_ID_DIRECTION, DB_DIRSTAY_ID_DIRECTION, criteria, paramList, sb, AND);
                Appender.append(DAO_ID_HOTEL, DB_DIRSTAY_ID_HOTEL, criteria, paramList, sb, AND);
                if (paramList.isEmpty()) {
                    return LOAD_QUERY;
                } else {
                    return sb.insert(0, LOAD_QUERY).toString();
                }
            }
        }.mapQuery();

        try {
            return loadGeneric.sendQuery(queryStr, paramList.toArray(), pageSize, conn, (ResultSet rs, int rowNum) -> {
                DirectionStayHotel bean = new DirectionStayHotel();
                bean.setIdStay(rs.getInt(DB_DIRSTAY_ID_STAY));
                bean.setStayNo(rs.getInt(DB_DIRSTAY_STAY_NO));
                bean.setStatus(rs.getShort(DB_DIRSTAY_STATUS));
                bean.setDirection(new Direction(rs.getInt(DB_DIRSTAY_ID_DIRECTION)));
                bean.setHotel(new Hotel(rs.getInt(DB_DIRSTAY_ID_HOTEL)));
                return bean;
            });
        } catch (DaoException ex) {
             throw new DaoQueryException(ERR_DIR_STAY_LOAD, ex);
        }
    }