org.postgresql.ds.common.BaseDataSource.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of huaweicloud-dws-jdbc Show documentation
Show all versions of huaweicloud-dws-jdbc Show documentation
Data Warehouse Service JDBC driver
???? 2"
?? ?? ?? ??? ?? ???
? ?? ?? ??
??
??
?? ?? ??
????
??
?????
?? ?? ??
??
?? ?? ??
??
?? ?? ?? ?? ?? ?? ?? ?? ? ? ? ? ?
?
?
? ? ? ?
? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?! ?" ?# ?$ ?% ?& ?' ?()
*+
T, ?-.
X/0
X12
X34
56
?7
X89
?:;<=
X>?@A
XB
XC
DE
?F
?G
?H
?IJK
LM NO
rP ?Q
?R
STU
VW
X
Y:Z
|[
?\] ?
?^
|_ ?
S` ? ? ? ?
ab ? ?
?c
|d
efg
?h
?i
?j
?k
?l
?mn
??o
?p
?q
?rs
?t
?uv
?w
?x ?y
z{
z| ?}
~
~| ???
????
Y????
????? InnerClasses LOGGER Ljava/util/logging/Logger;
serverName Ljava/lang/String; databaseName user password
portNumber I allowEncodingChanges Z characterEncoding connectionExtraInfo
properties Ljava/util/Properties; ()V Code LineNumberTable LocalVariableTable this )Lorg/postgresql/ds/common/BaseDataSource; getAllowEncodingChanges ()Z setAllowEncodingChanges (Z)V allow getCharacterEncoding ()Ljava/lang/String; setCharacterEncoding (Ljava/lang/String;)V encode
getConnection ()Ljava/sql/Connection;
Exceptions ;(Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection; con Ljava/sql/Connection; e Ljava/sql/SQLException;
StackMapTable??g? getLogWriter ()Ljava/io/PrintWriter; setLogWriter (Ljava/io/PrintWriter;)V printWriter Ljava/io/PrintWriter;
getServerName
setServerName getDatabaseName setDatabaseName getDescription getUser setUser getPassword setPassword
getPortNumber ()I
setPortNumber (I)V getLoginTimeout setLoginTimeout loginTimeout getConnectTimeout setConnectTimeout connectTimeout getProtocolVersion setProtocolVersion protocolVersion getReceiveBufferSize setReceiveBufferSize nbytes getSendBufferSize setSendBufferSize setPrepareThreshold count getPrepareThreshold getPreparedStatementCacheQueries setPreparedStatementCacheQueries cacheSize getPreparedStatementCacheSizeMiB setPreparedStatementCacheSizeMiB getDatabaseMetadataCacheFields setDatabaseMetadataCacheFields !getDatabaseMetadataCacheFieldsMiB !setDatabaseMetadataCacheFieldsMiB setDefaultRowFetchSize fetchSize getDefaultRowFetchSize setUnknownLength
unknownLength getUnknownLength setSocketTimeout seconds getSocketTimeout setCancelSignalTimeout getCancelSignalTimeout setSsl enabled getSsl
setSslfactory classname
getSslfactory
getSslMode
setSslMode mode getSslFactoryArg setSslFactoryArg arg getSslHostnameVerifier setSslHostnameVerifier className
getSslCert
setSslCert file getSslKey setSslKey getSslRootCert setSslRootCert getSslPassword setSslPassword getSslPasswordCallback setSslPasswordCallback setApplicationName applicationName getApplicationName setTargetServerType targetServerType getTargetServerType setLoadBalanceHosts loadBalanceHosts getLoadBalanceHosts setHostRecheckSeconds hostRecheckSeconds getHostRecheckSeconds setTcpKeepAlive getTcpKeepAlive setBinaryTransfer getBinaryTransfer setBinaryTransferEnable oidList getBinaryTransferEnable setBinaryTransferDisable getBinaryTransferDisable
getStringType
setStringType
stringType isColumnSanitiserDisabled getDisableColumnSanitiser setDisableColumnSanitiser disableColumnSanitiser getCurrentSchema setCurrentSchema
currentSchema getReadOnly setReadOnly readOnly getLogUnclosedConnections setLogUnclosedConnections getAssumeMinServerVersion setAssumeMinServerVersion
minVersion getJaasApplicationName setJaasApplicationName name getJaasLogin setJaasLogin doLogin getKerberosServerName setKerberosServerName getUseSpNego setUseSpNego use getGssLib setGssLib lib getSspiServiceClass setSspiServiceClass serviceClass getSocketFactory setSocketFactory socketFactoryClassName getSocketFactoryArg setSocketFactoryArg socketFactoryArg setReplication replication getReplication getLoggerLevel setLoggerLevel loggerLevel
getLoggerFile exprProps *Lorg/postgresql/util/ExpressionProperties;
setLoggerFile
loggerFile setConnectionExtraInfo getConnectionExtraInfo getUrl property Lorg/postgresql/PGProperty; url Ljava/lang/StringBuilder; query.?? getURL setUrl p? setURL getProperty &(Ljava/lang/String;)Ljava/lang/String;
pgProperty setProperty '(Ljava/lang/String;Ljava/lang/String;)V value /(Lorg/postgresql/PGProperty;)Ljava/lang/String; 0(Lorg/postgresql/PGProperty;Ljava/lang/String;)V !Ljava/lang/NumberFormatException;U createReference ()Ljavax/naming/Reference; getReference ref Ljavax/naming/Reference;W? setFromReference (Ljavax/naming/Reference;)V port getReferenceProperty >(Ljavax/naming/Reference;Ljava/lang/String;)Ljava/lang/String; propertyName addr Ljavax/naming/RefAddr;? writeBaseObject (Ljava/io/ObjectOutputStream;)V out Ljava/io/ObjectOutputStream;? readBaseObject (Ljava/io/ObjectInputStream;)V in Ljava/io/ObjectInputStream; initializeFrom ,(Lorg/postgresql/ds/common/BaseDataSource;)V source baos Ljava/io/ByteArrayOutputStream; oos bais Ljava/io/ByteArrayInputStream; ois getPreferQueryMode '()Lorg/postgresql/jdbc/PreferQueryMode; setPreferQueryMode ((Lorg/postgresql/jdbc/PreferQueryMode;)V preferQueryMode %Lorg/postgresql/jdbc/PreferQueryMode; getAutosave ()Lorg/postgresql/jdbc/AutoSave; setAutosave !(Lorg/postgresql/jdbc/AutoSave;)V autoSave Lorg/postgresql/jdbc/AutoSave; getReWriteBatchedInserts setReWriteBatchedInserts reWrite getParentLogger ()Ljava/util/logging/Logger; "Ljava/lang/ClassNotFoundException;?
SourceFile BaseDataSource.java ? ? localhost ? ? ? ? ? ? UTF8 ? ? ? ? java/util/Properties ? ? ? ? ? ? ? ?? ?? ?? ? ??????? Created a {0} for {1} at {2} java/lang/Object ? ??? java/sql/SQLException *Failed to create a {0} for {1} at {2}: {3} ?? ? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????? (org/postgresql/util/ExpressionProperties??? ???? java/lang/StringBuilder ? ? jdbc:postgresql://?? :?? /? ????? ? &? ? = &binaryTransfer=true &allowEncodingChanges=?? &characterEncoding= &connectionExtraInfo= ???? ??????? ????? !org/postgresql/util/PSQLException Unsupported property name: {0}?????? ????? ???? java/lang/NumberFormatException?? javax/naming/Reference??? (org/postgresql/ds/common/PGObjectFactory ? ?? javax/naming/StringRefAddr ???????? java/lang/String
? ?
? ? java/io/ByteArrayOutputStream java/io/ObjectOutputStream ??? ? java/io/ByteArrayInputStream ? java/io/ObjectInputStream ????? ??? org.postgresql 'org/postgresql/ds/common/BaseDataSource org.postgresql.Driver? java/lang/ClassNotFoundException java/lang/IllegalStateException ?BaseDataSource is unable to load org.postgresql.Driver. Please check if you have proper PostgreSQL JDBC Driver jar on the classpath ?! javax/sql/CommonDataSource javax/naming/Referenceable )org/postgresql/ds/common/BaseDataSource$1 java/sql/Connection [Lorg/postgresql/PGProperty; org/postgresql/PGProperty javax/naming/NamingException javax/naming/RefAddr java/io/IOException java/sql/DriverManager M(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection; java/util/logging/Level FINE Ljava/util/logging/Level; java/util/logging/Logger
isLoggable (Ljava/util/logging/Level;)Z log A(Ljava/util/logging/Level;Ljava/lang/String;[Ljava/lang/Object;)V equals (Ljava/lang/Object;)Z
LOGIN_TIMEOUT
getIntNoCheck (Ljava/util/Properties;)I set (Ljava/util/Properties;I)V CONNECT_TIMEOUT PROTOCOL_VERSION isPresent (Ljava/util/Properties;)Z +(Ljava/util/Properties;Ljava/lang/String;)V RECEIVE_BUFFER_SIZE SEND_BUFFER_SIZE PREPARE_THRESHOLD PREPARED_STATEMENT_CACHE_QUERIES !PREPARED_STATEMENT_CACHE_SIZE_MIB DATABASE_METADATA_CACHE_FIELDS "DATABASE_METADATA_CACHE_FIELDS_MIB DEFAULT_ROW_FETCH_SIZE UNKNOWN_LENGTH SOCKET_TIMEOUT CANCEL_SIGNAL_TIMEOUT SSL (Ljava/util/Properties;Z)V
getBoolean get *(Ljava/util/Properties;)Ljava/lang/String; SSL_FACTORY SSL_MODE SSL_FACTORY_ARG SSL_HOSTNAME_VERIFIER SSL_CERT SSL_KEY
SSL_ROOT_CERT SSL_PASSWORD SSL_PASSWORD_CALLBACK APPLICATION_NAME TARGET_SERVER_TYPE LOAD_BALANCE_HOSTS HOST_RECHECK_SECONDS TCP_KEEP_ALIVE BINARY_TRANSFER BINARY_TRANSFER_ENABLE BINARY_TRANSFER_DISABLE STRING_TYPE DISABLE_COLUMN_SANITISER CURRENT_SCHEMA READ_ONLY LOG_UNCLOSED_CONNECTIONS ASSUME_MIN_SERVER_VERSION JAAS_APPLICATION_NAME
JAAS_LOGIN KERBEROS_SERVER_NAME
USE_SPNEGO GSS_LIB SSPI_SERVICE_CLASS SOCKET_FACTORY SOCKET_FACTORY_ARG REPLICATION LOGGER_LEVEL java/lang/System
getProperties ()Ljava/util/Properties; ([Ljava/util/Properties;)V LOGGER_FILE append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; org/postgresql/util/URLCoder values ()[Lorg/postgresql/PGProperty; length getName (Z)Ljava/lang/StringBuilder; 3(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder; toString org/postgresql/Driver parseURL @(Ljava/lang/String;Ljava/util/Properties;)Ljava/util/Properties; forName /(Ljava/lang/String;)Lorg/postgresql/PGProperty; org/postgresql/util/GT tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; org/postgresql/util/PSQLState INVALID_PARAMETER_VALUE Lorg/postgresql/util/PSQLState; 4(Ljava/lang/String;Lorg/postgresql/util/PSQLState;)V $$SwitchMap$org$postgresql$PGProperty [I ordinal java/lang/Integer parseInt (Ljava/lang/String;)I 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; getClass ()Ljava/lang/Class; java/lang/Class 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V add (Ljavax/naming/RefAddr;)V (I)Ljava/lang/String; java/lang/Boolean (Z)Ljava/lang/String; *(Ljava/lang/String;)Ljavax/naming/RefAddr;
getContent ()Ljava/lang/Object; writeObject (Ljava/lang/Object;)V writeInt writeBoolean
readObject readInt readBoolean (Ljava/io/OutputStream;)V close toByteArray ()[B ([B)V (Ljava/io/InputStream;)V PREFER_QUERY_MODE #org/postgresql/jdbc/PreferQueryMode of 9(Ljava/lang/String;)Lorg/postgresql/jdbc/PreferQueryMode; AUTOSAVE org/postgresql/jdbc/AutoSave 2(Ljava/lang/String;)Lorg/postgresql/jdbc/AutoSave; REWRITE_BATCHED_INSERTS getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger; %(Ljava/lang/String;)Ljava/lang/Class; *(Ljava/lang/String;Ljava/lang/Throwable;)V! ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? m +*? *? *? *? *? *? *? Y?
? ? ? / 4
8 9 : ; > ? + ? ? ? ? ? / *? ? ? S ? ? ? ? ? ? > *? ? ?
Z [ ? ? ? ? ? ? ? ? / *? ? ? a ? ? ? ? ? ? > *+? ? ?
h i ? ? ? ? ? ? ? ? 7
**? *?
? ? ? t ?
? ? ? ? ? ? ? a*? +,? N? ? ? ? $? ? ? Y*? SY+SY*? S? -?N? ? ? Y*? SY+SY*? SY-S? -? 8 9 ? &