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

com.huawei.opengauss.jdbc.jdbc.PgArray.class Maven / Gradle / Ivy

The newest version!
????4&com/huawei/opengauss/jdbc/jdbc/PgArrayjava/lang/Objectjava/sql/ArrayPgArray.java(com/huawei/opengauss/jdbc/jdbc/PgArray$12com/huawei/opengauss/jdbc/jdbc/PgArray$PgArrayList
PgArrayList
connection/Lcom/huawei/opengauss/jdbc/core/BaseConnection;oidIfieldStringLjava/lang/String;
useObjectsZ	arrayList4Lcom/huawei/opengauss/jdbc/jdbc/PgArray$PgArrayList;
fieldBytes[BtypeNode)Lcom/huawei/opengauss/jdbc/jdbc/TypeNode;pgObject)Lcom/huawei/opengauss/jdbc/util/PGobject;3(Lcom/huawei/opengauss/jdbc/core/BaseConnection;I)Vjava/sql/SQLException()V!
"
	$	&	(	*this(Lcom/huawei/opengauss/jdbc/jdbc/PgArray;n(Lcom/huawei/opengauss/jdbc/core/BaseConnection;ILjava/lang/String;Lcom/huawei/opengauss/jdbc/jdbc/TypeNode;)V
/	1'com/huawei/opengauss/jdbc/jdbc/TypeNode3isRecordType()Z56
47'com/huawei/opengauss/jdbc/util/PGobject9m(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/jdbc/TypeNode;Lcom/huawei/opengauss/jdbc/core/BaseConnection;)V;
:<	>-com/huawei/opengauss/jdbc/core/BaseConnection@java/lang/StringBbuildArrayListD!
EE(Lcom/huawei/opengauss/jdbc/core/BaseConnection;ILjava/lang/String;)V5(Lcom/huawei/opengauss/jdbc/core/BaseConnection;I[B)V	IgetArray()Ljava/lang/Object;getArrayImpl%(JILjava/util/Map;)Ljava/lang/Object;MN
O(JI)Ljava/lang/Object;indexJcount#(Ljava/util/Map;)Ljava/lang/Object;map7Ljava/util/Map;>;Ljava/util/Map;MU
Y
java/util/Map[isEmpty]6\^getClass()Ljava/lang/Class;`a
bgetArrayImpl(long,int,Map)d com/huawei/opengauss/jdbc/DriverfnotImplementedO(Ljava/lang/Class;Ljava/lang/String;)Ljava/sql/SQLFeatureNotSupportedException;hi
gj,com/huawei/opengauss/jdbc/util/PSQLExceptionl$The array index is out of range: {0}njava/lang/LongpvalueOf(J)Ljava/lang/Long;rs
qt!com/huawei/opengauss/jdbc/util/GTvtr9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;xy
wz(com/huawei/opengauss/jdbc/util/PSQLState|
DATA_ERROR*Lcom/huawei/opengauss/jdbc/util/PSQLState;~	}??(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/util/PSQLState;)V?
m?readBinaryArray(II)Ljava/lang/Object;??
?	?size()I??
?>The array index is out of range: {0}, number of elements: {1}.?
buildArrayJ(Lcom/huawei/opengauss/jdbc/jdbc/PgArray$PgArrayList;II)Ljava/lang/Object;??
?java/io/IOException?,com/huawei/opengauss/jdbc/util/ByteConverter?int4([BI)I??
??[I?elementOidToClass(I)Ljava/lang/Class;??
?java/lang/reflect/Array?newInstance&(Ljava/lang/Class;I)Ljava/lang/Object;??
??java/lang/Math?min(II)I??
??'(Ljava/lang/Class;[I)Ljava/lang/Object;??
??[Ljava/lang/Object;?storeValues([Ljava/lang/Object;I[IIII)I??
??Invalid character data was found.  This is most likely caused by stored data containing characters that are invalid for the character set the database was created in.  The most common example of this is storing 8bit data in a SQL_ASCII database.?T(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/util/PSQLState;Ljava/lang/Throwable;)V?
m?dioeLjava/io/IOException;
dimensions
elementOidposdimsarrLjava/lang/Object;int2([BI)S??
??java/lang/Short?(S)Ljava/lang/Short;r?
??java/lang/Integer?(I)Ljava/lang/Integer;r?
??int8([BI)J??
??float4([BI)F??
??java/lang/Float?(F)Ljava/lang/Float;r?
??float8([BI)D??
??java/lang/Double?(D)Ljava/lang/Double;r?
??getEncoding+()Lcom/huawei/opengauss/jdbc/core/Encoding;??A?'com/huawei/opengauss/jdbc/core/Encoding?decode([BII)Ljava/lang/String;??
??bool([BI)Z??
??java/lang/Boolean?(Z)Ljava/lang/Boolean;r?
??6com/huawei/opengauss/jdbc/jdbc2/ArrayAssistantRegistry?getAssistant3(I)Lcom/huawei/opengauss/jdbc/jdbc2/ArrayAssistant;?
?.com/huawei/opengauss/jdbc/jdbc2/ArrayAssistantbuildElement([BII)Ljava/lang/Object;leniencoding)Lcom/huawei/opengauss/jdbc/core/Encoding;arrAssistant0Lcom/huawei/opengauss/jdbc/jdbc2/ArrayAssistant;
thisDimensionreadBinaryResultSet(II)Ljava/sql/ResultSet;java/util/ArrayList
"$com/huawei/opengauss/jdbc/core/Field@(Ljava/util/List;[Lcom/huawei/opengauss/jdbc/core/Field;I[IIII)I?
createStatement(II)Ljava/sql/Statement;A,com/huawei/opengauss/jdbc/core/BaseStatementcreateDriverResultSetM([Lcom/huawei/opengauss/jdbc/core/Field;Ljava/util/List;)Ljava/sql/ResultSet; !"rowsLjava/util/List<[[B>;Ljava/util/List;fields'[Lcom/huawei/opengauss/jdbc/core/Field;stat.Lcom/huawei/opengauss/jdbc/core/BaseStatement;INDEX+(Ljava/lang/String;I)V-
.	setFormat(I)V01
2VALUE4([BII)V?7
?8java/util/List:add(Ljava/lang/Object;)Z<=;>[[B@java/lang/SystemB	arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)VDE
CFcalcRemainingDataLength([IIII)IHI
JrowData
dataEndPos
dataLength
nextDimensiondimensionsLeftbaseTypeQaRreadBinaryArray(data,oid)TarrElemBuilder-(Lcom/huawei/opengauss/jdbc/jdbc/PgArray$1;)VW
XgetTypeInfo+()Lcom/huawei/opengauss/jdbc/core/TypeInfo;Z[A\'com/huawei/opengauss/jdbc/core/TypeInfo^getArrayDelimiter(I)C`a_btoCharArray()[Cde
Cf[Chjava/lang/StringBuilderj;^;?get(I)Ljava/lang/Object;no;p
>java/lang/CharactersisWhitespace(C)Zuv
twdimensionsCounty	z
k"append(C)Ljava/lang/StringBuilder;}~
ktoString()Ljava/lang/String;??
k?
C^NULL?equals?=
C?remove?o;?aptbcharsbufferLjava/lang/StringBuilder;insideStringwasInsideStringFLjava/util/List;curArraystartOffsetdelimCgetPGArrayElement(I)I??_?
getSQLType??_?[Z?TYPELjava/lang/Class;??	??java/lang/Class?
p.com/huawei/opengauss/jdbc/jdbc/BooleanTypeUtil?
castToBoolean?=
??[S?	??*com/huawei/opengauss/jdbc/jdbc/PgResultSet?toShort(Ljava/lang/String;)S??
??	??toInt(Ljava/lang/String;)I??
??[J?	q?toLong(Ljava/lang/String;)J??
??java/math/BigDecimal?toBigDecimal*(Ljava/lang/String;)Ljava/math/BigDecimal;??
??[F?	??toFloat(Ljava/lang/String;)F??
??[D?	??toDouble(Ljava/lang/String;)D??
??
java/sql/Date?getTimestampUtils1()Lcom/huawei/opengauss/jdbc/jdbc/TimestampUtils;??A?-com/huawei/opengauss/jdbc/jdbc/TimestampUtils?toDate7(Ljava/util/Calendar;Ljava/lang/String;)Ljava/sql/Date;??
??
java/sql/Time?toTime7(Ljava/util/Calendar;Ljava/lang/String;)Ljava/sql/Time;??
??java/sql/Timestamp?toTimestamp<(Ljava/util/Calendar;Ljava/lang/String;)Ljava/sql/Timestamp;??
??&(Ljava/lang/String;)Ljava/lang/Object;??getBaseTypeName??
?	getObject:(Ljava/lang/String;Ljava/lang/String;[B)Ljava/lang/Object;??A?	getLogger%()Lcom/huawei/opengauss/jdbc/log/Log;??A? getArrayImpl(long,int,Map) with -(Ljava/lang/String;)Ljava/lang/StringBuilder;}
k!com/huawei/opengauss/jdbc/log/Logtrace(Ljava/lang/Object;)V	opaoavtypeNameinputret
dimsLengthlengthtypegetBaseType??_	getPGType(I)Ljava/lang/String;_
elementOIDgetResultSet()Ljava/sql/ResultSet;getResultSetImpl'(JILjava/util/Map;)Ljava/sql/ResultSet; 
!(JI)Ljava/sql/ResultSet;%(Ljava/util/Map;)Ljava/sql/ResultSet;$
%getResultSetImpl(long,int,Map)'
)(?
?,encodeString(Ljava/lang/String;)[B./A0H(Lcom/huawei/opengauss/jdbc/jdbc/PgArray$PgArrayList;)Ljava/lang/String;?2
3
getColumnList()Ljava/util/List;56
47setTypeNode,(Lcom/huawei/opengauss/jdbc/jdbc/TypeNode;)V9:
;offsetbaseOid4com/huawei/opengauss/jdbc/jdbc/PrimitiveArraySupport?getArraySupportJ(Ljava/lang/Object;)Lcom/huawei/opengauss/jdbc/jdbc/PrimitiveArraySupport;AB
@C
toArrayString'(CLjava/lang/Object;)Ljava/lang/String;EF
@G
createArrayOf7(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array;IJAK
?tmpArrayLjava/sql/Array;arrayarraySupport6Lcom/huawei/opengauss/jdbc/jdbc/PrimitiveArraySupport;eLjava/sql/SQLException;escapeArrayElement.(Ljava/lang/StringBuilder;Ljava/lang/String;)VUV
Wlist?
CZcharAt\a
C]cjsisBinarytoBytes()[BfreegetPGobject+()Lcom/huawei/opengauss/jdbc/util/PGobject;1com/huawei/opengauss/jdbc/jdbc/UUIDArrayAssistanti
j"register4(ILcom/huawei/opengauss/jdbc/jdbc2/ArrayAssistant;)Vlm
?nCodeLocalVariableTableLineNumberTable
Exceptions
StackMapTableLocalVariableTypeTable	SignatureK(Ljava/util/Map;>;)Ljava/lang/Object;M(JILjava/util/Map;>;)Ljava/lang/Object;E(Ljava/util/List<[[B>;[Lcom/huawei/opengauss/jdbc/core/Field;I[IIII)I(I)Ljava/lang/Class<*>;M(Ljava/util/Map;>;)Ljava/sql/ResultSet;O(JILjava/util/Map;>;)Ljava/sql/ResultSet;
SourceFileInnerClasses!
"pt*?#*?%*?'*+?%*?)*?+?q ,-
rfC	Mghijs .p?:*+?0*-?'?,*?2?8?*?:Y-*?2*?%?=???*?F?q4:,-:
:::r"vwxyz|5~9?t?5AC4s Gp\*+?0*-?'?q*,-
r???s Hp\*+?0*-?J?q*,-
r???s KLp2*
?P?q,-r?s KQpF*?P?q ,-RSTr?s MUpN*
+?P?q,-VXuVWr?s vwKUpL*+?Z?q,-VXuVWr?s vwKNpc	*?P?q*	,-	RS	T	VXu	VWr?s vxMNpR
???_?
*?ce?k?
???mYo?Y?uS?{?????*?J?*????*?'??*?F?*????>
e\@?a*???????/?mY??Y?a?uSY*??????uS?{?????**??????q*?,-?RS?T?VXu?VWrB????:?A?I?P?R?V?Z?b?v???????t ?s vx??p?	?*?J??>*?J??66?
:6?*?J??O???????*??????.??O*????:*??????W?:?mY???{??????l???qf
  ?????,-?R?T	?????????l3??rR?	????&?4?7?:?@?D?O?S?_?l???????????t3? ???$??s ??p??-?d?]6?$*?J??6??
`6????6-.?#*?J??6??????rL_??????+*?J?ɸ?S??+*?J????S??+*?J?׸uS?y+*?J?۸?S?f+*?J???S?S*?%??:	+	*?J??S?4+*?J????S?!?:

?+
*?J?S`6???ڧ.6-.?"*+2????-`??6?????q?	(
	;

K	7)
f(
?,-????????????Rr?%?	???!?'?.?4?@?K?NTW????	?????"25;@S!Z?c$o%?$?(t+?!????L????'s ?p?
?*?J??>*?J??66?
:6?*?J??O????????.??O?Y?:?:*?W*?%???:		?#?qp  ??,-?R?T	????|?w??]7$&c1'(?)*	u]7$%rF-	./01&24374:1@6H7T9]:c<t>~??@t? ??s ?pg6??\,?Y,?/S,2?3,?Y5?/S,2?36?$*?J??6	?	?
	`6???ۧ??d??,?Y,?/S,2?3,?Y5?/S,2?36?$*?J??6	?	?
	`6????6.?e?6:		?S	2`?9+	??W*?J??6
?
??%	
?S*?J	2	2??G
`6?????,?Y,?/S,2?3,?Y5*?)?/S,2?3`6?d6	6

?*?K6?
???6

.???6:?S2
`?9+??W*?K6d6
	h`
`?S2	?9*?J2?G*?Jh`2	h?G*?J2	h`
?G6?
??]?q?F		4(
?		?(
?VL@	?.	
?l
p

??L@?fM?_N
??

e?Om?P	6,-6$&6'(6?6??6?66Ru6$%r?;FGHI*J1K;LFMINOOVK_RiSxTU?V?W?X?Y?Z?[?W?^?_?`?a?b?c?d?efhi!j(^1m@nGoXp_qermswt?s?v?w?x?y?z?{?|?}?~????)?-v3?t5?4!??7!???CA?!??>????s vyHIp?G+?d?36+.?$*?J??6???`=???٧*+`?K=?qH	*
G,-G??G?G?Gr*
?	???"?(?+?0?9?E?t??????p?|?`]QKNZ?T?WZ˰аq?ݰ?C????M,?
,?S?*?cU?k?q fV|,-|r2?L?O?R?U?X?[?^?a?f?j?q?t	?L?s vz"D!pb<*????*?Y?Y??*?%?]*?)?c<*?'?*?'?gMN66?Y?:*??:6,4[?,4=?	????6		,???,	4\?	?	????,	4{???l?*????W?4?Y?Y:
?md?q?:
?rW
??W?md?q?:	`6

,??*,
4?x??,
4{?Y?{`?{?
??ջkY?|N?,	4"???66???,	4?x????,	4?,	4}?	,?d??,	4"?!,	4}?,	4?-?-,	4??W-??-??:

?,
?????
?????
?rW6?kY?|N,	4}?E?md??W?l??md?q?:N?-?-,	4??W?	??6?q??'?
???.?
?w?
n?
	6?h8??;?>??G??&M??P??<,-'??uG???r?:????'?.?6?8?;?>?G?M?P?X?a?g?j?u?~?????????????????????????%?-?0?9EHKZ]|????????#"((,)5?;-t~?O	ik;?&0??
@&CC?CU?ik;C?C??s ??p???+??>:+?{6?
?
?:?"6???O????6*?%?]*?%?]*?)????6???:	:
?
*?+?2? *?+??????????????Y:
:??Y:	:?l+???:?
*?+?6
???"?*?????C????S?	????C??T??????x??:	:
?
*?+?2? *?+?˧???????????Y:
:??	Y:	:?l+???:?
*?+?6
???"?*?????C????S?	????C??V?????????:	:
?
*?+?2? *?+?Ч???????????Y:
:??
Y:	:?l+???:?
*?+?6
???"?*?????C????S?	????C??O??????????:	:
?
*?+?2? *?+?q???????????qY:
:??Y:	:?l+???:?
*?+?6
???"?*?????C?ŸuS?	??	??C??P??????7?o:	???????????Y:	:?E+???:
	??
?*
????
??
?C??S?????????:	:
?
*?+?2? *?+?ݧ???????????Y:
:??Y:	:?l+???:?
*?+?6
???"?*?????C?Ҹ?S?	????C??Q????????:	:
?
*?+?2? *?+?????????????Y:
:??Y:	:?l+???:?
*?+?6
???"?*?????C?ٸ?S?	????C??R??????C??
*?)ߠ_:	?C????????CY:	:?6+???:
	??
?*
????
S????̧?[?y:	???????????Y:	:?O+???:
	??
?*
????
??*?%??
?C??S??????S\?y:	???????????Y:	:?O+???:
	??
?*
????
??*?%??
?C??S???????]?y:	???????????Y:	:?O+???:
	??
?*
????
??*?%??
?C??S??????Y*?)???*?)?:	:
?	?S???????	?S??????Y:
:?I+???:
???*??????	?C??S??????????:	*??:
?y+???:?C?	?*?%
?C??S?E?6?"	?*?%
?6?6??S??	?S?
*?ce?k??????	:?2*?%???kY?|?*??????
*?ce?k??q?,+
?Y?v??	y?
?
?Y?6??	9?
?
KY????	??
?
Y????	??
?
?2?
wf
?	?Y????	??
?
Y????	??
?
?#?
|V
?	
<?
?p
?	?<?
\p
?	<?
?p
?	?6?_~
	b{
?
f???
?	?~
?,-??R?T????"??J[l9r??67	;>B"C(D2EADGJJMNNlPsQvRyT?U?W?Z?^?_?a?b?ce$^*h3i6j9lFm]pus}v?w?y?z?{?}?v??????????5?=?A?K?X?v????????????????????????7?L?e?k?t?w????????????????????????)?1?5???L?j???????????????????????
?+?@?Y?_?y?|??????????????????????
?:?I?O?Y\g|?????
???
??4CIV_bj???? ??"?#?$?%?&'($),*K+P,\.f%l1p2s4?6?9tx?	?@??
?????????>???B?
C?????????????
???????????????????B?
C?????????????
???????????????????B?
C?????????????
???????????????????B?
C?????????????
??????????????????C??-???????????????B?
C?????????????
???????????????????B?
C?????????????
??????????????????C??-????????? ?C??-????????????? ?C??-????????????? ?C??-?????????????0?P??-??????????????C?1&?	?.s ?p=*?%?]*????q,-r=s ??pc'*?F*?%?]*?)??<*?%?]??q',-rABCs p2*
?"?q,-rGs #pF*?"?q ,-RSTrKs $pL*+?&?q,-VXuVWrOs v{ pc	*?"?q*	,-	RS	T	VXu	VWrTs v|$pN*
+?"?q,-VXuVWrXs v{ p?
"??_?*?c(?k?
???mYo?Y?uS?{?????*?J?*??*?*?F?*????>
e\@?a*???????/?mY??Y?a?uSY*??????uS?{??????Y?:?:*???{??*?%?]*?)??6?Y,?/S?Y5?/S6?\?`6	?A:
*??	???C:
*?%	`?-?1S
??*?%?1S
??W???????Y,?/S?Y5*?)?/S6?`?`6?A:	*????:
	*?%`?-?1S	
??*?%*
??4?1S	??W????*?2?)*?2?8?m?2*?2?8?q?4?<*?%???:?#?q??L=	D?@
6?_
??>P=?H?@	?=?
rc
",-"RS"T"VX?$&?y'()*u"VW?$%r?+_`d e;iBjJmNoRpZtnu~w?v?{?}????????????????"?:?D?J?M?]?o?x???????????????????t? ??P\;+?B\;+ACA?
\;+ACA6?\;+?$??
\;+AA?
\;+AA6?\;+,s v|??pi*?'?`*?J?Y*??L+?DM,?!*,*?%?]*?)?c+?H?'? *?%*??+?????LN*-?M?'?L*??'*?'?Y\ q4QNODP??QR]STi,-r.?????<?Q?Y?\?]?d?t?<@?B ?2pB?+????kY?|{??M*?%?]*?)?c>6+???N+??:?	,??W?,??W?%??,*??4?W?,?C?X????,}??W,???q><=?+T
?,-?Yv??(c??rB????(?4?<?A?G?L?W?_?p?y????t?"k???s 	UVp?>*"??W=+?[?(+?^>"?	\?
*\??W*??W????*"??W?q*_?	-`>??>ar&	????#?*?0?6?=?t?	??b6pB
*?J???q
,-r?t@cdp/*?J?q,-r?e!pO*?%*?'*?J*???q,-r??
???s fgp/*???q,-r?h!p;??jY?k?o??jY?k?o?r.
/0}~	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy