01: package org.apache.ojb.odmg.oql;
02:
03: /* Copyright 2002-2005 The Apache Software Foundation
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: import org.odmg.OQLQuery;
19: import org.odmg.QueryInvalidException;
20:
21: /**
22: * Offers useful none odmg-standard methods of the odmg {@link org.odmg.OQLQuery} interface.
23: * <p>
24: * Note: All listed methods are <strong>not</strong> part of the standard ODMG-api -
25: * they are special (proprietary) OJB extensions.
26: * </p>
27: *
28: * @version $Id: EnhancedOQLQuery.java,v 1.5.2.2 2005/12/21 22:29:53 tomdz Exp $
29: */
30: public interface EnhancedOQLQuery extends OQLQuery {
31: /**
32: * An extension of the {@link org.odmg.OQLQuery#create(String)} method, which
33: * additionally allow to specify an <em>start-</em> and <em>end-Index</em> for
34: * the query.
35: *
36: * @param queryString An oql query string.
37: * @param startAtIndex The start index.
38: * @param endAtIndex The end index.
39: * @throws QueryInvalidException The type of the parameter does
40: * not correspond with the type of the parameter in the query.
41: */
42: void create(String queryString, int startAtIndex, int endAtIndex)
43: throws QueryInvalidException;
44:
45: /**
46: * Deprecated method.
47: * @deprecated
48: */
49: int fullSize();
50: }
|