![JAR search and dependency download from the Maven repository](/logo.png)
com.huawei.opengauss.jdbc.xa.PGXAConnection.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opengaussjdbc Show documentation
Show all versions of opengaussjdbc Show documentation
HuaweiCloud JDBC for GaussDB
The newest version!
???? 4? +com/huawei/opengauss/jdbc/xa/PGXAConnection /com/huawei/opengauss/jdbc/ds/PGPooledConnection javax/sql/XAConnection javax/transaction/xa/XAResource PGXAConnection.java 1com/huawei/opengauss/jdbc/xa/PGXAConnection$State
State =com/huawei/opengauss/jdbc/xa/PGXAConnection$ConnectionHandler
ConnectionHandler LOGGER #Lcom/huawei/opengauss/jdbc/log/Log; conn /Lcom/huawei/opengauss/jdbc/core/BaseConnection;
currentXid Ljavax/transaction/xa/Xid; state 3Lcom/huawei/opengauss/jdbc/xa/PGXAConnection$State; preparedXid committedOrRolledBack Z localAutoCommitMode debug (Ljava/lang/String;)V !com/huawei/opengauss/jdbc/log/Log isTraceEnabled ()Z " # ! $ java/lang/StringBuilder & ()V ( )
' * XAResource , append -(Ljava/lang/String;)Ljava/lang/StringBuilder; . /
' 0 java/lang/Object 2 hashCode ()I 4 5
3 6 java/lang/Integer 8 toHexString (I)Ljava/lang/String; : ;
9 < : > toString ()Ljava/lang/String; @ A
' B trace (Ljava/lang/Object;)V D E ! F this -Lcom/huawei/opengauss/jdbc/xa/PGXAConnection; s Ljava/lang/String; 2(Lcom/huawei/opengauss/jdbc/core/BaseConnection;)V java/sql/SQLException M (Ljava/sql/Connection;ZZ)V ( O
P R T IDLE V W Y
getConnection ()Ljava/sql/Connection; [ \
] java/sql/Connection _
setAutoCommit (Z)V a b ` c E(Lcom/huawei/opengauss/jdbc/xa/PGXAConnection;Ljava/sql/Connection;)V ( e
f getClass ()Ljava/lang/Class; h i
3 j java/lang/Class l getClassLoader ()Ljava/lang/ClassLoader; n o
m p &com/huawei/opengauss/jdbc/PGConnection r java/lang/reflect/Proxy t newProxyInstance b(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object; v w
u x connect Ljava/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 ? tr 9(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 ? # ? ? ? c Error disabling autocommit ? +(Ljava/lang/String;Ljava/lang/Throwable;I)V ( ?
? ? ? ? ex Ljava/sql/SQLException; xid flags I end ending transaction xid = ? mtried to call end without corresponding start call. state={0}, start xid={1}, currentXid={2}, preparedXid={3} ? prepare (Ljavax/transaction/xa/Xid;)I preparing 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
stmt Ljava/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/ResultSet next # getString ; stringToXid .(Ljava/lang/String;)Ljavax/transaction/xa/Xid;
? add! ?
" ? size% 5
& toArray (([Ljava/lang/Object;)[Ljava/lang/Object;()
* [Ljavax/transaction/xa/Xid;, Error during recover. recoveredXid rs Ljava/sql/ResultSet; l 2Ljava/util/LinkedList; Ljava/util/LinkedList; flag rollback (Ljavax/transaction/xa/Xid;)V rolling back xid = 97 ) ?; ROLLBACK PREPARED '= ZError rolling back prepared transaction. rollback xid={0}, preparedXid={1}, currentXid={2}? commit (Ljavax/transaction/xa/Xid;Z)V committing xid = C
(one phase) E (two phase)G commitOnePhaseI8
J commitPreparedL8
M onePhase LOne-phase commit called for xid {0} but connection was prepared with xid {1}P dNot implemented: one-phase commit must be issued using the same connection that was used to start itR AOne-phase commit with unknown xid. commit xid={0}, currentXid={1}T 3commit called before end. commit xid={0}, state={1}VA ) ?X -Error during one-phase commit. commit xid={0}Z getTransactionState 3()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}e COMMIT PREPARED 'g (com/huawei/opengauss/jdbc/util/PSQLStatei UNDEFINED_OBJECT *Lcom/huawei/opengauss/jdbc/util/PSQLState;kl jm getStateo A
jp getSQLStater A
Ns
? ? committing xid v & while the connection prepared xid is x 6, 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}? errorCode isSameRM $(Ljavax/transaction/xa/XAResource;)Z xares !Ljavax/transaction/xa/XAResource; forget 7Heuristic commit/rollback not supported. forget xid={0}? getTransactionTimeout setTransactionTimeout (I)Z seconds (isPostgreSQLIntegrityConstraintViolation (Ljava/sql/SQLException;)Z??
? sqlException ,com/huawei/opengauss/jdbc/util/PSQLException? length? 5
?? 23?
startsWith?
??
access$000 b(Lcom/huawei/opengauss/jdbc/xa/PGXAConnection;)Lcom/huawei/opengauss/jdbc/xa/PGXAConnection$State; x0 getName? A
m? $com/huawei/opengauss/jdbc/log/Logger? getLogger 7(Ljava/lang/String;)Lcom/huawei/opengauss/jdbc/log/Log;??
?? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions LocalVariableTypeTable
SourceFile InnerClasses !
? { 6? ? % ? -? ? 'Y? +-? 1*? 7? =? 1?? 1+? 1? C? G ? ? 6 H I 6 J K ? C D 5 F? 5 ( L ? ] *+? Q*? S*+? U*? X? Z? ? H I ? I @ J K L? N [ \ ? ? =*? ^L*? Z? X?
+? d ? Y*+? gM*? k? q? mY`SYsS,? y? `? ? = H I 8 z { | } ? S Y Z a b? ? `? N ~ ? , *? ? H I ? 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 ? ? 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