Commit 1240d52f9970d6384271cad16169213d0afb21f1
1 parent
9144ee77
Exists in
master
Add the query enumeration.
Showing
1 changed file
with
42 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,42 @@ | @@ -0,0 +1,42 @@ | ||
1 | +/* | ||
2 | + * This file is a part of EpnTAPClient. | ||
3 | + * This program aims to provide EPN-TAP support for software clients, like CASSIS spectrum analyzer. | ||
4 | + * See draft specifications: https://voparis-confluence.obspm.fr/pages/viewpage.action?pageId=559861 | ||
5 | + * Copyright (C) 2016 Institut de Recherche en Astrophysique et Planétologie. | ||
6 | + * | ||
7 | + * This program is free software: you can | ||
8 | + * redistribute it and/or modify it under the terms of the GNU General Public License as published | ||
9 | + * by the Free Software Foundation, either version 3 of the License, or (at your option) any later | ||
10 | + * version. This program is distributed in the hope that it will be useful, but WITHOUT ANY | ||
11 | + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | ||
12 | + * PURPOSE. See the GNU General Public License for more details. You should have received a copy of | ||
13 | + * the GNU General Public License along with this program. If not, see | ||
14 | + * <http://www.gnu.org/licenses/>. | ||
15 | + */ | ||
16 | + | ||
17 | +package eu.omp.irap.vespa.epntapclient; | ||
18 | + | ||
19 | +/** | ||
20 | + * @author N. Jourdane | ||
21 | + */ | ||
22 | +public enum Query { | ||
23 | + // @noformat | ||
24 | + GET_SCENE_FROM_TARGET_AND_TIME_INTERVAL( | ||
25 | + "SELECT * FROM %s WHERE target LIKE %%%s%% AND time_interval LIKE %%%s%%"), | ||
26 | + GET_SCENE_FROM_TARGET_AND_TIME_INTERVAL_AND_SURFACE_AREA( | ||
27 | + "SELECT * FROM %s WHERE target LIKE %%%s%% AND time_interval LIKE %%%s%% AND s_region LIKE %%%s%%"); | ||
28 | + // TBC | ||
29 | + // @format | ||
30 | + | ||
31 | + private String query; | ||
32 | + | ||
33 | + | ||
34 | + Query(String query) { | ||
35 | + this.query = query; | ||
36 | + } | ||
37 | + | ||
38 | + @Override | ||
39 | + public String toString() { | ||
40 | + return query; | ||
41 | + } | ||
42 | +} |