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
-
Nested Class Summary
Nested classes/interfaces inherited from interface Type
Type.InferredType -
Constructor Summary
ConstructorsConstructorDescriptionPostgresType(int oid, long unsignedOid, int typarray, long unsignedTyparray, String name, String category) -
Method Summary
Modifier and TypeMethodDescriptionReturn the type as array type.booleanintClass<?> getName()intPostgres type identifier.intgetOid()longlonginthashCode()booleanisArray()booleanbooleanbooleanbooleanbooleanisEnum()booleanbooleanbooleanbooleanisPseudo()booleanisString()booleanbooleanbooleantoString()
-
Constructor Details
-
PostgresType
-
-
Method Details
-
getObjectId
public int getObjectId()Description copied from interface:PostgresTypeIdentifierPostgres type identifier.- Specified by:
getObjectIdin interfacePostgresTypeIdentifier- Returns:
- the Postgres type OID.
-
asArrayType
Return the type as array type.- Returns:
- this type as array type.
-
getOid
public int getOid() -
getJavaType
- Specified by:
getJavaTypein interfaceType
-
getArrayObjectId
public int getArrayObjectId() -
getUnsignedObjectId
public long getUnsignedObjectId() -
getUnsignedArrayObjectId
public long getUnsignedArrayObjectId() -
getName
-
isArray
public boolean isArray()- Returns:
trueif the type is an array type (category codeA)
-
isBoolean
public boolean isBoolean()- Returns:
trueif the type is a boolean type (category codeB)
-
isComposite
public boolean isComposite()- Returns:
trueif the type is a composite type (category codeC)
-
isDateTime
public boolean isDateTime()- Returns:
trueif the type is a date/time type (category codeD)
-
isEnum
public boolean isEnum()- Returns:
trueif the type is an enum type (category codeE)
-
isGeometric
public boolean isGeometric()- Returns:
trueif the type is a geometric type (category codeG)
-
isNetworkAddress
public boolean isNetworkAddress()- Returns:
trueif the type is a network address type (category codeI)
-
isNumeric
public boolean isNumeric()- Returns:
trueif the type is a numeric type (category codeN)
-
isPseudo
public boolean isPseudo()- Returns:
trueif the type is a pseudo-type (category codeP)
-
isString
public boolean isString()- Returns:
trueif the type is a string type (category codeS)
-
isTimespan
public boolean isTimespan()- Returns:
trueif the type is a timespan type (category codeT)
-
isUserDefinedType
public boolean isUserDefinedType()- Returns:
trueif the type is a user-defined type (category codeU)
-
isBitString
public boolean isBitString()- Returns:
trueif the type is a bit-string type (category codeV)
-
isUnknown
public boolean isUnknown()- Returns:
trueif the type is an unknown type (category codeX)
-
equals
-
hashCode
-
toString
-