org.apache.ws.jaxme.sqls.db2

Class TableSpaceImpl

Implemented Interfaces:
TableSpace

public class TableSpaceImpl
extends java.lang.Object
implements TableSpace

Default implementation of a DB2 tablespace.
Author:
Jochen Wiedmann

Nested Class Summary

static class
TableSpaceImpl.DatabaseManagedContainerImpl
static class
TableSpaceImpl.NameImpl
static class
TableSpaceImpl.SystemManagedContainerImpl

Constructor Summary

TableSpaceImpl(DB2SQLFactory pFactory, TableSpace.Name pName, TableSpace.Type pType)

Method Summary

BufferPool
getBufferPool()
Iterator
getContainers()
Long
getExtentSize()
TableSpace.Name
getName()
Number
getOverhead()
PageSize
getPageSize()
Long
getPrefetchSize()
DB2SQLFactory
getSQLFactory()
Number
getTransferRate()
TableSpace.Type
getType()
Boolean
hasDroppedTableRecovery()
boolean
isPredefined()
Container
newDatabaseManagedContainerInDevice(String pDevice, long pNumPages)
Container
newDatabaseManagedContainerInFile(String pFile, long pNumPages)
Container
newSystemManagedContainer(String pFile)
void
setBufferPool(BufferPool pBufferPool)
void
setDroppedTableRecovery(Boolean pRecoverable)
void
setExtentSize(Long pSize)
void
setOverhead(Number pOverhead)
void
setPageSize(PageSize pSize)
void
setPrefetchSize(Long pSize)
void
setTransferRate(Number pTransferRate)

Constructor Details

TableSpaceImpl

protected TableSpaceImpl(DB2SQLFactory pFactory,
                         TableSpace.Name pName,
                         TableSpace.Type pType)

Method Details

getBufferPool

public BufferPool getBufferPool()
Specified by:
getBufferPool in interface TableSpace

getContainers

public Iterator getContainers()
Specified by:
getContainers in interface TableSpace

getExtentSize

public Long getExtentSize()
Specified by:
getExtentSize in interface TableSpace

getName

public TableSpace.Name getName()
Specified by:
getName in interface TableSpace

getOverhead

public Number getOverhead()
Specified by:
getOverhead in interface TableSpace

getPageSize

public PageSize getPageSize()
Specified by:
getPageSize in interface TableSpace

getPrefetchSize

public Long getPrefetchSize()
Specified by:
getPrefetchSize in interface TableSpace

getSQLFactory

public DB2SQLFactory getSQLFactory()
Specified by:
getSQLFactory in interface TableSpace

getTransferRate

public Number getTransferRate()
Specified by:
getTransferRate in interface TableSpace

getType

public TableSpace.Type getType()
Specified by:
getType in interface TableSpace

hasDroppedTableRecovery

public Boolean hasDroppedTableRecovery()
Specified by:
hasDroppedTableRecovery in interface TableSpace

isPredefined

public boolean isPredefined()
Specified by:
isPredefined in interface TableSpace

newDatabaseManagedContainerInDevice

public Container newDatabaseManagedContainerInDevice(String pDevice,
                                                     long pNumPages)
Specified by:
newDatabaseManagedContainerInDevice in interface TableSpace

newDatabaseManagedContainerInFile

public Container newDatabaseManagedContainerInFile(String pFile,
                                                   long pNumPages)
Specified by:
newDatabaseManagedContainerInFile in interface TableSpace

newSystemManagedContainer

public Container newSystemManagedContainer(String pFile)
Specified by:
newSystemManagedContainer in interface TableSpace

setBufferPool

public void setBufferPool(BufferPool pBufferPool)
Specified by:
setBufferPool in interface TableSpace

setDroppedTableRecovery

public void setDroppedTableRecovery(Boolean pRecoverable)
Specified by:
setDroppedTableRecovery in interface TableSpace

setExtentSize

public void setExtentSize(Long pSize)
Specified by:
setExtentSize in interface TableSpace

setOverhead

public void setOverhead(Number pOverhead)
Specified by:
setOverhead in interface TableSpace

setPageSize

public void setPageSize(PageSize pSize)
Specified by:
setPageSize in interface TableSpace

setPrefetchSize

public void setPrefetchSize(Long pSize)
Specified by:
setPrefetchSize in interface TableSpace

setTransferRate

public void setTransferRate(Number pTransferRate)
Specified by:
setTransferRate in interface TableSpace