Package org.postgresql.jdbc
Class PgStruct
java.lang.Object
org.postgresql.jdbc.PgStruct
- All Implemented Interfaces:
Struct
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object[]
private final Charset
private static final Pattern
private final String
private final PgStructField[]
private final TimestampUtils
-
Constructor Summary
ConstructorsModifierConstructorDescriptionPgStruct
(String type, PgStructField[] structFields, BaseConnection connection) private
PgStruct
(String type, PgStructField[] structFields, TimestampUtils timestampUtils, Charset charset) -
Method Summary
Modifier and TypeMethodDescriptionboolean
private Object
getAttributeAs
(Object attribute, Class<?> javaType) Object[]
Object[]
getAttributes
(Map<String, Class<?>> map) int
hashCode()
toString()
withAttributes
(Object[] attributes)
-
Field Details
-
needQuotesPattern
-
sqlTypeName
-
attributes
-
structFields
-
timestampUtils
-
charset
-
-
Constructor Details
-
PgStruct
-
PgStruct
private PgStruct(String type, PgStructField[] structFields, TimestampUtils timestampUtils, Charset charset)
-
-
Method Details
-
withAttributes
- Throws:
SQLException
-
getSQLTypeName
- Specified by:
getSQLTypeName
in interfaceStruct
-
getAttributes
- Specified by:
getAttributes
in interfaceStruct
-
getFields
-
getAttributes
- Specified by:
getAttributes
in interfaceStruct
- Throws:
SQLException
-
getAttributeAs
- Throws:
SQLException
-
toString
-
equals
-
hashCode
public int hashCode()
-