Enum GeoPackageDataType

    • Enum Constant Detail

      • BOOLEAN

        public static final GeoPackageDataType BOOLEAN
        A boolean value representing true or false. Stored as SQLite INTEGER with value 0 for false or 1 for true
      • TINYINT

        public static final GeoPackageDataType TINYINT
        8-bit signed two’s complement integer. Stored as SQLite INTEGER with values in the range [-128, 127]
      • SMALLINT

        public static final GeoPackageDataType SMALLINT
        16-bit signed two’s complement integer. Stored as SQLite INTEGER with values in the range [-32768, 32767]
      • MEDIUMINT

        public static final GeoPackageDataType MEDIUMINT
        32-bit signed two’s complement integer. Stored as SQLite INTEGER with values in the range [-2147483648, 2147483647]
      • INT

        public static final GeoPackageDataType INT
        64-bit signed two’s complement integer. Stored as SQLite INTEGER with values in the range [-9223372036854775808, 9223372036854775807]
      • INTEGER

        public static final GeoPackageDataType INTEGER
        64-bit signed two’s complement integer. Stored as SQLite INTEGER with values in the range [-9223372036854775808, 9223372036854775807]
      • FLOAT

        public static final GeoPackageDataType FLOAT
        32-bit IEEE floating point number. Stored as SQLite REAL limited to values that can be represented as a 4-byte IEEE floating point number
      • DOUBLE

        public static final GeoPackageDataType DOUBLE
        64-bit IEEE floating point number. Stored as SQLite REAL
      • REAL

        public static final GeoPackageDataType REAL
        64-bit IEEE floating point number. Stored as SQLite REAL
      • TEXT

        public static final GeoPackageDataType TEXT
        TEXT{(maxchar_count)}: Variable length string encoded in either UTF-8 or UTF-16, determined by PRAGMA encoding; see http://www.sqlite.org/pragma.html#pragma_encoding. The optional maxchar_count defines the maximum number of characters in the string. If not specified, the length is unbounded. The count is provided for informational purposes, and applications MAY choose to truncate longer strings if encountered. When present, it is best practice for applications to adhere to the character count. Stored as SQLite TEXT
      • BLOB

        public static final GeoPackageDataType BLOB
        BLOB{(max_size)}: Variable length binary data. The optional max_size defines the maximum number of bytes in the blob. If not specified, the length is unbounded. The size is provided for informational purposes. When present, it is best practice for applications adhere to the maximum blob size. Stored as SQLite BLOB
      • DATE

        public static final GeoPackageDataType DATE
        ISO-8601 date string in the form YYYY-MM-DD encoded in either UTF-8 or UTF-16. See TEXT. Stored as SQLite TEXT
      • DATETIME

        public static final GeoPackageDataType DATETIME
        ISO-8601 date/time string in the form YYYY-MM-DDTHH:MM:SS.SSSZ with T separator character and Z suffix for coordinated universal time (UTC) encoded in either UTF-8 or UTF-16. See TEXT. Stored as SQLite TEXT
    • Method Detail

      • values

        public static GeoPackageDataType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GeoPackageDataType c : GeoPackageDataType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GeoPackageDataType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getClassType

        public Class<?> getClassType()
        Get the Java class type
        Returns:
        class type
      • fromName

        public static GeoPackageDataType fromName​(String name)
        Get the Data Type from the name, ignoring case
        Parameters:
        name - name
        Returns:
        data type
      • findName

        public static GeoPackageDataType findName​(String name)
        Find the Data Type from the name if it exists, ignoring case
        Parameters:
        name - name
        Returns:
        data type or null
        Since:
        3.3.0