KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > sqls > Statement


1 /*
2  * Copyright 2003, 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15
16  */

17 package org.apache.ws.jaxme.sqls;
18
19 /**
20  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
21  */

22 public interface Statement {
23    /** <p>Returns the {@link org.apache.ws.jaxme.sqls.SQLFactory}
24     * that created this Statement.</p>
25     */

26    public SQLFactory getSQLFactory();
27
28    /** <p>Sets the table, for which the statement applies and returns
29     * a reference to the table.</p>
30     */

31    public TableReference setTable(Table pTable);
32
33    /** <p>Returns the table reference, for which the statement applies.</p>
34     */

35    public TableReference getTableReference();
36
37    /** <p>Creates a new function, which may be added to a
38     * {@link org.apache.ws.jaxme.sqls.BooleanConstraint}.</p>
39     */

40    public Function createFunction(String JavaDoc pName);
41
42    /** Creates a new instance of {@link Case}.
43     */

44    public Case newCase(Column.Type pType);
45 }
46
Popular Tags