org.postgresql.jdbc.PayByQueryConnection.class Maven / Gradle / Ivy
???? 4h ??
? ???
? ?? ?? ?? ?? ?? ?? ?? ?? ??
?? ?? ?? ??
? ?? ???
?
? ? ? o ? ? ?
? ?
?
# ?!"#$% +
:, ?- ?. ?/0
@1 ?2 ?3
4
5
?6?7?8?9:
J;
J8 ?<
=>
?@
=A
DB
=C
DE
?F
?@
KG
KH
?I
JJK
[LM
]LNO
?P
?Q ?R STU
VW
XYZ
[
\ ]^
?_
?`a
m?
bcNdN8ef
Xg
8
h
?hi
j
kl
m ?no
Jp
qr
s
?tu
vw
xy
??z
?{
??
?|}~???
?? ?? ?? ?8? ??
#?
#????
????
??
?????
????
????
???
??
??
=????
?? ??????
?
?
p??
X??????
??????
p? ????
??
???
??
?
?
??
??
????
?
?
??
X? LOGGER Ljava/util/logging/Logger;
dwsRestClient &Lcom/huawei/dws/pbq/api/DwsRestClient; executor !Lorg/postgresql/core/PbqExecutor;
autoCommit Z setSessionReadOnly !Lorg/postgresql/core/CachedQuery; setSessionNotReadOnly typemap Ljava/util/Map; Signature 7Ljava/util/Map;>; readOnly commitQuery Lorg/postgresql/core/Query;
rollbackQuery info Ljava/util/Properties; savepointId I typeCache Lorg/postgresql/core/TypeInfo; cancelTimer Ljava/util/Timer; autoReConnection batchInsert catalog Ljava/lang/String; disableColumnSanitiser bindStringAsVarchar checkConnectionQuery Ljava/sql/PreparedStatement; timestampUtils $Lorg/postgresql/jdbc/TimestampUtils; autoReConnectCount metadata Ljava/sql/DatabaseMetaData; creatingURL getDwsRestClient (()Lcom/huawei/dws/pbq/api/DwsRestClient; Code LineNumberTable LocalVariableTable this *Lorg/postgresql/jdbc/PayByQueryConnection; [(Lorg/postgresql/util/HostSpec;Ljava/lang/String;Ljava/util/Properties;Ljava/lang/String;)V e 2Lcom/huawei/dws/pbq/api/exception/DwsApiException; hostSpecs Lorg/postgresql/util/HostSpec; url ak sk
securityToken projectId ednpoint batchString
stringType
unknownLength
StackMapTable??
Exceptions cancelQuery ()V getURL ()Ljava/lang/String; getPreferQueryMode '()Lorg/postgresql/jdbc/PreferQueryMode; execSQLQuery ((Ljava/lang/String;)Ljava/sql/ResultSet; sql statement Ljava/sql/Statement; resultSet Ljava/sql/ResultSet;
execSQLUpdate (Ljava/lang/String;)V $(Lorg/postgresql/core/CachedQuery;)V query stmt "Lorg/postgresql/jdbc/PbqStatement; getTypeInfo ()Lorg/postgresql/core/TypeInfo; haveMinimumServerVersion (Lorg/postgresql/core/Version;)Z ver Lorg/postgresql/core/Version; getTimestampUtils &()Lorg/postgresql/jdbc/TimestampUtils; getStringVarcharFlag ()Z isColumnSanitiserDisabled getTimer ()Ljava/util/Timer; releaseTimer timerTask Ljava/util/TimerTask;? addTimerTask (Ljava/util/TimerTask;J)V milliSeconds J timer purgeTimerTasks? createQuery J(Ljava/lang/String;ZZ[Ljava/lang/String;)Lorg/postgresql/core/CachedQuery; escapeProcessing isParameterized columnNames [Ljava/lang/String; createStatement ()Ljava/sql/Statement; prepareStatement 0(Ljava/lang/String;)Ljava/sql/PreparedStatement; prepareCall 0(Ljava/lang/String;)Ljava/sql/CallableStatement; nativeSQL &(Ljava/lang/String;)Ljava/lang/String; cachedQuery
setAutoCommit (Z)V
getAutoCommit commit executeTransactionCommand (Lorg/postgresql/core/Query;)V Ljava/sql/SQLException; rollback close isClosed checkClosed i reConnectCount pbqExecutor ex Ljava/lang/Throwable;? getMetaData ()Ljava/sql/DatabaseMetaData; setReadOnly?
isReadOnly
setCatalog
getCatalog setTransactionIsolation (I)V level isolationLevelName isolationLevelSQL getIsolationLevelName (I)Ljava/lang/String; getTransactionIsolation ()I rs getWarnings ()Ljava/sql/SQLWarning;
clearWarnings (II)Ljava/sql/Statement;
resultSetType resultSetConcurrency 2(Ljava/lang/String;II)Ljava/sql/PreparedStatement; 2(Ljava/lang/String;II)Ljava/sql/CallableStatement;
getTypeMap ()Ljava/util/Map; 9()Ljava/util/Map;>;
setTypeMap (Ljava/util/Map;)V map LocalVariableTypeTable :(Ljava/util/Map;>;)V setHoldability holdability getHoldability setSavepoint ()Ljava/sql/Savepoint; pgName savepoint #Lorg/postgresql/jdbc/PSQLSavepoint; ((Ljava/lang/String;)Ljava/sql/Savepoint; name (Ljava/sql/Savepoint;)V Ljava/sql/Savepoint; pgSavepoint releaseSavepoint (III)Ljava/sql/Statement; resultSetHoldability 3(Ljava/lang/String;III)Ljava/sql/PreparedStatement; 3(Ljava/lang/String;III)Ljava/sql/CallableStatement; 1(Ljava/lang/String;I)Ljava/sql/PreparedStatement; autoGeneratedKeys 2(Ljava/lang/String;[I)Ljava/sql/PreparedStatement;
columnIndexes [I C(Ljava/lang/String;[Ljava/lang/String;)Ljava/sql/PreparedStatement;
createClob ()Ljava/sql/Clob;
createBlob ()Ljava/sql/Blob; createNClob ()Ljava/sql/NClob; createSQLXML ()Ljava/sql/SQLXML; isValid (I)Z timeout
setClientInfo '(Ljava/lang/String;Ljava/lang/String;)V value? (Ljava/util/Properties;)V
properties
getClientInfo ()Ljava/util/Properties;
createArrayOf 7(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array; typeName elements [Ljava/lang/Object; createStruct 8(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Struct;
attributes setSchema sb Ljava/lang/StringBuilder; schema? getSchema abort "(Ljava/util/concurrent/Executor;)V Ljava/util/concurrent/Executor; setNetworkTimeout #(Ljava/util/concurrent/Executor;I)V milliseconds getNetworkTimeout unwrap %(Ljava/lang/Class;)Ljava/lang/Object; iface Ljava/lang/Class; Ljava/lang/Class; 1(Ljava/lang/Class;)TT; isWrapperFor (Ljava/lang/Class;)Z Ljava/lang/Class<*>; (Ljava/lang/Class<*>;)Z getExecutor #()Lorg/postgresql/core/PbqExecutor; borrowQuery 5(Ljava/lang/String;)Lorg/postgresql/core/CachedQuery; borrowCallableQuery
isBatchInsert escapeString str getStandardConformingStrings encodeString (Ljava/lang/String;)[B ioe Ljava/io/IOException; lambda$abort$1 lambda$new$0 ()Ljava/util/TimeZone;
SourceFile PayByQueryConnection.java ? ?" ? ? java/util/HashMap ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?????????????$ ? ? ? $com/huawei/dws/pbq/api/DwsRestClient? org/postgresql/core/PbqExecutor? ? ? 0com/huawei/dws/pbq/api/exception/DwsApiException !org/postgresql/util/PSQLException *Create pay by query connection failed: {0} java/lang/Object??????? 4SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY java/lang/StringLM ? ? 5SET SESSION CHARACTERISTICS AS TRANSACTION READ WRITE ? ? COMMIT1 ? ? ? ROLLBACK ? ????????? batchMode?Y OFF?? ON?? unspecified varchar /Unsupported value for stringtype parameter: {0} "org/postgresql/jdbc/TimestampUtils BootstrapMethods??????????? !org/postgresql/jdbc/TypeInfoCache? ? ? ? ??"%&RS?(c"?? org/postgresql/jdbc/PbqStatement?? ? ? ?@=
A"F
{e" (org/postgresql/jdbc/PbqPreparedStatement (org/postgresql/jdbc/PbqCallableStatement$^".0 ? ? setAutoCommit = {0} )Cannot commit when autoCommit is enabled.? _`?? -org/postgresql/jdbc/PbqStatementResultHandler?! java/sql/SQLException"# +Cannot rollback when autoCommit is enabled. 1Rollback requested but no transaction in progress$d= try reconnection has been fail.%?& This connection has been closed.'? 'org/postgresql/jdbc/PbqDatabaseMetadata setReadOnly = {0}($ ICannot change transaction isolation level in the middle of a transaction.)?xy .Transaction isolation level {0} not supported.*+,? java/lang/StringBuilder ;SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL -../ setTransactionIsolation = {0} READ COMMITTED SERIALIZABLE READ UNCOMMITTED REPEATABLE READ SHOW TRANSACTION ISOLATION LEVEL'(/=0y java/sql/Connection1234567 java/sql/ResultSet +Unknown ResultSet holdability setting: {0}. setHoldability = {0}]= 1Cannot establish a savepoint in auto-commit mode. !org/postgresql/jdbc/PSQLSavepointt8$
SAVEPOINT 9:/ ROLLBACK TO SAVEPOINT RELEASE SAVEPOINT ;" Returning keys is not supported. org/postgresql/core/types/PGClob org/postgresql/core/types/PGBlob<=
createNClob()>? createSQLXML() Invalid timeout ({0}<0). select 1;TU ? @At9{B?C$D$ Validating connection.E getClientInfo(String, Object[]) createArrayOf(String, Object[]) createStruct(String, Object[]) "SET SESSION search_path TO DEFAULT SET SESSION search_path TO 'FGH ' setSchema = {0} "select pg_catalog.current_schema() executor is null"IJKL?M #setNetworkTimeout is not supported.NO?PQ Cannot unwrap to R$?????= UTF-8STUV? java/io/IOException 3Unable to translate data into the desired encoding.W??"X? (org/postgresql/jdbc/PayByQueryConnectionYZ org/postgresql/util/HostSpec java/util/Properties java/util/TimerTask java/util/Timer java/lang/Throwable org/postgresql/core/CachedQuery java/sql/SQLClientInfoException java/sql/Statement org/postgresql/PGProperty
ACCESS_KEY_ID Lorg/postgresql/PGProperty; get *(Ljava/util/Properties;)Ljava/lang/String; SECRET_ACCESS_KEY SECURITY_TOKEN
PROJECT_ID toString K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V c(Lcom/huawei/dws/pbq/api/DwsRestClient;Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;)V 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 AUTO_RECONNECT
getBoolean (Ljava/util/Properties;)Z RECONNECT_COUNT getInt (Ljava/util/Properties;)I getProperty equalsIgnoreCase (Ljava/lang/String;)Z STRING_TYPE
[\ ()Ljava/lang/Object;
?] J(Lorg/postgresql/jdbc/PayByQueryConnection;)Lorg/postgresql/core/Provider; "(ZLorg/postgresql/core/Provider;)V DISABLE_COLUMN_SANITISER UNKNOWN_LENGTH (Ljava/sql/Connection;I)V sendQueryCancel executeQuery execute $(Lorg/postgresql/core/CachedQuery;)Z org/postgresql/Driver getSharedTimer #()Lorg/postgresql/util/SharedTimer; org/postgresql/util/SharedTimer getTimerTask ()Ljava/util/TimerTask; cancel getTimerIsCalled -()Ljava/util/concurrent/atomic/AtomicBoolean; )java/util/concurrent/atomic/AtomicBoolean
compareAndSet (ZZ)Z schedule purge -(Lorg/postgresql/jdbc/PayByQueryConnection;)V ?(Lorg/postgresql/jdbc/PayByQueryConnection;Ljava/lang/String;)V org/postgresql/core/Query getNativeSql java/util/logging/Level FINE Ljava/util/logging/Level; java/lang/Boolean valueOf (Z)Ljava/lang/Boolean; java/util/logging/Logger log @(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V NO_ACTIVE_SQL_TRANSACTION getTransactionState (()Lorg/postgresql/core/TransactionState; $org/postgresql/core/TransactionState IDLE &Lorg/postgresql/core/TransactionState; ?(Lorg/postgresql/core/Query;Lorg/postgresql/core/ParameterList;Lorg/postgresql/jdbc/PbqStatementResultHandler;Ljava/lang/Integer;)V
getSubqueries ()[Lorg/postgresql/core/Query; .(Ljava/util/logging/Level;Ljava/lang/String;)V CONNECTION_FAILURE I(Ljava/lang/String;Lorg/postgresql/util/PSQLState;Ljava/lang/Throwable;)V CONNECTION_DOES_NOT_EXIST getDatabase ACTIVE_SQL_TRANSACTION java/lang/Integer (I)Ljava/lang/Integer; NOT_IMPLEMENTED append -(Ljava/lang/String;)Ljava/lang/StringBuilder; next getString java/util/Locale US Ljava/util/Locale; toUpperCase &(Ljava/util/Locale;)Ljava/lang/String; equals (Ljava/lang/Object;)Z getPGName
executeUpdate (Ljava/lang/String;)I
invalidate getClass ()Ljava/lang/Class; notImplemented O(Ljava/lang/Class;Ljava/lang/String;)Ljava/sql/SQLFeatureNotSupportedException; java/sql/PreparedStatement setQueryTimeout IN_FAILED_SQL_TRANSACTION getState getSQLState C(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V org/postgresql/core/Utils
escapeLiteral G(Ljava/lang/StringBuilder;Ljava/lang/String;Z)Ljava/lang/StringBuilder;
?^ run @(Lorg/postgresql/jdbc/PayByQueryConnection;)Ljava/lang/Runnable; java/util/concurrent/Executor (Ljava/lang/Runnable;)V java/lang/Class isAssignableFrom cast &(Ljava/lang/Object;)Ljava/lang/Object; getName org/postgresql/core/Encoding getJVMEncoding 2(Ljava/lang/String;)Lorg/postgresql/core/Encoding; encode
DATA_ERROR getTimeZone getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger;_`d???" "java/lang/invoke/LambdaMetafactory metafactoryf Lookup InnerClasses ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;g %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? U / *? ?
W
?
?*? *? *? Y? ? *? *? *? *?
*? *? *?
? -? :? -? :? -? :? -? :+? : *? *,? *? Y ? ? *? Y*? ,-? ? ? :
? Y? Y
S? ? ? !?**"? #? $? %**&? #? $? '**(? #? $? )? ***+? #? $? )? ,? --? .? *? *? /-? 0?
-1? 2:
? *?
? $
3? 4? *?
?
5? 4? *?
? 6-? :? @7? 4? *? ? 38? 4? *? ? !? Y9? YS? ? ? !?*? *? :Y*? ; ?