Class PageSizeConstants


  • public final class PageSizeConstants
    extends java.lang.Object
    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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int requireValidPageSize​(int pageSize)
      Checks if pageSize is a valid page size value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • requireValidPageSize

        public static int requireValidPageSize​(int pageSize)
        Checks if pageSize 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:
        java.lang.IllegalArgumentException - if the page size is not a valid value
        Since:
        3.0.5