View Javadoc

1   /*$Id: SqlMaker.java,v 1.2 2006/06/15 16:50:09 clq2 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  import org.astrogrid.query.QueryException;
16  
17  /***
18   * Translates queries into SQL
19   */
20  public interface SqlMaker  {
21     
22     /***
23      * Make an SQL string from the given Query */
24     public String makeSql(Query query) throws IOException, QueryException;
25  
26     /***
27      * Make a COUNT SQL string from the given Query */
28     public String makeCountSql(Query query) throws IOException, QueryException;
29  }
30  
31  
32  /*
33  $Log: SqlMaker.java,v $
34  Revision 1.2  2006/06/15 16:50:09  clq2
35  PAL_KEA_1612
36  
37  Revision 1.1.92.2  2006/04/21 11:54:05  kea
38  Changed QueryException from a RuntimeException to an Exception.
39  
40  Revision 1.1.92.1  2006/04/19 13:57:32  kea
41  Interim checkin.  All source is now compiling, using the new Query model
42  where possible (some legacy classes are still using OldQuery).  Unit
43  tests are broken.  Next step is to move the legacy classes sideways out
44  of the active tree.
45  
46  Revision 1.1  2005/03/10 16:42:55  mch
47  Split fits, sql and xdb
48  
49  Revision 1.1.1.1  2005/02/17 18:37:35  mch
50  Initial checkin
51  
52  Revision 1.1.1.1  2005/02/16 17:11:24  mch
53  Initial checkin
54  
55  Revision 1.6.12.1  2004/12/08 18:36:40  mch
56  Added Vizier, rationalised SqlWriters etc, separated out TableResults from QueryResults
57  
58  Revision 1.6  2004/11/03 01:35:18  mch
59  PAL_MCH_Candidate2 merge Part II
60  
61  Revision 1.2.2.2  2004/10/27 00:43:39  mch
62  Started adding getCount, some resource fixes, some jsps
63  
64  Revision 1.2.2.1  2004/10/22 09:05:15  mch
65  Moved SqlMakers back to server
66  
67  Revision 1.1  2004/10/06 21:12:16  mch
68  Big Lump of changes to pass Query OM around instead of Query subclasses, and TargetIndicator mixed into Slinger
69  
70  Revision 1.1  2004/09/28 15:02:13  mch
71  Merged PAL and server packages
72  
73  Revision 1.4  2004/08/06 12:04:19  mch
74  Added unit description to conesearch columns to cope with ESO milliarcseconds (& others in future)
75  
76  Revision 1.2.10.1  2004/08/05 17:57:08  mch
77  Merging Itn06 fixes into Itn05
78  
79  Revision 1.3  2004/07/12 23:26:51  mch
80  Fixed (somewhat) SQL for cone searches, added tests to Dummy DB
81  
82  Revision 1.2  2004/03/12 20:04:57  mch
83  It05 Refactor (Client)
84  
85  Revision 1.1  2004/03/12 04:45:26  mch
86  It05 MCH Refactor
87  
88   
89  */