com.huawei.opengauss.jdbc.jdbc.PgArray.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/jdbc/PgArray java/lang/Object java/sql/Array PgArray.java (com/huawei/opengauss/jdbc/jdbc/PgArray$1 2com/huawei/opengauss/jdbc/jdbc/PgArray$PgArrayList
PgArrayList
connection /Lcom/huawei/opengauss/jdbc/core/BaseConnection; oid I fieldString Ljava/lang/String;
useObjects Z arrayList 4Lcom/huawei/opengauss/jdbc/jdbc/PgArray$PgArrayList;
fieldBytes [B typeNode )Lcom/huawei/opengauss/jdbc/jdbc/TypeNode; pgObject )Lcom/huawei/opengauss/jdbc/util/PGobject; 3(Lcom/huawei/opengauss/jdbc/core/BaseConnection;I)V java/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/TypeNode 3 isRecordType ()Z 5 6
4 7 'com/huawei/opengauss/jdbc/util/PGobject 9 m(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/jdbc/TypeNode;Lcom/huawei/opengauss/jdbc/core/BaseConnection;)V ;
: < > -com/huawei/opengauss/jdbc/core/BaseConnection @ java/lang/String B buildArrayList D !
E E(Lcom/huawei/opengauss/jdbc/core/BaseConnection;ILjava/lang/String;)V 5(Lcom/huawei/opengauss/jdbc/core/BaseConnection;I[B)V I getArray ()Ljava/lang/Object; getArrayImpl %(JILjava/util/Map;)Ljava/lang/Object; M N
O (JI)Ljava/lang/Object; index J count #(Ljava/util/Map;)Ljava/lang/Object; map 7Ljava/util/Map;>; Ljava/util/Map; M U
Y
java/util/Map [ isEmpty ] 6 \ ^ getClass ()Ljava/lang/Class; ` a
b getArrayImpl(long,int,Map) d com/huawei/opengauss/jdbc/Driver f notImplemented O(Ljava/lang/Class;Ljava/lang/String;)Ljava/sql/SQLFeatureNotSupportedException; h i
g j ,com/huawei/opengauss/jdbc/util/PSQLException l $The array index is out of range: {0} n java/lang/Long p valueOf (J)Ljava/lang/Long; r s
q t !com/huawei/opengauss/jdbc/util/GT v tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; x y
w z (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}. ?
buildArray J(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 ? d ioe Ljava/io/IOException;
dimensions
elementOid pos dims arr Ljava/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 ? getAssistant 3(I)Lcom/huawei/opengauss/jdbc/jdbc2/ArrayAssistant; ?
? .com/huawei/opengauss/jdbc/jdbc2/ArrayAssistant buildElement ([BII)Ljava/lang/Object; len i encoding )Lcom/huawei/opengauss/jdbc/core/Encoding; arrAssistant 0Lcom/huawei/opengauss/jdbc/jdbc2/ArrayAssistant;
thisDimension readBinaryResultSet (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/BaseStatement createDriverResultSet M([Lcom/huawei/opengauss/jdbc/core/Field;Ljava/util/List;)Ljava/sql/ResultSet; !" rows Ljava/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)V01
2 VALUE4 ([BII)V ?7
?8 java/util/List: add (Ljava/lang/Object;)Z<=;> [[B@ java/lang/SystemB arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)VDE
CF calcRemainingDataLength ([IIII)IHI
J rowData
dataEndPos
dataLength
nextDimension dimensionsLeft baseTypeQ aR readBinaryArray(data,oid)T arrElemBuilder -(Lcom/huawei/opengauss/jdbc/jdbc/PgArray$1;)V W
X getTypeInfo +()Lcom/huawei/opengauss/jdbc/core/TypeInfo;Z[ A\ 'com/huawei/opengauss/jdbc/core/TypeInfo^ getArrayDelimiter (I)C`a_b toCharArray ()[Cde
Cf [Ch java/lang/StringBuilderj; ^; ? get (I)Ljava/lang/Object;no;p
> java/lang/Characters isWhitespace (C)Zuv
tw dimensionsCounty z
k " append (C)Ljava/lang/StringBuilder;}~
k toString ()Ljava/lang/String;??
k?
C ^ NULL? equals?=
C? remove?o;? a p t b chars buffer Ljava/lang/StringBuilder; insideString wasInsideString FLjava/util/List; curArray startOffset delim C getPGArrayElement (I)I??_?
getSQLType??_? [Z? TYPE Ljava/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? getTimestampUtils 1()Lcom/huawei/opengauss/jdbc/jdbc/TimestampUtils;?? A? -com/huawei/opengauss/jdbc/jdbc/TimestampUtils? toDate 7(Ljava/util/Calendar;Ljava/lang/String;)Ljava/sql/Date;??
??
java/sql/Time? toTime 7(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/Log trace (Ljava/lang/Object;)V o pa oa v typeName input ret
dimsLength length type getBaseType??_ 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./ A0 H(Lcom/huawei/opengauss/jdbc/jdbc/PgArray$PgArrayList;)Ljava/lang/String;?2
3
getColumnList ()Ljava/util/List;56
47 setTypeNode ,(Lcom/huawei/opengauss/jdbc/jdbc/TypeNode;)V9:
; offset baseOid 4com/huawei/opengauss/jdbc/jdbc/PrimitiveArraySupport? getArraySupport J(Ljava/lang/Object;)Lcom/huawei/opengauss/jdbc/jdbc/PrimitiveArraySupport;AB
@C
toArrayString '(CLjava/lang/Object;)Ljava/lang/String;EF
@G
createArrayOf 7(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array;IJ AK
? tmpArray Ljava/sql/Array; array arraySupport 6Lcom/huawei/opengauss/jdbc/jdbc/PrimitiveArraySupport; e Ljava/sql/SQLException; escapeArrayElement .(Ljava/lang/StringBuilder;Ljava/lang/String;)VUV
W list ?
CZ charAt\a
C] c j s isBinary toBytes ()[B free getPGobject +()Lcom/huawei/opengauss/jdbc/util/PGobject; 1com/huawei/opengauss/jdbc/jdbc/UUIDArrayAssistanti
j " register 4(ILcom/huawei/opengauss/jdbc/jdbc2/ArrayAssistant;)Vlm
?n Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable LocalVariableTypeTable Signature K(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 !
" p t *? #*? %*? '*+? %*? )*? +? q , -
r f C M g h i js . p ? :*+? 0*-? '? ,*? 2? 8? *? :Y-*? 2*? %? =? ?? *? F? q 4 : , - :
: : : r " v w x y z | 5 ~ 9 ?t ? 5 A C 4 s G p \ *+? 0*-? '? q * , -
r ? ? ?s H p \ *+? 0*-? J? q * , -
r ? ? ?s K L p 2 *
? P? q , - r ?s K Q p F *? P? q , - R S T r ?s M U p N *
+? P? q , - V X u V W r ?s v w K U p L *+? Z? q , - V X u V W r ?s v w K N p c *? P? q * , - R S T V X u V W r ?s v x M N p R
?? ? _ ?
*? ce? k?
?? ? mYo? Y? uS? {? ?? ??*? J? *?? ??*? '? ?*? F? *? ?? ?>
e\@?a*? ?? ???? /? mY?? Y?a? uSY*? ?? ??? uS? {? ?? ??**? ??? ?? q * ? , - ? R S ? T ? V X u ? V W r B ? ? ? ? : ? A ? I ? P ? R ? V ? Z ? b ? v ? ? ? ? ? ? ?t ?s v x ? ? p ? ?*? J? ?>*? J? ?66?
:6? *? J? ?O??????? *? ?? ??? .? ?O*? ?? ?:*? ?? ?? ?W? :? mY?? ? {? ?? ??? l ? ? ? q f
? ? ? ? ? , - ? R ? T ? ? ? ? ? ? ? ? ? l 3 ? ? r R ? ? ? ? ? &