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

com.huawei.opengauss.jdbc.util.HintNodeName.class Maven / Gradle / Ivy

The newest version!
????46+com/huawei/opengauss/jdbc/util/HintNodeNamejava/lang/ObjectHintNodeName.javaLOGGER#Lcom/huawei/opengauss/jdbc/log/Log;lastUpdatedJMIN_UPDATAED'allNodeLjava/util/List;$Ljava/util/List;specialChar[CjumpChar()V
this-Lcom/huawei/opengauss/jdbc/util/HintNodeName;addNodeNamef(Ljava/lang/String;Ljava/lang/String;Lcom/huawei/opengauss/jdbc/core/QueryExecutor;)Ljava/lang/String;java/sql/SQLExceptionjava/lang/StringisEmpty()Z 
!containsSqlInjectionC(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/core/QueryExecutor;)V#$
%toCharArray()[C'(
),com/huawei/opengauss/jdbc/core/QueryExecutor+addHint;(ILjava/lang/String;[CLjava/lang/String;)Ljava/lang/String;./
0%com/huawei/opengauss/jdbc/core/Parser2parseBlockComment([CI)I45
36parseLineComment85
39isSpecialCharacters(C)Z;<
3=parseDoubleQuotes?5
3@parseSingleQuotes([CIZ)IBC
3DselectFjava/lang/StringBuilderH
IvalueOf(C)Ljava/lang/String;KL
Mappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;OP
IQ(C)Ljava/lang/StringBuilder;OS
ITtoString()Ljava/lang/String;VW
IXequalsIgnoreCase(Ljava/lang/String;)ZZ[
\(I[C)Z;^
_withacrossThisString(I[C)Icd
e	g!com/huawei/opengauss/jdbc/log/Logi
isInfoEnabledk jl8Add a single slice query statement to the SQL statement:n([C)Ljava/lang/String;Kp
qinfo(Ljava/lang/Object;)VstjuiIqueryLjava/lang/String;nodeName
queryExecutor.Lcom/huawei/opengauss/jdbc/core/QueryExecutor;tempSqlisSelectZisSelectStatementparenthesesClose	substring(II)Ljava/lang/String;??
? set(node_name ?) ?(I)Ljava/lang/String;??
?/*+ set(node_name ?) */ ?newSqloffSetsqlChars
tempOffSet;?contains(Ljava/lang/CharSequence;)Z??
?/*?*/?Illegal node name:?warn?tj?,com/huawei/opengauss/jdbc/util/PSQLException?.?!com/huawei/opengauss/jdbc/util/GT?tr9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;??
??(com/huawei/opengauss/jdbc/util/PSQLState?
DATA_ERROR*Lcom/huawei/opengauss/jdbc/util/PSQLState;??	???(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/util/PSQLState;)V?
??
nodeNameCheck?$
?
updateAllNode1(Lcom/huawei/opengauss/jdbc/core/QueryExecutor;)Vjava/io/IOException?Iselect node_name from pgxc_node where node_type='D' and nodeis_active='t'?/com/huawei/opengauss/jdbc/core/SetupQueryRunner?
runForListS(Lcom/huawei/opengauss/jdbc/core/QueryExecutor;Ljava/lang/String;Z)Ljava/util/List;??
??
	?java/lang/System?currentTimeMillis()J??
??java/util/List?size()I????		?clear???iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext? ??next()Ljava/lang/Object;????[[B?getEncoding+()Lcom/huawei/opengauss/jdbc/core/Encoding;??,?'com/huawei/opengauss/jdbc/core/Encoding?decode([B)Ljava/lang/String;??
??add(Ljava/lang/Object;)Z????Fail to check pgxc_node.?
getMessage?W
??(Ljava/lang/String;)V?
?java/lang/Throwable?Currently available DN nodes:-(Ljava/lang/Object;)Ljava/lang/StringBuilder;O
IresultnowTimeeLjava/io/IOException;resultsLjava/util/List<[[B>;	CtempCharjumpCharacters	jump<
?????

Node name  does not exist.java/lang/ClassgetName!W
 "$com/huawei/opengauss/jdbc/log/Logger$	getLogger7(Ljava/lang/String;)Lcom/huawei/opengauss/jdbc/log/Log;&'
%(java/util/ArrayList*
+
ConstantValue	SignatureCodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsLocalVariableTypeTable
SourceFile!

	
	-

.


//*??01	/?4+?
+?"?*?+,?&*?*N6666-???-4/?0`-??'-`4*??+-*?1?-?76??-4-?"`-??-`4-?-?:6?~-4?>??q-4(???`?+-*?1???L-4)?	???=-4"?-?A6?)-4'?-?E6?-4s?-4S?{`-??r?m??G?IY?J-4?N?R-`4?U-`4?U-`4?U-`4?U-`4?U?Y?]??`-?`6?6`6??-4w?-4W?[`-??R?Mb?IY?J-4?N?R-`4?U-`4?U-`4?U?Y?]?3`-?`6`6? ?+-*?1??*?-?f6????h?m?!?h?IY?Jo?R-?r?R?Y?v*?0R#?wx4yz4{z4|}~??? ?x1?0+,
.0246 8*9G;L<U>`?}@?A?B?C?D?F?H?I?K?M?N?O?P?Q?R?SU$V`Zk[p]s_|a?c?e?f?i?j?n?o?r8	uv2x25?,-1
'
?n?W
?(3
.//)?6,4/?\`,??S,`4*?H,`4+?=,?7d6?IY?J-???R??R+?R??R-???R?Y:?0?IY?J-???R??R+?R??R-???R?Y:?0Hb?z??x?{z???yz??x??z1"|~+?5?W?e?????2?e?,	#$/?q*????*????*????S?h?m??h?IY?J??R*?R?Y????Y?IY?J??R*?R??R?Y????????*+???0q{zq|}1??&?A?a?k?p?2%)3
??/?	??L*+??M??YN¸?7?ȹ????e??-ñ?ȹ?,??:???(????:??*??2???W????֧,:?ȹ??Y?IY?J??R???R?Y???-ç
:-???h?m?!?h?IY?J?R?ȶ?Y?v?-w?0tw?/?0?????0>V?_	y'	?|}?yz
?
4
?
1N??
???-?0?8?V?l?o?t?w?y???????????2>?0,????.?,??(D?(3
;^/?4+???+4=?
N-?66?-46???????0*$4?x4~(1"????$?*?,?2?2?--?
</{#?L+?=>?+46???????0#1????!?2?	-?
cd/?/`=+??#+4?>?d?+4??d?????+?d?0 &wx/?x/~1?
??? ?$?*?2??
?$/?I??*???+???*??/??Y?IY?J?R*?R?R?Y?????????0I{zI|}1????>?H?2?H3/?r?#?)?h?γֻ+Y?,???Y+UY-UY*UY/UY UY
UY
UY	U?
?Y)UY/UY'UY"UY(UY-U??1L5




© 2015 - 2024 Weber Informatics LLC | Privacy Policy