Package com.frommap.cassandra.dao

Examples of com.frommap.cassandra.dao.PlacesDao


                  }
                }
              }
            }
            if (p.getTypes() != null && token == JsonToken.END_OBJECT) {
              PlacesDao d = new PlacesDao(_url);
              p.setCategory(type);
              d.completeRecord(p);
              if(p.getId() == null)
                d.insertPlaces(p);
              Place b = new Place();
              b.setAddr(p.getAddr());
              b.setCategory(p.getCategory());
              b.setId(p.getId());
              b.setIcon(p.getIcon());
              b.setLat(p.getLat());
              b.setLng(p.getLng());
              b.setName(p.getName());
              b.setTypes(p.getTypes());
              listOfPlaces.add(b);
              p = new Place();
              d.close();
            }
          }
        }
        if ("status".equals(fieldname)) {
          parser.nextToken();
View Full Code Here


            } else if (resultToken.equals("vicinity")) {
              token = parser.nextToken();
              p.setAddr(parser.getText());
            }
            if (p.getTypes() != null && token == JsonToken.END_OBJECT) {
              PlacesDao d = new PlacesDao(_url);
              p.setCategory(category);
              d.completeRecord(p);
              if(p.getId() == null)
                d.insertPlaces(p);
              Place b = new Place();
              b.setAddr(p.getAddr());
              b.setCategory(p.getCategory());
              b.setId(p.getId());
              b.setIcon(p.getIcon());
              b.setLat(p.getLat());
              b.setLng(p.getLng());
              b.setName(p.getName());
              b.setTypes(p.getTypes());
              listOfPlaces.add(b);
              p = new Place();
              d.close();
            }
          }
        }
        if ("status".equals(fieldname)) {
          parser.nextToken();
View Full Code Here

                    ean.setShortDescription(getValue(parser));
                    break;
                  }
                }
              }
              PlacesDao d = new PlacesDao(_url);
              d.completeRecord(p);
              UUID id = (p.getId() == null)? UUIDs.timeBased() : p.getId();
              d.insertPlaces(p, id);
              d.close();
              EanHotelDetailDao ed = new EanHotelDetailDao(_url);
              ean.setPlaceId(id);
              ed.insertRecord(ean);
              ed.close();
              hotel.setHotel(p);
View Full Code Here

TOP

Related Classes of com.frommap.cassandra.dao.PlacesDao

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.