KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > sqls > oracle > OraSelectStatement


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.oracle;
18
19 import org.apache.ws.jaxme.sqls.CombinedConstraint;
20 import org.apache.ws.jaxme.sqls.SelectStatement;
21
22
23 /** Oracle specific interface of {@link org.apache.ws.jaxme.sqls.SelectStatement}.
24  */

25 public interface OraSelectStatement extends SelectStatement {
26     /** An extension of {@link SelectStatement} with the
27      * ability to specify, whether NULL comes first or last.
28      */

29     public interface OraOrderColumn extends OrderColumn {
30         /** Returns, whether nulls should appear first or last.
31          */

32         public boolean isNullsFirst();
33     }
34     /** Implements the <code>START WITH</code> part of a
35      * <code>START WITH ... CONNECT BY PRIOR ...</code> clause.
36      * @see #getConnectBy()
37      */

38     public CombinedConstraint getStartWith();
39
40     /** Implements the <code>CONNECT BY PRIOR</code> part of a
41      * <code>START WITH ... CONNECT BY PRIOR ...</code> clause.
42      * @see #getStartWith()
43      */

44     public CombinedConstraint getConnectBy();
45
46     /** Adds the given order column with the given values for
47      * {@link org.apache.ws.jaxme.sqls.SelectStatement.OrderColumn#isDescending()}
48      * and
49      * {@link OraSelectStatement.OraOrderColumn#isNullsFirst()}.
50      */

51     public void addOrderColumn(Object JavaDoc pObject, boolean pDescending, boolean pNullsFirst);
52 }
53
Popular Tags