public class Dao extends Object
| Constructor and Description |
|---|
Dao(IConnection
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMetadata(String
|
long |
addPlace(int type, String
|
int |
addType(String
|
static void |
createSchema(IConnection
|
List |
getPlaces(String
|
void |
insertSearchNames(long id, List
|
void |
populateSearchTable()
|
public Dao(IConnectionconnection) throws QueryException
QueryException
public static void createSchema(IConnectionconnection, List <String > languages) throws QueryException
QueryException
public int addType(Stringname) throws QueryException
QueryException
public void addMetadata(Stringkey, String value) throws QueryException
QueryException
public long addPlace(int type,
String name,
Map<String,String> altNames,
double lon,
double lat)
throws QueryException
QueryException
public void populateSearchTable()
throws QueryException
QueryException
public void insertSearchNames(long id,
List<String> names)
throws QueryException
QueryException
public List<Place > getPlaces(String query, SortOrder order, int max, int offset) throws QueryException
QueryException