KickJava   Java API By Example, From Geeks To Geeks.

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


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 package org.apache.ws.jaxme.sqls;
17
18 import org.apache.ws.jaxme.sqls.Expression.Type;
19
20
21 /** A factory object for creating all the objects used by
22  * the SQL factory.
23  */

24 public interface ObjectFactory {
25     /** Returns an instance of
26      * {@link org.apache.ws.jaxme.sqls.RawSQLCode}.
27      */

28     public RawSQLCode newRawSQL(String JavaDoc pRawSQLCode);
29     
30     /** <p>Returns an instance of
31      * {@link org.apache.ws.jaxme.sqls.JoinReference}.</p>
32      */

33     public JoinReference newJoinReference(SelectTableReference pSelectTableReference,
34             Table pTable,
35             boolean pIsLeftOuterJoin);
36     
37     /** Returns an instance of {@link org.apache.ws.jaxme.sqls.Function}.
38      */

39     public Function newFunction(Statement pStatement, String JavaDoc pName);
40     
41     /** Returns an instance of
42      * {@link org.apache.ws.jaxme.sqls.Table}, which allows to embed
43      * the given instance of
44      * {@link org.apache.ws.jaxme.sqls.SelectStatement} into another
45      * SELECT statement.
46      */

47     public Table newView(SelectStatement pSelectStatement, Table.Name pName);
48
49     /** Creates a new instance of
50      * {@link org.apache.ws.jaxme.sqls.Constraint} constraining
51      * the given {@link org.apache.ws.jaxme.sqls.ConstrainedStatement}.
52      */

53     public CombinedConstraint newCombinedConstraint(ConstrainedStatement pStatement,
54                                                     CombinedConstraint.Type pType);
55
56     /** Creates a new instance of {@link org.apache.ws.jaxme.sqls.Case}.
57      */

58     public Case newCase(Column.Type pType);
59
60     /** Creates a new instance of {@link ColumnReference}.
61      */

62     public ColumnReference newColumnReference(TableReference pTableReference, Column pColumn);
63
64     /** Creates a new instance of {@link Expression}.
65      */

66     public Expression createExpression(Statement pStatement, Type sum);
67 }
68
Popular Tags