org.apache.ws.jaxme.sqls.db2

Interface BufferPool

public interface BufferPool

Interface of a DB2 BufferPool. This object is used to create a CREATE BUFFERPOOL ... statement.
Author:
Jochen Wiedmann

Nested Class Summary

static interface
BufferPool.Name

Method Summary

Boolean
getExtendedStorage()
Returns whether extended storage may be used.
BufferPool.Name
getName()
Returns the BufferPool's name.
int
getNumberOfPages()
Returns the buffer pools size in number of pages.
PageSize
getPageSize()
Returns the BufferPool's page size.
void
setExtendedStorage(Boolean pExtendedStorage)
Sets whether extended storage may be used.

Method Details

getExtendedStorage

public Boolean getExtendedStorage()
Returns whether extended storage may be used. Defaults to false.

getName

public BufferPool.Name getName()
Returns the BufferPool's name. BufferPool names are unique within the database.

getNumberOfPages

public int getNumberOfPages()
Returns the buffer pools size in number of pages.

getPageSize

public PageSize getPageSize()
Returns the BufferPool's page size. See the secion "CREATE BUFFERPOOL" in the DB2 reference manual for limitations on the value. Examples: 8192 (bytes) or 8K (Kilobytes).

Default is null, in which case the DB2 default (4K, as of this writing) applies.


setExtendedStorage

public void setExtendedStorage(Boolean pExtendedStorage)
Sets whether extended storage may be used. Defaults to null, in which case the DB2 defaults are choosen.