Uses of Class
org.postgresql.util.PSQLException
-
-
Uses of PSQLException in org.postgresql
Methods in org.postgresql that throw PSQLException Modifier and Type Method Description int
PGProperty. getInt(java.util.Properties properties)
Return the int value for this connection parameter in the givenProperties
.java.lang.Integer
PGProperty. getInteger(java.util.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 PSQLException Modifier and Type Method Description private static void
Parser. checkParsePosition(int i, int len, int i0, char[] sql, java.lang.String message)
static javax.net.SocketFactory
SocketFactoryFactory. getSocketFactory(java.util.Properties info)
InstantiatesSocketFactory
based on thePGProperty.SOCKET_FACTORY
.static javax.net.ssl.SSLSocketFactory
SocketFactoryFactory. getSslSocketFactory(java.util.Properties info)
InstantiatesSSLSocketFactory
based on thePGProperty.SSL_FACTORY
.void
CommandCompleteParser. parse(java.lang.String status)
ParsesCommandComplete (B)
message.void
PGStream. setMaxResultBuffer(java.lang.String value)
Method to set MaxResultBuffer inside PGStream.static int
Oid. valueOf(java.lang.String oid)
-
Uses of PSQLException in org.postgresql.core.v3
Methods in org.postgresql.core.v3 that throw PSQLException Modifier and Type Method Description R
AuthenticationPluginManager.PasswordAction. apply(T password)
private PGStream
ConnectionFactoryImpl. enableGSSEncrypted(PGStream pgStream, GSSEncMode gssEncMode, java.lang.String host, java.util.Properties info, int connectTimeout)
private PGStream
ConnectionFactoryImpl. enableSSL(PGStream pgStream, SslMode sslMode, java.util.Properties info, int connectTimeout)
void
CopyDualImpl. handleCommandStatus(java.lang.String status)
void
CopyOperationImpl. handleCommandStatus(java.lang.String status)
protected void
CopyInImpl. handleCopydata(byte[] data)
protected abstract void
CopyOperationImpl. handleCopydata(byte[] data)
Consume received copy data.private void
QueryExecutorImpl. lock(java.lang.Object obtainer)
Obtain lock over this connection for given object, blocking to wait if necessary.private void
QueryExecutorImpl. setSocketTimeout(int millis)
private void
QueryExecutorImpl. unlock(java.lang.Object holder)
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, java.util.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, java.util.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. -
Uses of PSQLException in org.postgresql.core.v3.replication
Methods in org.postgresql.core.v3.replication that throw PSQLException Modifier and Type Method Description private void
V3PGReplicationStream. checkClose()
private void
V3ReplicationProtocol. configureSocketTimeout(CommonOptions options)
-
Uses of PSQLException in org.postgresql.gss
Methods in org.postgresql.gss that throw PSQLException Modifier and Type Method Description static void
MakeGSS. authenticate(boolean encrypted, PGStream pgStream, java.lang.String host, java.lang.String user, char[] password, java.lang.String jaasApplicationName, java.lang.String kerberosServerName, boolean useSpnego, boolean jaasLogin, boolean logServerErrorDetail)
-
Uses of PSQLException in org.postgresql.jdbc
Methods in org.postgresql.jdbc that return PSQLException Modifier and Type Method Description private static PSQLException
PgPreparedStatement. cannotCastException(java.lang.String fromType, java.lang.String toType)
private static PSQLException
PgPreparedStatement. cannotCastException(java.lang.String fromType, java.lang.String toType, java.lang.Exception cause)
private static PSQLException
BooleanTypeUtil. cannotCoerceException(java.lang.Object value)
Methods in org.postgresql.jdbc that throw PSQLException Modifier and Type Method Description (package private) static boolean
BooleanTypeUtil. castToBoolean(java.lang.Object in)
Cast an Object value to the corresponding boolean value.private void
PgParameterMetaData. checkParamIndex(int param)
private static boolean
BooleanTypeUtil. fromCharacter(java.lang.Character charval)
private static boolean
BooleanTypeUtil. fromNumber(java.lang.Number numval)
(package private) static boolean
BooleanTypeUtil. fromString(java.lang.String strval)
static <A> ArrayEncoding.ArrayEncoder<A>
ArrayEncoding. getArrayEncoder(A array)
Returns support for encoding array.private static java.util.Set<? extends java.lang.Integer>
PgConnection. getBinaryDisabledOids(java.util.Properties info)
Gets all oids for which binary transfer should be disabled.private static java.util.Set<java.lang.Integer>
PgConnection. getBinaryEnabledOids(java.util.Properties info)
Gets all oids for which binary transfer can be enabled.private static java.util.Set<? extends java.lang.Integer>
PgConnection. getOidSet(java.lang.String oidList)
static GSSEncMode
GSSEncMode. of(java.util.Properties info)
static SslMode
SslMode. of(java.util.Properties info)
private double
PgResultSet. readDoubleValue(byte[] bytes, int oid, java.lang.String targetType)
Converts any numeric binary field to double value.private long
PgResultSet. readLongValue(byte[] bytes, int oid, long minVal, long maxVal, java.lang.String targetType)
Converts any numeric binary field to long value.private java.math.BigDecimal
PgResultSet. scaleBigDecimal(java.math.BigDecimal val, int scale)
private static java.lang.String
EscapedFunctions. singleArgumentFunctionCall(java.lang.String call, java.lang.String functionName, java.util.List<?> parsedArgs)
Deprecated.private static void
EscapedFunctions2. singleArgumentFunctionCall(java.lang.StringBuilder buf, java.lang.String call, java.lang.String functionName, java.util.List<? extends java.lang.CharSequence> parsedArgs)
void
TimestampUtils. toBinDate(java.util.TimeZone tz, byte[] bytes, java.sql.Date value)
Converts the SQL Date to binary representation forOid.DATE
.java.sql.Date
TimestampUtils. toDateBin(java.util.TimeZone tz, byte[] bytes)
Returns the SQL Date object matching the given bytes withOid.DATE
.java.time.LocalDate
TimestampUtils. toLocalDateBin(byte[] bytes)
Returns the local date time object matching the given bytes withOid.DATE
orOid.TIMESTAMP
.java.time.LocalDateTime
TimestampUtils. toLocalDateTimeBin(byte[] bytes)
Returns the local date time object matching the given bytes withOid.TIMESTAMP
orOid.TIMESTAMPTZ
.java.time.LocalTime
TimestampUtils. toLocalTimeBin(byte[] bytes)
Returns the SQL Time object matching the given bytes withOid.TIME
.java.time.OffsetDateTime
TimestampUtils. toOffsetDateTimeBin(byte[] bytes)
Returns the offset date time object matching the given bytes with Oid#TIMESTAMPTZ.java.time.OffsetTime
TimestampUtils. toOffsetTimeBin(byte[] bytes)
Returns the offset time object matching the given bytes with Oid#TIMETZ or Oid#TIME.private TimestampUtils.ParsedBinaryTimestamp
TimestampUtils. toParsedTimestampBin(java.util.TimeZone tz, byte[] bytes, boolean timestamptz)
private TimestampUtils.ParsedBinaryTimestamp
TimestampUtils. toParsedTimestampBinPlain(byte[] bytes)
private TimestampUtils.ParsedBinaryTimestamp
TimestampUtils. toProlepticParsedTimestampBin(byte[] bytes)
java.sql.Time
TimestampUtils. toTimeBin(java.util.TimeZone tz, byte[] bytes)
Returns the SQL Time object matching the given bytes withOid.TIME
orOid.TIMETZ
.java.sql.Timestamp
TimestampUtils. toTimestampBin(java.util.TimeZone tz, byte[] bytes, boolean timestamptz)
Returns the SQL Timestamp object matching the given bytes withOid.TIMESTAMP
orOid.TIMESTAMPTZ
.private static java.lang.String
EscapedFunctions. twoArgumentsFunctionCall(java.lang.String call, java.lang.String functionName, java.util.List<?> parsedArgs)
Deprecated.private static void
EscapedFunctions2. twoArgumentsFunctionCall(java.lang.StringBuilder buf, java.lang.String call, java.lang.String functionName, java.util.List<? extends java.lang.CharSequence> parsedArgs)
private static void
EscapedFunctions2. zeroArgumentFunctionCall(java.lang.StringBuilder buf, java.lang.String call, java.lang.String functionName, java.util.List<? extends java.lang.CharSequence> parsedArgs)
-
Uses of PSQLException in org.postgresql.jre7.sasl
Methods in org.postgresql.jre7.sasl that throw PSQLException Modifier and Type Method Description void
ScramAuthenticator. processServerFirstMessage(int length)
void
ScramAuthenticator. processServerMechanismsAndInit()
void
ScramAuthenticator. verifyServerSignature(int length)
-
Uses of PSQLException in org.postgresql.plugin
Methods in org.postgresql.plugin that throw PSQLException Modifier and Type Method Description char[]
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 PSQLException Modifier and Type Field Description private PSQLException
LazyKeyManager. error
private PSQLException
PKCS12KeyManager. error
Methods in org.postgresql.ssl that throw PSQLException Modifier and Type Method Description static void
MakeSSL. convert(PGStream stream, java.util.Properties info)
private javax.security.auth.callback.CallbackHandler
LibPQFactory. getCallbackHandler(java.util.Properties info)
private void
LibPQFactory. initP12(java.lang.String sslkeyfile, java.util.Properties info)
private void
LibPQFactory. initPk8(java.lang.String sslkeyfile, java.lang.String defaultdir, java.util.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, java.util.Properties info, javax.net.ssl.SSLSocket newConnection)
Constructors in org.postgresql.ssl that throw PSQLException Constructor Description LibPQFactory(java.util.Properties info)
PKCS12KeyManager(java.lang.String pkcsFile, javax.security.auth.callback.CallbackHandler cbh)
-
Uses of PSQLException in org.postgresql.ssl.jdbc4
Constructors in org.postgresql.ssl.jdbc4 that throw PSQLException Constructor Description LibPQFactory(java.util.Properties info)
Deprecated.preferLibPQFactory
-
Uses of PSQLException in org.postgresql.util
Methods in org.postgresql.util that throw PSQLException Modifier and Type Method Description private static long
PGPropertyMaxResultBufferParser. parseBytePercentValue(java.lang.String value)
Method to get percent value of max result buffer size dependable on actual free memory.private static long
PGPropertyMaxResultBufferParser. parseByteValue(java.lang.String value)
Method to get size based on given string value.static long
PGPropertyMaxResultBufferParser. parseProperty(java.lang.String value)
Method to parse value of max result buffer size.private static void
PGPropertyMaxResultBufferParser. throwExceptionAboutParsingError(java.lang.String message, java.lang.Object... values)
Method to throw message for parsing MaxResultBuffer.Constructors in org.postgresql.util that throw PSQLException Constructor Description StreamWrapper(java.io.InputStream stream)
-