KickJava   Java API By Example, From Geeks To Geeks.

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


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 /** <p>This interface allows to specify join constraints.</p>
20  *
21  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
22  */

23 public interface JoinReference extends SelectTableReference {
24    /** <p>Returns whether this is a left join, as created by
25     * {@link SelectTableReference#join(Table)}.</p>
26     */

27    public boolean isJoin();
28
29    /** <p>Returns whether this is a left outer join, as created by
30     * {@link SelectTableReference#leftOuterJoin(Table)}.</p>
31     */

32    public boolean isLeftOuterJoin();
33
34    /** <p>If this is a left join or a left outer join: Returns
35     * the joins left table.</p>
36     */

37    public SelectTableReference getLeftJoinedTableReference();
38
39    /** <p>Returns the references ON condition, if any. The method
40     * result is a combined constraint with {@link CombinedConstraint#getType()}
41     * == {@link org.apache.ws.jaxme.sqls.CombinedConstraint.Type#AND}.</p>
42     */

43    public CombinedConstraint getOn();
44 }
45
Popular Tags