1 /*$Id: SqlCommands.java,v 1.2 2004/02/27 00:46:03 nw Exp $
2 * Created on 12-Feb-2004
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.jes.impl.workflow;
12 /*** Interface for a component that provides sql statements to use in a job store
13 * @author Noel Winstanley nw@jb.man.ac.uk 12-Feb-2004
14 * @see org.astrogrid.jes.impl.workflow.DBJobFactoryImpl
15 *
16 */
17 public interface SqlCommands {
18 /***
19 * @return prepared statement string to delete a job
20 */
21 public abstract String getDeleteSQL();
22 /***
23 * @return prepared statement string to insert a job
24 */
25 public abstract String getInsertSQL();
26 /***
27 * @return prepared statement string to list jobs
28 */
29 public abstract String getListSQL();
30 /***
31 * @return prepared statement string to retreive a job
32 */
33 public abstract String getRetrieveSQL();
34 /***
35 * @return prepared statement string to update a job.
36 */
37 public abstract String getUpdateSQL();
38
39 }
40 /*
41 $Log: SqlCommands.java,v $
42 Revision 1.2 2004/02/27 00:46:03 nw
43 merged branch nww-itn05-bz#91
44
45 Revision 1.1.2.3 2004/02/19 13:40:09 nw
46 updated to fit new interfaces
47
48 Revision 1.1.2.2 2004/02/17 12:25:38 nw
49 improved javadocs for classes
50
51 Revision 1.1.2.1 2004/02/12 12:54:47 nw
52 worked in inversion of control pattern - basically means that
53 components have to be assembled, rather than self-configuring
54 from properties in config files. so easier to test each component in isolation
55
56 */