Uses of Class
org.postgresql.util.PSQLException
Packages that use PSQLException
Package
Description
-
Uses of PSQLException in org.postgresql
Methods in org.postgresql that throw PSQLExceptionModifier and TypeMethodDescriptionint
PGProperty.getInt
(Properties properties) Return the int value for this connection parameter in the givenProperties
.PGProperty.getInteger
(Properties properties) Return theInteger
value for this connection parameter in the givenProperties
. -
Uses of PSQLException in org.postgresql.core
Methods in org.postgresql.core that throw PSQLExceptionModifier and TypeMethodDescriptionprivate static void
Parser.checkParsePosition
(int i, int len, int i0, char[] sql, String message) static SocketFactory
SocketFactoryFactory.getSocketFactory
(Properties info) InstantiatesSocketFactory
based on thePGProperty.SOCKET_FACTORY
.static SSLSocketFactory
SocketFactoryFactory.getSslSocketFactory
(Properties info) InstantiatesSSLSocketFactory
based on thePGProperty.SSL_FACTORY
.void
ParsesCommandComplete (B)
message.void
PGStream.setMaxResultBuffer
(String value) Method to set MaxResultBuffer inside PGStream.static int
-
Uses of PSQLException in org.postgresql.core.v3
Methods in org.postgresql.core.v3 that throw PSQLExceptionModifier and TypeMethodDescriptionScramAuthenticator.advertisedMechanisms
(PGStream stream, ChannelBindingOption channelBinding) private PGStream
ConnectionFactoryImpl.enableGSSEncrypted
(PGStream pgStream, GSSEncMode gssEncMode, String host, Properties info, int connectTimeout) private PGStream
ConnectionFactoryImpl.enableSSL
(PGStream pgStream, SslMode sslMode, Properties info, int connectTimeout) private static byte[]
ScramAuthenticator.getChannelBindingData
(PGStream stream, ChannelBindingOption channelBinding) (package private) void
ScramAuthenticator.handleAuthenticationSASLContinue
(int length) (package private) void
ScramAuthenticator.handleAuthenticationSASLFinal
(int length) void
CopyDualImpl.handleCommandStatus
(String status) void
CopyOperationImpl.handleCommandStatus
(String status) protected void
CopyInImpl.handleCopydata
(byte[] data) protected abstract void
CopyOperationImpl.handleCopydata
(byte[] data) Consume received copy data.private static com.ongres.scram.client.ScramClient
ScramAuthenticator.initializeScramClient
(char[] password, PGStream stream, Properties info) private void
Obtain lock over this connection for given object, blocking to wait if necessary.static ChannelBindingOption
ChannelBindingOption.of
(Properties info) private void
QueryExecutorImpl.setSocketTimeout
(int millis) private void
Release lock on this connection presumably held by given object.private void
QueryExecutorImpl.waitOnLock()
Wait until our lock is released.static <T> T
AuthenticationPluginManager.withEncodedPassword
(AuthenticationRequestType type, Properties info, AuthenticationPluginManager.PasswordAction<byte[], T> action) Helper that wrapsAuthenticationPluginManager.withPassword(AuthenticationRequestType, Properties, PasswordAction)
, checks that it is not-null, and encodes it as a byte array.static <T> T
AuthenticationPluginManager.withPassword
(AuthenticationRequestType type, Properties info, AuthenticationPluginManager.PasswordAction<char[], T> action) If a password is requested by the server during connection initiation, this method will be invoked to supply the password.Constructors in org.postgresql.core.v3 that throw PSQLExceptionModifierConstructorDescription(package private)
ScramAuthenticator
(char[] password, PGStream pgStream, Properties info) -
Uses of PSQLException in org.postgresql.core.v3.replication
Methods in org.postgresql.core.v3.replication that throw PSQLExceptionModifier and TypeMethodDescriptionprivate void
V3PGReplicationStream.checkClose()
private void
V3ReplicationProtocol.configureSocketTimeout
(CommonOptions options) -
Uses of PSQLException in org.postgresql.gss
Methods in org.postgresql.gss that throw PSQLExceptionModifier and TypeMethodDescriptionstatic void
MakeGSS.authenticate
(boolean encrypted, PGStream pgStream, String host, String user, char[] password, String jaasApplicationName, String kerberosServerName, boolean useSpnego, boolean jaasLogin, boolean gssUseDefaultCreds, boolean logServerErrorDetail) -
Uses of PSQLException in org.postgresql.jdbc
Methods in org.postgresql.jdbc that return PSQLExceptionModifier and TypeMethodDescriptionprivate static PSQLException
PgPreparedStatement.cannotCastException
(String fromType, String toType) private static PSQLException
PgPreparedStatement.cannotCastException
(String fromType, String toType, Exception cause) private static PSQLException
BooleanTypeUtil.cannotCoerceException
(Object value) Methods in org.postgresql.jdbc that throw PSQLExceptionModifier and TypeMethodDescription(package private) static boolean
BooleanTypeUtil.castToBoolean
(Object in) Cast an Object value to the corresponding boolean value.private void
PgParameterMetaData.checkParamIndex
(int param) private static boolean
BooleanTypeUtil.fromCharacter
(Character charval) private static boolean
BooleanTypeUtil.fromNumber
(Number numval) (package private) static boolean
BooleanTypeUtil.fromString
(String strval) static <A> ArrayEncoding.ArrayEncoder
<A> ArrayEncoding.getArrayEncoder
(A array) Returns support for encoding array.PgConnection.getBinaryDisabledOids
(Properties info) Gets all oids for which binary transfer should be disabled.PgConnection.getBinaryEnabledOids
(Properties info) Gets all oids for which binary transfer can be enabled.static GSSEncMode
GSSEncMode.of
(Properties info) static SslMode
SslMode.of
(Properties info) private double
PgResultSet.readDoubleValue
(byte[] bytes, int oid, String targetType) Converts any numeric binary field to double value.private long
PgResultSet.readLongValue
(byte[] bytes, int oid, long minVal, long maxVal, String targetType) Converts any numeric binary field to long value.private BigDecimal
PgResultSet.scaleBigDecimal
(BigDecimal val, int scale) private static String
EscapedFunctions.singleArgumentFunctionCall
(String call, String functionName, List<?> parsedArgs) Deprecated.private static void
EscapedFunctions2.singleArgumentFunctionCall
(StringBuilder buf, String call, String functionName, List<? extends CharSequence> parsedArgs) void
Converts the SQL Date to binary representation forOid.DATE
.Returns the SQL Date object matching the given bytes withOid.DATE
.TimestampUtils.toLocalDateBin
(byte[] bytes) Returns the local date time object matching the given bytes withOid.DATE
orOid.TIMESTAMP
.TimestampUtils.toLocalDateTimeBin
(byte[] bytes) Returns the local date time object matching the given bytes withOid.TIMESTAMP
orOid.TIMESTAMPTZ
.TimestampUtils.toLocalTimeBin
(byte[] bytes) Returns the SQL Time object matching the given bytes withOid.TIME
.TimestampUtils.toOffsetDateTimeBin
(byte[] bytes) Returns the offset date time object matching the given bytes with Oid#TIMESTAMPTZ.TimestampUtils.toOffsetTimeBin
(byte[] bytes) Returns the offset time object matching the given bytes with Oid#TIMETZ or Oid#TIME.TimestampUtils.toParsedTimestampBin
(TimeZone tz, byte[] bytes, boolean timestamptz) TimestampUtils.toParsedTimestampBinPlain
(byte[] bytes) TimestampUtils.toProlepticParsedTimestampBin
(byte[] bytes) TimestampUtils.toStringOffsetDateTime
(byte[] value) Convertstimestamptz
to string taking client time zone (TimestampUtils.timeZoneProvider
) into account.TimestampUtils.toStringOffsetTimeBin
(byte[] value) Convertstimetz
to string taking client time zone (TimestampUtils.timeZoneProvider
) into account.Returns the SQL Time object matching the given bytes withOid.TIME
orOid.TIMETZ
.TimestampUtils.toTimestampBin
(TimeZone tz, byte[] bytes, boolean timestamptz) Returns the SQL Timestamp object matching the given bytes withOid.TIMESTAMP
orOid.TIMESTAMPTZ
.private static String
EscapedFunctions.twoArgumentsFunctionCall
(String call, String functionName, List<?> parsedArgs) Deprecated.private static void
EscapedFunctions2.twoArgumentsFunctionCall
(StringBuilder buf, String call, String functionName, List<? extends CharSequence> parsedArgs) private static void
EscapedFunctions2.zeroArgumentFunctionCall
(StringBuilder buf, String call, String functionName, List<? extends CharSequence> parsedArgs) -
Uses of PSQLException in org.postgresql.plugin
Methods in org.postgresql.plugin that throw PSQLExceptionModifier and TypeMethodDescriptionchar[]
AuthenticationPlugin.getPassword
(AuthenticationRequestType type) Callback method to provide the password to use for authentication. -
Uses of PSQLException in org.postgresql.ssl
Fields in org.postgresql.ssl declared as PSQLExceptionModifier and TypeFieldDescriptionprivate PSQLException
LazyKeyManager.error
private PSQLException
PKCS12KeyManager.error
Methods in org.postgresql.ssl that throw PSQLExceptionModifier and TypeMethodDescriptionstatic void
MakeSSL.convert
(PGStream stream, Properties info) private CallbackHandler
LibPQFactory.getCallbackHandler
(Properties info) private void
LibPQFactory.initP12
(String sslkeyfile, Properties info) private void
LibPQFactory.initPk8
(String sslkeyfile, String defaultdir, Properties info) void
LazyKeyManager.throwKeyManagerException()
getCertificateChain and getPrivateKey cannot throw exceptions, therefore any exception is stored inLazyKeyManager.error
and can be raised by this method.void
LibPQFactory.throwKeyManagerException()
Propagates any exception fromLazyKeyManager
.void
PKCS12KeyManager.throwKeyManagerException()
getCertificateChain and getPrivateKey cannot throw exceptions, therefore any exception is stored inPKCS12KeyManager.error
and can be raised by this method.private static void
MakeSSL.verifyPeerName
(PGStream stream, Properties info, SSLSocket newConnection) Constructors in org.postgresql.ssl that throw PSQLExceptionModifierConstructorDescriptionLibPQFactory
(Properties info) PKCS12KeyManager
(String pkcsFile, CallbackHandler cbh) -
Uses of PSQLException in org.postgresql.ssl.jdbc4
Constructors in org.postgresql.ssl.jdbc4 that throw PSQLException -
Uses of PSQLException in org.postgresql.util
Methods in org.postgresql.util that throw PSQLExceptionModifier and TypeMethodDescriptionprivate static long
PGPropertyMaxResultBufferParser.parseBytePercentValue
(String value) Method to get percent value of max result buffer size dependable on actual free memory.private static long
PGPropertyMaxResultBufferParser.parseByteValue
(String value) Method to get size based on given string value.static long
PGPropertyMaxResultBufferParser.parseProperty
(String value) Method to parse value of max result buffer size.private static void
PGPropertyMaxResultBufferParser.throwExceptionAboutParsingError
(String message, Object... values) Method to throw message for parsing MaxResultBuffer.Constructors in org.postgresql.util that throw PSQLException
LibPQFactory