Enum PGType

  • All Implemented Interfaces:
    PGAnyType, java.io.Serializable, java.lang.Comparable<PGType>, java.sql.SQLType

    public enum PGType
    extends java.lang.Enum<PGType>
    implements PGAnyType
    • Enum Constant Detail

      • BOOL

        public static final PGType BOOL
      • BYTES

        public static final PGType BYTES
      • INT2

        public static final PGType INT2
      • INT4

        public static final PGType INT4
      • INT8

        public static final PGType INT8
      • FLOAT4

        public static final PGType FLOAT4
      • FLOAT8

        public static final PGType FLOAT8
      • MONEY

        public static final PGType MONEY
      • NUMERIC

        public static final PGType NUMERIC
      • CHAR

        public static final PGType CHAR
      • NAME

        public static final PGType NAME
      • TEXT

        public static final PGType TEXT
      • BPCHAR

        public static final PGType BPCHAR
      • VARCHAR

        public static final PGType VARCHAR
      • CSTRING

        public static final PGType CSTRING
      • JSON

        public static final PGType JSON
      • JSONB

        public static final PGType JSONB
      • XML

        public static final PGType XML
      • DATE

        public static final PGType DATE
      • TIME

        public static final PGType TIME
      • TIME_WITH_TIMEZONE

        public static final PGType TIME_WITH_TIMEZONE
      • TIMESTAMP

        public static final PGType TIMESTAMP
      • TIMESTAMP_WITH_TIMEZONE

        public static final PGType TIMESTAMP_WITH_TIMEZONE
      • INTERVAL

        public static final PGType INTERVAL
      • POINT

        public static final PGType POINT
      • LINE_SEGMENT

        public static final PGType LINE_SEGMENT
      • PATH

        public static final PGType PATH
      • BOX

        public static final PGType BOX
      • POLYGON

        public static final PGType POLYGON
      • LINE

        public static final PGType LINE
      • CIRCLE

        public static final PGType CIRCLE
      • MACADDR

        public static final PGType MACADDR
      • MACADDR8

        public static final PGType MACADDR8
      • CIDR

        public static final PGType CIDR
      • INET

        public static final PGType INET
      • BIT

        public static final PGType BIT
      • VARBIT

        public static final PGType VARBIT
      • RECORD

        public static final PGType RECORD
      • UUID

        public static final PGType UUID
      • ACL_ITEM

        public static final PGType ACL_ITEM
      • OID

        public static final PGType OID
      • TID

        public static final PGType TID
      • XID

        public static final PGType XID
      • CID

        public static final PGType CID
      • HSTORE

        public static final PGType HSTORE
      • CITEXT

        public static final PGType CITEXT
    • Method Detail

      • values

        public static PGType[] 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 (PGType c : PGType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PGType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.sql.SQLType
      • getVendor

        public java.lang.String getVendor()
        Specified by:
        getVendor in interface java.sql.SQLType
      • getVendorTypeNumber

        public java.lang.Integer getVendorTypeNumber()
        Specified by:
        getVendorTypeNumber in interface java.sql.SQLType
      • getJavaType

        public java.lang.Class<?> getJavaType()
        Specified by:
        getJavaType in interface PGAnyType
      • getMappedType

        public java.sql.JDBCType getMappedType()
      • valueOf

        public static PGType valueOf​(Type type)
        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:
        type - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • valueOf

        public static PGType valueOf​(int oid)
        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:
        oid - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null