Modifier and Type | Method and Description |
---|---|
int |
PGProperty.getInt(java.util.Properties properties)
Return the int value for this connection parameter in the given
Properties . |
java.lang.Integer |
PGProperty.getInteger(java.util.Properties properties)
Return the
Integer value for this connection parameter in the given Properties . |
Modifier and Type | Method and 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)
Instantiates
SocketFactory based on the PGProperty.SOCKET_FACTORY . |
static javax.net.ssl.SSLSocketFactory |
SocketFactoryFactory.getSslSocketFactory(java.util.Properties info)
Instantiates
SSLSocketFactory based on the PGProperty.SSL_FACTORY . |
void |
CommandCompleteParser.parse(java.lang.String status)
Parses
CommandComplete (B) message. |
void |
PGStream.setMaxResultBuffer(java.lang.String value)
Method to set MaxResultBuffer inside PGStream.
|
static int |
Oid.valueOf(java.lang.String oid) |
Modifier and Type | Method and Description |
---|---|
private PGStream |
ConnectionFactoryImpl.enableSSL(PGStream pgStream,
SslMode sslMode,
java.util.Properties info,
int connectTimeout) |
void |
CopyOperationImpl.handleCommandStatus(java.lang.String status) |
void |
CopyDualImpl.handleCommandStatus(java.lang.String status) |
protected abstract void |
CopyOperationImpl.handleCopydata(byte[] data)
Consume received copy data.
|
protected void |
CopyInImpl.handleCopydata(byte[] 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.
|
Modifier and Type | Method and Description |
---|---|
private void |
V3PGReplicationStream.checkClose() |
private void |
V3ReplicationProtocol.configureSocketTimeout(CommonOptions options) |
Modifier and Type | Method and 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) |
Modifier and Type | Method and 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) |
private static boolean |
BooleanTypeUtil.fromString(java.lang.String strval) |
private static java.util.Set<java.lang.Integer> |
PgConnection.getBinaryOids(java.util.Properties info) |
private static java.util.Set<java.lang.Integer> |
PgConnection.getOidSet(java.lang.String oidList) |
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 void |
EscapedFunctions2.singleArgumentFunctionCall(java.lang.StringBuilder buf,
java.lang.String call,
java.lang.String functionName,
java.util.List<? extends java.lang.CharSequence> parsedArgs) |
private static java.lang.String |
EscapedFunctions.singleArgumentFunctionCall(java.lang.String call,
java.lang.String functionName,
java.util.List<?> parsedArgs)
Deprecated.
|
void |
TimestampUtils.toBinDate(java.util.TimeZone tz,
byte[] bytes,
java.sql.Date value)
Converts the SQL Date to binary representation for
Oid.DATE . |
java.sql.Date |
TimestampUtils.toDateBin(java.util.TimeZone tz,
byte[] bytes)
Returns the SQL Date object matching the given bytes with
Oid.DATE . |
java.time.LocalDateTime |
TimestampUtils.toLocalDateTimeBin(byte[] bytes)
Returns the local date time object matching the given bytes with
Oid.TIMESTAMP or
Oid.TIMESTAMPTZ . |
java.time.LocalTime |
TimestampUtils.toLocalTimeBin(byte[] bytes)
Returns the SQL Time object matching the given bytes with
Oid.TIME . |
java.time.OffsetDateTime |
TimestampUtils.toOffsetDateTimeBin(byte[] bytes)
Returns the offset date time object matching the given bytes with Oid#TIMESTAMPTZ.
|
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 with
Oid.TIME or
Oid.TIMETZ . |
java.sql.Timestamp |
TimestampUtils.toTimestampBin(java.util.TimeZone tz,
byte[] bytes,
boolean timestamptz)
Returns the SQL Timestamp object matching the given bytes with
Oid.TIMESTAMP or
Oid.TIMESTAMPTZ . |
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 java.lang.String |
EscapedFunctions.twoArgumentsFunctionCall(java.lang.String call,
java.lang.String functionName,
java.util.List<?> parsedArgs)
Deprecated.
|
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) |
Modifier and Type | Method and Description |
---|---|
void |
ScramAuthenticator.processServerFirstMessage(int length) |
void |
ScramAuthenticator.processServerMechanismsAndInit() |
void |
ScramAuthenticator.verifyServerSignature(int length) |
Modifier and Type | Field and Description |
---|---|
private PSQLException |
PKCS12KeyManager.error |
private PSQLException |
LazyKeyManager.error |
Modifier and Type | Method and 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 |
PKCS12KeyManager.throwKeyManagerException()
getCertificateChain and getPrivateKey cannot throw exeptions, therefore any exception is stored
in
PKCS12KeyManager.error and can be raised by this method. |
void |
LibPQFactory.throwKeyManagerException()
Propagates any exception from
LazyKeyManager . |
void |
LazyKeyManager.throwKeyManagerException()
getCertificateChain and getPrivateKey cannot throw exeptions, therefore any exception is stored
in
LazyKeyManager.error and can be raised by this method. |
private static void |
MakeSSL.verifyPeerName(PGStream stream,
java.util.Properties info,
javax.net.ssl.SSLSocket newConnection) |
Constructor and Description |
---|
LibPQFactory(java.util.Properties info) |
PKCS12KeyManager(java.lang.String pkcsFile,
javax.security.auth.callback.CallbackHandler cbh) |
Constructor and Description |
---|
LibPQFactory(java.util.Properties info)
Deprecated.
prefer
LibPQFactory |
Modifier and Type | Method and 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.
|
Constructor and Description |
---|
StreamWrapper(java.io.InputStream stream) |