パッケージ org.postgresql.util
クラス PGobject
java.lang.Object
org.postgresql.util.PGobject
- すべての実装されたインタフェース:
Serializable
,Cloneable
PGobject is a class used to describe unknown types An unknown type is any type that is unknown by
JDBC Standards.
- 関連項目:
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明clone()
This must be overridden to allow the object to be cloned.boolean
This must be overridden to allow comparisons of objects.protected static boolean
final String
getType()
As this cannot change during the life of the object, it's final.@Nullable String
getValue()
This must be overridden, to return the value of the object, in the form required by org.postgresql.int
hashCode()
Compute hash.boolean
isNull()
Returns true if the current object wraps `null` value.final void
This method sets the type of this object.void
This method sets the value of this object.toString()
This is defined here, so user code need not override it.
-
フィールド詳細
-
type
-
value
-
-
コンストラクタの詳細
-
PGobject
public PGobject()This is called by org.postgresql.Connection.getObject() to create the object.
-
-
メソッドの詳細
-
setType
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
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
As this cannot change during the life of the object, it's final.- 戻り値:
- the type name of this object
-
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
This must be overridden to allow comparisons of objects. -
clone
This must be overridden to allow the object to be cloned.- オーバーライド:
clone
クラス内Object
- 例外:
CloneNotSupportedException
-
toString
This is defined here, so user code need not override it. -
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
-