java.lang.Object
org.jooq.util.postgres.PGobject
- All Implemented Interfaces:
- Serializable,- Cloneable
- Direct Known Subclasses:
- PGInterval
PGobject is a class used to describe unknown types An unknown type is any type that is unknown by
 JDBC Standards.
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionPGobject()This is called by org.postgresql.Connection.getObject() to create the object.
- 
Method SummaryModifier and TypeMethodDescriptionclone()This must be overidden to allow the object to be cloned.booleanThis must be overidden to allow comparisons of objects.protected static booleanfinal StringgetType()As this cannot change during the life of the object, it's final.getValue()This must be overidden, to return the value of the object, in the form required by org.postgresql.inthashCode()Compute hash.booleanisNull()Returns true if the current object wraps `null` value.final voidThis method sets the type of this object.voidThis method sets the value of this object.toString()This is defined here, so user code need not overide it.
- 
Field Details- 
type
- 
value
 
- 
- 
Constructor Details- 
PGobjectpublic PGobject()This is called by org.postgresql.Connection.getObject() to create the object.
 
- 
- 
Method Details- 
setTypeThis method sets the type of this object. It should not be extended by subclasses, hence it is final - Parameters:
- type- a string describing the type of the object
 
- 
setValueThis method sets the value of this object. It must be overridden.- Parameters:
- value- a string representation of the value of the object
- Throws:
- SQLException- thrown if value is invalid for this type
 
- 
getTypeAs this cannot change during the life of the object, it's final.- Returns:
- the type name of this object
 
- 
getValueThis must be overidden, to return the value of the object, in the form required by org.postgresql.- Returns:
- the value of this object
 
- 
isNullpublic boolean isNull()Returns true if the current object wraps `null` value. This might be helpful- Returns:
- true if the current object wraps `null` value.
 
- 
equalsThis must be overidden to allow comparisons of objects.
- 
cloneThis must be overidden to allow the object to be cloned.- Overrides:
- clonein class- Object
- Throws:
- CloneNotSupportedException
 
- 
toStringThis is defined here, so user code need not overide it.
- 
hashCodepublic int hashCode()Compute hash. As equals() use only value. Return the same hash for the same value.- Overrides:
- hashCodein class- Object
- Returns:
- Value hashcode, 0 if value is null Objects.hashCode(Object)
 
- 
equals
 
-