1 /*$Id: SqlMaker.java,v 1.1 2005/03/10 16:42:55 mch Exp $
2 * Created on 27-Nov-2003
3 *
4 * Copyright (C) AstroGrid. All rights reserved.
5 *
6 * This software is published under the terms of the AstroGrid
7 * Software License version 1.2, a copy of which has been included
8 * with this distribution in the LICENSE.txt file.
9 *
10 **/
11 package org.astrogrid.tableserver.jdbc;
12
13 import java.io.IOException;
14 import org.astrogrid.query.Query;
15
16 /***
17 * Translates queries into SQL
18 */
19 public interface SqlMaker {
20
21
22 /*** A temporary key specifying whether the db columns asre in degrees or radians */
23 // public static final String DB_COLS_IN_RADIANS = "conesearch.columns.in.radians";
24
25 /***
26 * Make an SQL string from the given Query */
27 public String makeSql(Query query) throws IOException;
28
29 /***
30 * Make a COUNT SQL string from the given Query */
31 public String makeCountSql(Query query) throws IOException;
32
33 }
34
35
36 /*
37 $Log: SqlMaker.java,v $
38 Revision 1.1 2005/03/10 16:42:55 mch
39 Split fits, sql and xdb
40
41 Revision 1.1.1.1 2005/02/17 18:37:35 mch
42 Initial checkin
43
44 Revision 1.1.1.1 2005/02/16 17:11:24 mch
45 Initial checkin
46
47 Revision 1.6.12.1 2004/12/08 18:36:40 mch
48 Added Vizier, rationalised SqlWriters etc, separated out TableResults from QueryResults
49
50 Revision 1.6 2004/11/03 01:35:18 mch
51 PAL_MCH_Candidate2 merge Part II
52
53 Revision 1.2.2.2 2004/10/27 00:43:39 mch
54 Started adding getCount, some resource fixes, some jsps
55
56 Revision 1.2.2.1 2004/10/22 09:05:15 mch
57 Moved SqlMakers back to server
58
59 Revision 1.1 2004/10/06 21:12:16 mch
60 Big Lump of changes to pass Query OM around instead of Query subclasses, and TargetIndicator mixed into Slinger
61
62 Revision 1.1 2004/09/28 15:02:13 mch
63 Merged PAL and server packages
64
65 Revision 1.4 2004/08/06 12:04:19 mch
66 Added unit description to conesearch columns to cope with ESO milliarcseconds (& others in future)
67
68 Revision 1.2.10.1 2004/08/05 17:57:08 mch
69 Merging Itn06 fixes into Itn05
70
71 Revision 1.3 2004/07/12 23:26:51 mch
72 Fixed (somewhat) SQL for cone searches, added tests to Dummy DB
73
74 Revision 1.2 2004/03/12 20:04:57 mch
75 It05 Refactor (Client)
76
77 Revision 1.1 2004/03/12 04:45:26 mch
78 It05 MCH Refactor
79
80
81 */