Package org.firebirdsql.management
Class PageSizeConstants
- java.lang.Object
- 
- org.firebirdsql.management.PageSizeConstants
 
- 
 public final class PageSizeConstants extends java.lang.ObjectConstants for page size supported by Firebird.Note that some page size might not be supported by all Firebird version. - Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intrequireValidPageSize(int pageSize)Checks ifpageSizeis a valid page size value.
 
- 
- 
- 
Field Detail- 
SIZE_1Kpublic static final int SIZE_1K - See Also:
- Constant Field Values
 
 - 
SIZE_2Kpublic static final int SIZE_2K - See Also:
- Constant Field Values
 
 - 
SIZE_4Kpublic static final int SIZE_4K - See Also:
- Constant Field Values
 
 - 
SIZE_8Kpublic static final int SIZE_8K - See Also:
- Constant Field Values
 
 - 
SIZE_16Kpublic static final int SIZE_16K - See Also:
- Constant Field Values
 
 - 
SIZE_32Kpublic static final int SIZE_32K Firebird 4 or higher- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
requireValidPageSizepublic static int requireValidPageSize(int pageSize) Checks ifpageSizeis a valid page size value.Actual support of a page size depends on the Firebird version, even if a page size is valid according to this method, it can still be invalid for the actual Firebird version used. - Parameters:
- pageSize- Page size to check
- Returns:
- pageSize(unmodified)
- Throws:
- java.lang.IllegalArgumentException- if the page size is not a valid value
- Since:
- 3.0.5
 
 
- 
 
-