Class PostgresTypes.PostgresType

java.lang.Object
io.r2dbc.postgresql.codec.PostgresTypes.PostgresType
All Implemented Interfaces:
PostgresTypeIdentifier, Type
Enclosing class:
PostgresTypes

public static class PostgresTypes.PostgresType extends Object implements Type, PostgresTypeIdentifier
Since:
0.8.4
  • Constructor Details

    • PostgresType

      public PostgresType(int oid, long unsignedOid, int typarray, long unsignedTyparray, String name, String category)
  • Method Details

    • getObjectId

      public int getObjectId()
      Description copied from interface: PostgresTypeIdentifier
      Postgres type identifier.
      Specified by:
      getObjectId in interface PostgresTypeIdentifier
      Returns:
      the Postgres type OID.
    • asArrayType

      public PostgresTypes.PostgresType asArrayType()
      Return the type as array type.
      Returns:
      this type as array type.
    • getOid

      public int getOid()
    • getJavaType

      public Class<?> getJavaType()
      Specified by:
      getJavaType in interface Type
    • getArrayObjectId

      public int getArrayObjectId()
    • getUnsignedObjectId

      public long getUnsignedObjectId()
    • getUnsignedArrayObjectId

      public long getUnsignedArrayObjectId()
    • getName

      public String getName()
      Specified by:
      getName in interface Type
    • isArray

      public boolean isArray()
      Returns:
      true if the type is an array type (category code A)
    • isBoolean

      public boolean isBoolean()
      Returns:
      true if the type is a boolean type (category code B)
    • isComposite

      public boolean isComposite()
      Returns:
      true if the type is a composite type (category code C)
    • isDateTime

      public boolean isDateTime()
      Returns:
      true if the type is a date/time type (category code D)
    • isEnum

      public boolean isEnum()
      Returns:
      true if the type is an enum type (category code E)
    • isGeometric

      public boolean isGeometric()
      Returns:
      true if the type is a geometric type (category code G)
    • isNetworkAddress

      public boolean isNetworkAddress()
      Returns:
      true if the type is a network address type (category code I)
    • isNumeric

      public boolean isNumeric()
      Returns:
      true if the type is a numeric type (category code N)
    • isPseudo

      public boolean isPseudo()
      Returns:
      true if the type is a pseudo-type (category code P)
    • isString

      public boolean isString()
      Returns:
      true if the type is a string type (category code S)
    • isTimespan

      public boolean isTimespan()
      Returns:
      true if the type is a timespan type (category code T)
    • isUserDefinedType

      public boolean isUserDefinedType()
      Returns:
      true if the type is a user-defined type (category code U)
    • isBitString

      public boolean isBitString()
      Returns:
      true if the type is a bit-string type (category code V)
    • isUnknown

      public boolean isUnknown()
      Returns:
      true if the type is an unknown type (category code X)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object