パッケージ org.postgresql.util

クラス PGobject

java.lang.Object
org.postgresql.util.PGobject
すべての実装されたインタフェース:
Serializable, Cloneable
直系の既知のサブクラス:
PGbox, PGcircle, PGInterval, PGline, PGlseg, PGmoney, PGpath, PGpoint, PGpolygon

public class PGobject extends Object implements Serializable, Cloneable
PGobject is a class used to describe unknown types An unknown type is any type that is unknown by JDBC Standards.
関連項目:
  • フィールドの概要

    フィールド
    修飾子とタイプ
    フィールド
    説明
    protected @Nullable String
     
    protected @Nullable String
     
  • コンストラクタの概要

    コンストラクタ
    コンストラクタ
    説明
    This is called by org.postgresql.Connection.getObject() to create the object.
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    This must be overridden to allow the object to be cloned.
    boolean
    equals(@Nullable Object obj)
    This must be overridden to allow comparisons of objects.
    protected static boolean
    equals(@Nullable Object a, @Nullable Object b)
     
    final String
    As this cannot change during the life of the object, it's final.
    @Nullable String
    This must be overridden, to return the value of the object, in the form required by org.postgresql.
    int
    Compute hash.
    boolean
    Returns true if the current object wraps `null` value.
    final void
    This method sets the type of this object.
    void
    setValue(@Nullable String value)
    This method sets the value of this object.
    This is defined here, so user code need not override it.

    クラスから継承されたメソッド java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • フィールド詳細

    • type

      protected @Nullable String type
    • value

      protected @Nullable String value
  • コンストラクタの詳細

    • PGobject

      public PGobject()
      This is called by org.postgresql.Connection.getObject() to create the object.
  • メソッドの詳細

    • setType

      public final void setType(String type)

      This method sets the type of this object.

      It should not be extended by subclasses, hence it is final

      パラメータ:
      type - a string describing the type of the object
    • setValue

      public void setValue(@Nullable String value) throws SQLException
      This method sets the value of this object. It must be overridden.
      パラメータ:
      value - a string representation of the value of the object
      例外:
      SQLException - thrown if value is invalid for this type
    • getType

      public final String getType()
      As this cannot change during the life of the object, it's final.
      戻り値:
      the type name of this object
    • getValue

      public @Nullable String getValue()
      This must be overridden, to return the value of the object, in the form required by org.postgresql.
      戻り値:
      the value of this object
    • isNull

      public boolean isNull()
      Returns true if the current object wraps `null` value. This might be helpful
      戻り値:
      true if the current object wraps `null` value.
    • equals

      public boolean equals(@Nullable Object obj)
      This must be overridden to allow comparisons of objects.
      オーバーライド:
      equals クラス内 Object
      パラメータ:
      obj - Object to compare with
      戻り値:
      true if the two boxes are identical
    • clone

      public Object clone() throws CloneNotSupportedException
      This must be overridden to allow the object to be cloned.
      オーバーライド:
      clone クラス内 Object
      例外:
      CloneNotSupportedException
    • toString

      public String toString()
      This is defined here, so user code need not override it.
      オーバーライド:
      toString クラス内 Object
      戻り値:
      the value of this object, in the syntax expected by org.postgresql
    • hashCode

      public int hashCode()
      Compute hash. As equals() use only value. Return the same hash for the same value.
      オーバーライド:
      hashCode クラス内 Object
      戻り値:
      Value hashcode, 0 if value is null Objects.hashCode(Object)
    • equals

      protected static boolean equals(@Nullable Object a, @Nullable Object b)