All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huawei.opengauss.jdbc.xa.PGXAConnection.class Maven / Gradle / Ivy

The newest version!
????4?+com/huawei/opengauss/jdbc/xa/PGXAConnection/com/huawei/opengauss/jdbc/ds/PGPooledConnectionjavax/sql/XAConnectionjavax/transaction/xa/XAResourcePGXAConnection.java1com/huawei/opengauss/jdbc/xa/PGXAConnection$State
State=com/huawei/opengauss/jdbc/xa/PGXAConnection$ConnectionHandler
ConnectionHandlerLOGGER#Lcom/huawei/opengauss/jdbc/log/Log;conn/Lcom/huawei/opengauss/jdbc/core/BaseConnection;
currentXidLjavax/transaction/xa/Xid;state3Lcom/huawei/opengauss/jdbc/xa/PGXAConnection$State;preparedXidcommittedOrRolledBackZlocalAutoCommitModedebug(Ljava/lang/String;)V	!com/huawei/opengauss/jdbc/log/Log isTraceEnabled()Z"#!$java/lang/StringBuilder&()V()
'*XAResource ,append-(Ljava/lang/String;)Ljava/lang/StringBuilder;./
'0java/lang/Object2hashCode()I45
36java/lang/Integer8toHexString(I)Ljava/lang/String;:;
9<: >toString()Ljava/lang/String;@A
'Btrace(Ljava/lang/Object;)VDE!Fthis-Lcom/huawei/opengauss/jdbc/xa/PGXAConnection;sLjava/lang/String;2(Lcom/huawei/opengauss/jdbc/core/BaseConnection;)Vjava/sql/SQLExceptionM(Ljava/sql/Connection;ZZ)V(O
P	R	TIDLEV	W	Y
getConnection()Ljava/sql/Connection;[\
]java/sql/Connection_
setAutoCommit(Z)Vab`cE(Lcom/huawei/opengauss/jdbc/xa/PGXAConnection;Ljava/sql/Connection;)V(e
fgetClass()Ljava/lang/Class;hi
3jjava/lang/ClasslgetClassLoader()Ljava/lang/ClassLoader;no
mp&com/huawei/opengauss/jdbc/PGConnectionrjava/lang/reflect/ProxytnewProxyInstanceb(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;vw
uxconnectLjava/sql/Connection;handler?Lcom/huawei/opengauss/jdbc/xa/PGXAConnection$ConnectionHandler;
getXAResource#()Ljavax/transaction/xa/XAResource;start(Ljavax/transaction/xa/Xid;I)V javax/transaction/xa/XAException?starting transaction xid = ?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;.?
'?
? *com/huawei/opengauss/jdbc/xa/PGXAException?Invalid flags {0}?valueOf(I)Ljava/lang/Integer;??
9?!com/huawei/opengauss/jdbc/util/GT?tr9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;??
??(Ljava/lang/String;I)V(?
??xid must not be null?ACTIVE?	?+Connection is busy with another transaction?suspend/resume not implemented?ENDED?	??Invalid protocol state requested. Attempted transaction interleaving is not supported. xid={0}, currentXid={1}, state={2}, flags={3}?	?equals(Ljava/lang/Object;)Z??
3?-com/huawei/opengauss/jdbc/core/BaseConnection?
getAutoCommit?#???cError disabling autocommit?+(Ljava/lang/String;Ljava/lang/Throwable;I)V(?
??	?	?exLjava/sql/SQLException;xidflagsIendending transaction xid = ? mtried to call end without corresponding start call. state={0}, start xid={1}, currentXid={2}, preparedXid={3}?prepare(Ljavax/transaction/xa/Xid;)Ipreparing transaction xid = ?Prepare xid ?i but current connection is not attached to a transaction while it was prepared in past with prepared xid ?MPreparing already prepared transaction, the prepared xid {0}, prepare xid={1}?CCurrent connection does not have an associated xid. prepare xid={0}?Error to prepare xid ?0, the current connection already bound with xid ?Not implemented: Prepare must be issued using the same connection that started the transaction. currentXid={0}, prepare xid={1}?5Prepare called before end. prepare xid={0}, state={1}?)com/huawei/opengauss/jdbc/xa/RecoveredXid?xidToString.(Ljavax/transaction/xa/Xid;)Ljava/lang/String;??
??createStatement()Ljava/sql/Statement;????PREPARE TRANSACTION '?'?java/sql/Statement?
executeUpdate(Ljava/lang/String;)I????close?)??javax/transaction/xa/Xid?java/lang/String?java/lang/Throwable?,Error preparing transaction. prepare xid={0}?mapSQLStateToXAErrorCode(Ljava/sql/SQLException;)I
stmtLjava/sql/Statement;recover(I)[Ljavax/transaction/xa/Xid;??ESELECT gid FROM pg_prepared_xacts where database = current_database()executeQuery((Ljava/lang/String;)Ljava/sql/ResultSet;?java/util/LinkedList
*java/sql/ResultSetnext#	getString;stringToXid.(Ljava/lang/String;)Ljavax/transaction/xa/Xid;
?add!?
"?size%5
&toArray(([Ljava/lang/Object;)[Ljava/lang/Object;()
*javax/transaction/xa/Xid;,Error during recover.recoveredXidrsLjava/sql/ResultSet;l2Ljava/util/LinkedList;Ljava/util/LinkedList;flagrollback(Ljavax/transaction/xa/Xid;)Vrolling back xid = 97)?;ROLLBACK PREPARED '=ZError rolling back prepared transaction. rollback xid={0}, preparedXid={1}, currentXid={2}?commit(Ljavax/transaction/xa/Xid;Z)Vcommitting xid = C
 (one phase) E (two phase)GcommitOnePhaseI8
JcommitPreparedL8
MonePhaseLOne-phase commit called for xid {0} but connection was prepared with xid {1}PdNot implemented: one-phase commit must be issued using the same connection that was used to start itRAOne-phase commit with unknown xid. commit xid={0}, currentXid={1}T3commit called before end. commit xid={0}, state={1}VA)?X-Error during one-phase commit. commit xid={0}ZgetTransactionState3()Lcom/huawei/opengauss/jdbc/core/TransactionState;\]?^/com/huawei/opengauss/jdbc/core/TransactionState`1Lcom/huawei/opengauss/jdbc/core/TransactionState;Vb	ac?Not implemented: 2nd phase commit must be issued using an idle connection. commit xid={0}, currentXid={1}, state={2], transactionState={3}eCOMMIT PREPARED 'g(com/huawei/opengauss/jdbc/util/PSQLStateiUNDEFINED_OBJECT*Lcom/huawei/opengauss/jdbc/util/PSQLState;kl	jmgetStateoA
jpgetSQLStaterA
Ns
??committing xid v& while the connection prepared xid is x6, but the connection was already committed/rolled-backz|isConnectionError(Ljava/lang/String;)Z~
j?*commit connection failure (sql error code ?!), reconnection could be expected?VError committing prepared transaction. commit xid={0}, preparedXid={1}, currentXid={2}?	errorCodeisSameRM$(Ljavax/transaction/xa/XAResource;)Zxares!Ljavax/transaction/xa/XAResource;forget7Heuristic commit/rollback not supported. forget xid={0}?getTransactionTimeoutsetTransactionTimeout(I)Zseconds(isPostgreSQLIntegrityConstraintViolation(Ljava/sql/SQLException;)Z??
?sqlException,com/huawei/opengauss/jdbc/util/PSQLException?length?5
??23?
startsWith?
??
access$000b(Lcom/huawei/opengauss/jdbc/xa/PGXAConnection;)Lcom/huawei/opengauss/jdbc/xa/PGXAConnection$State;x0getName?A
m?$com/huawei/opengauss/jdbc/log/Logger?	getLogger7(Ljava/lang/String;)Lcom/huawei/opengauss/jdbc/log/Log;??
??CodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsLocalVariableTypeTable
SourceFileInnerClasses!
?{6??%?-??'Y?+-?1*?7?=?1??1+?1?C?G??6HI6JK?CD5F?5(L?]*+?Q*?S*+?U*?X?Z??HI?I@JKL?N[\??=*?^L*?Z?X?
+?d?Y*+?gM*?k?q?mY`SYsS,?y?`?? =HI8z{ |}?SYZa b??`?N~?,*??HI?h???m???%?*?'Y?+??1+???C???)??#????Y??3Y??S??????+???Y??3??????*?Z?????Y??3??????????Y??3????????p*?Z???/??Y??3Y+SY*??SY*?ZSY??S??????+*?????e??Y??3Y+SY*??SY*?ZSY??S??????*?Z???/??Y??3Y+SY*??SY*?ZSY??S???????2**?U???S*?U???N??Y??3??-????*???Z*+??*??*???F]`N?*a???HI??????? ??"?2?L?P?c?m????????????????????????B?F?S?]?`?a?u?|????????
");65]N??????Dz?%?*?'Y?+ȶ1+???C??ɟ)ʟ#˟??Y??3Y??S??????+???Y??3??????*?Z???*??+???/??Y??3Y*?ZSY+SY*??SY*??S??????ɠ??Y??3??????*???Z?? ?HI??????2	"4NRez???%?&?"++?????????%?*?'Y?+Ѷ1+???C??*???V*???O??%?&*?'Y?+Ӷ1+??ն1*?????C????Y??3Y*??SY+S??????*?????Y??3Y+S??????*??+???O??%?&*?'Y?+۶1+??ݶ1*?????C????Y??3Y*??SY+S??????*?Z?????Y??3Y+S??????*?X?Z**????*??+??M*?U??N-?'Y?+??1,?1?1?C??W-???:-???*?U*?S???M??Y?3Y+S??,*,????5T]]_]&vwN?4+LJK5Bx???HI???r;<"@0A;B^E|G?H?K?L?M?O?S?TWX!Y&\+^5`TbZc]bechdufwgxh?0
";8 ?J????
??N?????	?/
?(?$???Y??3Y??S??????	~????*?U??M,
?N?Y?:-??-?? :??#W???-?$?'???+?-:,???:,???M??Y/?3??,????J?????@??N???N?Hr
0TO12]F35Jd????HI?6??]F34?R{}3?;?@?J?T?]?f?r?w???????????????????13??!? ???
N??78??Ѳ?%?*?'Y?+:?1+???C??*???3*??+???(*?X?Z*??*?U?<*?U*?S???P+??M*?U??*?U??N-?'Y?+>?1,?1?1?C??W-???:-???*???$M??Y@?3Y+SY*??S??,?????s?????#??N?4_HJKs4? ???HI???R??#?5?<?A?J?Z?_?i?s????????????????????"#6?A?????
GN ??AB??\??%?+*?'Y?+D?1+???	F?H?1?C??+???Y??3???????*+?K?*+?N?? \HI\?\O?"??3?7?J?N?V?[??1?'?'??'???I8???+*?????"??YQ?3Y+SY*??S??????*???"*?????YS?3Y+S??????+*?????
*???"??YU?3Y+SY*??S??????*?Z???"??YW?3Y+SY*?ZS??????*?X?Z*??*??*?U?Y*?U*?S??? M??Y[?3Y+S??,*,???????N? ????HI???F??*?8Pb??	?
?????????*%(iN??L8???*?Z?X?*?U?_?d?5??Yf?3Y+SY*??SY*?ZSY*?U?_S??????+??M**?U???S*?U??*?U??N-?'Y?+h?1,?1?1?C??W-??*?U*?S???:-??*?U*?S???*????M?>?n?q,?t?u?[*???+*?????I??%?;*?'Y?+w?1+??y?1*????*???	{?}?1?C???>,?t???2??%?$*?'Y?+??1,?t?1??1?C???>??Y??3Y+SY*??SY*??S??,????q???????N?>PtJKqS?????????HI???z-./<0K4P6]7g8q:?<?=?>?<?=?>???R?@?A?B?C?D?E0H3K=LHMiOlQ?S?j
1?[??????N?%N?6?N'??N'?5?%?????J+*????HI???Z?	@???8?L??Y??3Y+S???????HI??b???5?,??HI?k???6??HI???s?S*+???g????HI???wx{????p%+???+?t???+?t???????%HI%?????$?#@???/*?Z???I?+?)?$???????-?	?@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy