org.apache.ws.jaxme.sqls.db2
Class PageSize

java.lang.Object
  extended by org.apache.ws.jaxme.sqls.db2.PageSize

public class PageSize
extends java.lang.Object

A DB2 page size is limited to certain values.


Field Summary
static PageSize PAGESIZE_16384
          The default page size (16384 bytes).
static PageSize PAGESIZE_32768
          The default page size (32768 bytes).
static PageSize PAGESIZE_4096
          The default page size (4096 bytes).
static PageSize PAGESIZE_8192
          The default page size (8192 bytes).
 
Method Summary
 boolean equals(java.lang.Object pOther)
           
static PageSize[] getInstances()
          Returns the possible pagesize specifications.
 long getSize()
          Returns the size of the pagesize specification.
 int hashCode()
           
 java.lang.String toString()
           
static PageSize valueOf(long pSize)
          Converts the given long value into a pagesize specification.
static PageSize valueOf(java.lang.String pSize)
          Converts the given string into a pagesize specification.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PAGESIZE_4096

public static final PageSize PAGESIZE_4096
The default page size (4096 bytes).


PAGESIZE_8192

public static final PageSize PAGESIZE_8192
The default page size (8192 bytes).


PAGESIZE_16384

public static final PageSize PAGESIZE_16384
The default page size (16384 bytes).


PAGESIZE_32768

public static final PageSize PAGESIZE_32768
The default page size (32768 bytes).

Method Detail

getSize

public long getSize()
Returns the size of the pagesize specification.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object pOther)
Overrides:
equals in class java.lang.Object

getInstances

public static PageSize[] getInstances()
Returns the possible pagesize specifications.


valueOf

public static PageSize valueOf(java.lang.String pSize)
Converts the given string into a pagesize specification.


valueOf

public static PageSize valueOf(long pSize)
Converts the given long value into a pagesize specification.


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object