114115116117118119120121122123124
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());
225226227228229230231232233234235
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());
188189190191192193194195196197198
} } 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();