Package org.postgresql.jdbc
Class PgSQLInput
java.lang.Object
org.postgresql.jdbc.PgSQLInput
- All Implemented Interfaces:
SQLInput
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SQLFunction
<String, Array> private static final SQLFunction
<String, BigDecimal> private static final SQLFunction
<String, BigInteger> private static final SQLFunction
<String, Boolean> private static final SQLFunction
<String, Byte> private static final SQLFunction
<String, byte[]> private BaseConnection
private final SQLFunction
<String, Date> private static final SQLFunction
<String, Double> private static final SQLFunction
<String, Float> private int
private static final SQLFunction
<String, Integer> private static final SQLFunction
<String, Long> private static final SQLFunction
<String, Short> private static final SQLFunction
<String, String> private final SQLFunction
<String, Time> private final SQLFunction
<String, Timestamp> private TimestampUtils
private static final SQLFunction
<String, URL> private Boolean
-
Constructor Summary
ConstructorsConstructorDescriptionPgSQLInput
(List<String> values, BaseConnection connection, TimestampUtils timestampUtils) -
Method Summary
Modifier and TypeMethodDescriptionprivate static SQLFunction
<String, Array> private static <T> SQLFunction
<String, T> getConverter
(Class<T> type, BaseConnection connection, TimestampUtils timestampUtils) private static SQLFunction
<String, Date> getDateConvFn
(TimestampUtils timestampUtils) private <T> T
getNextValue
(SQLFunction<String, T> convert) private static SQLFunction
<String, Time> getTimeConvFn
(TimestampUtils timestampUtils) private static SQLFunction
<String, Timestamp> getTimestampConvFn
(TimestampUtils timestampUtils) readBlob()
boolean
byte
readByte()
byte[]
readClob()
readDate()
double
float
static <T> T
readGenericArray
(String value, Class<T> type, BaseConnection connection, TimestampUtils timestampUtils) int
readInt()
long
readLong()
<T> T
readObject
(Class<T> type) readRef()
short
readTime()
readURL()
private static Object
reflectArray
(Class<?> itemType, SQLFunction<String, ?> converter, String value) boolean
wasNull()
-
Field Details
-
stringConv
-
byteConv
-
shortConv
-
intConv
-
longConv
-
floatConv
-
doubleConv
-
bigDecimalConv
-
bigIntConv
-
bytesConv
-
boolConv
-
urlConv
-
timestampConv
-
timeConv
-
dateConv
-
arrayConv
-
index
private int index -
wasNull
-
values
-
connection
-
timestampUtils
-
-
Constructor Details
-
PgSQLInput
-
-
Method Details
-
getTimestampConvFn
-
getTimeConvFn
-
getDateConvFn
-
getArrayConvFn
-
getNextValue
- Throws:
SQLException
-
readString
- Specified by:
readString
in interfaceSQLInput
- Throws:
SQLException
-
readBoolean
- Specified by:
readBoolean
in interfaceSQLInput
- Throws:
SQLException
-
readByte
- Specified by:
readByte
in interfaceSQLInput
- Throws:
SQLException
-
readShort
- Specified by:
readShort
in interfaceSQLInput
- Throws:
SQLException
-
readInt
- Specified by:
readInt
in interfaceSQLInput
- Throws:
SQLException
-
readLong
- Specified by:
readLong
in interfaceSQLInput
- Throws:
SQLException
-
readFloat
- Specified by:
readFloat
in interfaceSQLInput
- Throws:
SQLException
-
readDouble
- Specified by:
readDouble
in interfaceSQLInput
- Throws:
SQLException
-
readBigDecimal
- Specified by:
readBigDecimal
in interfaceSQLInput
- Throws:
SQLException
-
readBytes
- Specified by:
readBytes
in interfaceSQLInput
- Throws:
SQLException
-
readDate
- Specified by:
readDate
in interfaceSQLInput
- Throws:
SQLException
-
readTime
- Specified by:
readTime
in interfaceSQLInput
- Throws:
SQLException
-
readTimestamp
- Specified by:
readTimestamp
in interfaceSQLInput
- Throws:
SQLException
-
readCharacterStream
- Specified by:
readCharacterStream
in interfaceSQLInput
- Throws:
SQLException
-
readAsciiStream
- Specified by:
readAsciiStream
in interfaceSQLInput
- Throws:
SQLException
-
readBinaryStream
- Specified by:
readBinaryStream
in interfaceSQLInput
- Throws:
SQLException
-
readObject
- Specified by:
readObject
in interfaceSQLInput
- Throws:
SQLException
-
readObject
- Specified by:
readObject
in interfaceSQLInput
- Throws:
SQLException
-
readRef
- Specified by:
readRef
in interfaceSQLInput
- Throws:
SQLException
-
readBlob
- Specified by:
readBlob
in interfaceSQLInput
- Throws:
SQLException
-
readClob
- Specified by:
readClob
in interfaceSQLInput
- Throws:
SQLException
-
readArray
- Specified by:
readArray
in interfaceSQLInput
- Throws:
SQLException
-
readURL
- Specified by:
readURL
in interfaceSQLInput
- Throws:
SQLException
-
readSQLXML
- Specified by:
readSQLXML
in interfaceSQLInput
- Throws:
SQLException
-
readRowId
- Specified by:
readRowId
in interfaceSQLInput
- Throws:
SQLException
-
wasNull
- Specified by:
wasNull
in interfaceSQLInput
- Throws:
SQLException
-
readNClob
- Specified by:
readNClob
in interfaceSQLInput
- Throws:
SQLException
-
readNString
- Specified by:
readNString
in interfaceSQLInput
- Throws:
SQLException
-
reflectArray
private static Object reflectArray(Class<?> itemType, SQLFunction<String, ?> converter, String value) throws SQLException- Throws:
SQLException
-
readGenericArray
public static <T> T readGenericArray(String value, Class<T> type, BaseConnection connection, TimestampUtils timestampUtils) throws SQLException - Throws:
SQLException
-
getConverter
private static <T> SQLFunction<String,T> getConverter(Class<T> type, BaseConnection connection, TimestampUtils timestampUtils) throws SQLException - Throws:
SQLException
-