KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > sqls > db2 > BufferPool


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.db2;
18
19 import org.apache.ws.jaxme.sqls.SQLFactory;
20
21
22 /** <p>Interface of a DB2 BufferPool. This object is used to create a
23  * <code>CREATE BUFFERPOOL ...</code> statement.</p>
24  *
25  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
26  */

27 public interface BufferPool {
28    public interface Name extends SQLFactory.Ident {
29    }
30
31    /** <p>Returns the BufferPool's name. BufferPool names are unique within the
32     * database.</p>
33     */

34    public Name getName();
35
36    /** <p>Returns the BufferPool's page size. See the secion "CREATE BUFFERPOOL"
37     * in the DB2 reference manual for limitations on the value. Examples: 8192
38     * (bytes) or 8K (Kilobytes).</p>
39     * <p>Default is null, in which case the DB2 default (4K, as of this writing)
40     * applies.</p>
41     */

42    public PageSize getPageSize();
43
44    /** <p>Returns the buffer pools size in number of pages.</p>
45     */

46    public int getNumberOfPages();
47
48    /** <p>Sets whether extended storage may be used. Defaults to null, in which
49     * case the DB2 defaults are choosen.</p>
50     */

51    public void setExtendedStorage(Boolean JavaDoc pExtendedStorage);
52
53    /** <p>Returns whether extended storage may be used. Defaults to false.</p>
54     */

55    public Boolean JavaDoc getExtendedStorage();
56 }
57
Popular Tags