org.apache.ws.jaxme.sqls.db2
Class TableSpaceImpl.DatabaseManagedContainerImpl

java.lang.Object
  extended by org.apache.ws.jaxme.sqls.db2.TableSpaceImpl.DatabaseManagedContainerImpl
All Implemented Interfaces:
TableSpace.Container, TableSpace.DatabaseManagedContainer
Enclosing class:
TableSpaceImpl

public static class TableSpaceImpl.DatabaseManagedContainerImpl
extends java.lang.Object
implements TableSpace.DatabaseManagedContainer


Constructor Summary
TableSpaceImpl.DatabaseManagedContainerImpl()
           
 
Method Summary
 java.lang.String getDevice()
          Returns the containers device name or null, if the container is located in an operating system file.
 java.lang.String getFile()
          Returns the containers file name or null, if the container is located in a raw device.
 long getNumOfPages()
          Returns the containers size in pages.
 boolean isDatabaseManaged()
          Returns whether the container is database managed If this is the case, the container may be casted to a TableSpace.DatabaseManagedContainer.
 boolean isSystemManaged()
          Returns whether the container is system managed (aka an operating system file).
 void setDevice(java.lang.String pDevice)
           
 void setFile(java.lang.String pFile)
           
 void setNumOfPages(long pNumOfPages)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableSpaceImpl.DatabaseManagedContainerImpl

public TableSpaceImpl.DatabaseManagedContainerImpl()
Method Detail

isSystemManaged

public boolean isSystemManaged()
Description copied from interface: TableSpace.Container

Returns whether the container is system managed (aka an operating system file). If this is the case, the container may be casted to a TableSpace.SystemManagedContainer.

Specified by:
isSystemManaged in interface TableSpace.Container

isDatabaseManaged

public boolean isDatabaseManaged()
Description copied from interface: TableSpace.Container

Returns whether the container is database managed If this is the case, the container may be casted to a TableSpace.DatabaseManagedContainer.

Specified by:
isDatabaseManaged in interface TableSpace.Container

setFile

public void setFile(java.lang.String pFile)

getFile

public java.lang.String getFile()
Description copied from interface: TableSpace.DatabaseManagedContainer

Returns the containers file name or null, if the container is located in a raw device. In the latter case it is guaranteed, that TableSpace.DatabaseManagedContainer.getDevice() returns a non-null value.

Specified by:
getFile in interface TableSpace.DatabaseManagedContainer

setDevice

public void setDevice(java.lang.String pDevice)

getDevice

public java.lang.String getDevice()
Description copied from interface: TableSpace.DatabaseManagedContainer

Returns the containers device name or null, if the container is located in an operating system file. In the latter case it is guaranteed, that TableSpace.DatabaseManagedContainer.getDevice() returns a non-null value.

Specified by:
getDevice in interface TableSpace.DatabaseManagedContainer

getNumOfPages

public long getNumOfPages()
Description copied from interface: TableSpace.DatabaseManagedContainer

Returns the containers size in pages.

Specified by:
getNumOfPages in interface TableSpace.DatabaseManagedContainer

setNumOfPages

public void setNumOfPages(long pNumOfPages)