java.lang.Object
org.firebirdsql.management.PageSizeConstants
Constants 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
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic int
requireValidPageSize
(int pageSize) Checks ifpageSize
is a valid page size value.
-
Field Details
-
SIZE_1K
public static final int SIZE_1K- See Also:
-
SIZE_2K
public static final int SIZE_2K- See Also:
-
SIZE_4K
public static final int SIZE_4K- See Also:
-
SIZE_8K
public static final int SIZE_8K- See Also:
-
SIZE_16K
public static final int SIZE_16K- See Also:
-
SIZE_32K
public static final int SIZE_32KFirebird 4 or higher- See Also:
-
-
Method Details
-
requireValidPageSize
public static int requireValidPageSize(int pageSize) Checks ifpageSize
is 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:
IllegalArgumentException
- if the page size is not a valid value- Since:
- 3.0.5
-