org.apache.cayenne.lifecycle.id.EntityIdCoder.class Maven / Gradle / Ivy
???? 3? ? ?
L ?
L ? ? ?
? ?
?
?
?
L ? ?
L ? ?
L ?
, ?
? ? ? ?
? ?
? ? ? ? ? ? ? ? ?
?
?
?
? ? ?
? ?
? ? ?
# ? ? ?
# ?
? ?
? ? ? ? ? ?
* ? ? ? ? ? ???
? ? ?
E ?
E ?
?
E
E
E ? ? ?
?
C
E
C
E
O
Q
Q
Q! ?
E"
L#
$%&'
[ ?(
)*+
`,-.
c,/
e,0
) ? Converter InnerClasses ID_SEPARATOR Ljava/lang/String;
ConstantValue TEMP_ID_PREFIX TEMP_PREFIX_LENGTH I
entityName
converters Ljava/util/SortedMap; Signature bLjava/util/SortedMap; idSize
getEntityName &(Ljava/lang/String;)Ljava/lang/String; Code LineNumberTable LocalVariableTable id separator name
StackMapTable %(Lorg/apache/cayenne/map/ObjEntity;)V attribute %Lorg/apache/cayenne/map/ObjAttribute; e "Ljava/lang/ClassNotFoundException; type $Lorg/apache/cayenne/map/DbAttribute; this /Lorg/apache/cayenne/lifecycle/id/EntityIdCoder; entity "Lorg/apache/cayenne/map/ObjEntity; ?12 ? ?
toStringId 1(Lorg/apache/cayenne/ObjectId;)Ljava/lang/String; Lorg/apache/cayenne/ObjectId; toTempIdString b B buffer Ljava/lang/StringBuilder; ? ? toPermIdString value Ljava/lang/Object; entry Entry Ljava/util/Map$Entry; idValues Ljava/util/Map; LocalVariableTypeTable bLjava/util/Map$Entry; 5Ljava/util/Map;3
toObjectId 1(Ljava/lang/String;)Lorg/apache/cayenne/ObjectId; decoded &Ljava/io/UnsupportedEncodingException; stringId idMap toks Ljava/util/StringTokenizer;
decodeTemp (Ljava/lang/String;)[B index c1 c2 i
byteString bytes [B create L(Ljava/lang/Class;)Lorg/apache/cayenne/lifecycle/id/EntityIdCoder$Converter; Ljava/lang/Class; Ljava/lang/Class<*>; O(Ljava/lang/Class<*>;)Lorg/apache/cayenne/lifecycle/id/EntityIdCoder$Converter; ()V
SourceFile EntityIdCoder.java -org/apache/cayenne/lifecycle/id/EntityIdCoder :4567 "java/lang/IllegalArgumentException java/lang/StringBuilder ? ? Invalid String id: 89:; ?<=> .?@ o p=A1B; q l java/util/TreeMap r sCDEFG2HIJK #org/apache/cayenne/map/ObjAttributeLIM;NO ? ?PQRSTUVD "org/apache/cayenne/map/DbAttributeWXY7Z[A\N] java/lang/ClassNotFoundException *org/apache/cayenne/CayenneRuntimeException Can't instantiate class java/lang/Object ?^_I Entity has no PK definied: `7abc v pdIeI ? ? ? ? w;fghijklmno3 java/util/Map$EntryfKpqrK 7org/apache/cayenne/lifecycle/id/EntityIdCoder$Converterst org/apache/cayenne/ObjectId ? ? ?u UTF-8vwx $java/io/UnsupportedEncodingException Unsupported encoding java/lang/Stringyz ?{ java/util/HashMap ?| java/util/StringTokenizer ?}~7 Invalid String ID for entity : ; ??????? java/lang/NullPointerException Null type java/lang/Long??? /org/apache/cayenne/lifecycle/id/EntityIdCoder$1 ?? java/lang/Integer /org/apache/cayenne/lifecycle/id/EntityIdCoder$2 /org/apache/cayenne/lifecycle/id/EntityIdCoder$3 Unsupported ID type: org/apache/cayenne/map/ObjEntity java/util/Iterator
java/util/Map indexOf (Ljava/lang/String;)I length ()I append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V substring (II)Ljava/lang/String;
startsWith (Ljava/lang/String;)Z (I)Ljava/lang/String; getName
getAttributes ()Ljava/util/Collection; java/util/Collection iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; isPrimaryKey getDbAttributeName getJavaClass ()Ljava/lang/Class; java/util/SortedMap put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; getDbEntity #()Lorg/apache/cayenne/map/DbEntity; org/apache/cayenne/map/DbEntity getPrimaryKeys containsKey (Ljava/lang/Object;)Z getType #org/apache/cayenne/dba/TypesMapping getJavaBySqlType org/apache/cayenne/util/Util %(Ljava/lang/String;)Ljava/lang/Class; =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V isEmpty size java/lang/Math ceil (D)D isTemporary isReplacementIdAttached getKey ()[B org/apache/cayenne/util/IDUtil appendFormattedByte (Ljava/lang/Appendable;B)V
getIdSnapshot ()Ljava/util/Map; entrySet ()Ljava/util/Set;
java/util/Set get &(Ljava/lang/Object;)Ljava/lang/Object; getValue toUuid &(Ljava/lang/Object;)Ljava/lang/String; (Ljava/lang/String;[B)V java/net/URLDecoder decode 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; fromStringId &(Ljava/lang/String;)Ljava/lang/Object; 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V (I)V '(Ljava/lang/String;Ljava/lang/String;)V countTokens nextToken $(Ljava/lang/String;Ljava/util/Map;)V charAt (I)C java/lang/Character digit (II)I java/lang/Class isAssignableFrom (Ljava/lang/Class;)Z 2(Lorg/apache/cayenne/lifecycle/id/EntityIdCoder;)V ! , k l m n l m
o p q l r s t u v p w x y ? J*? <?
*? d? ? Y? Y? ? *? ?
? ?*? M,
? ? ,? ? M,? z 8 9 : 0 = 7 ? @ @ H C { J | l C } p 7 ~ l
? ? ? ? ? y *? *+? ? *? Y? ? +? ? M,? ? -,? ? N-? ? *? -? *-? ? ? W???+? !? "? M,? ? g,? ? #N*? -? $? % ? J-? &? ':*? -? $*? (? ? W? ':? *Y? Y? +? ? ?
? ,? -????*? ? . ? !? Y? Y? /? +? ? ?
? ?**? ? 0 ? 1o? 3?? 4? ? ? ? ) z f F H I K 4 L ; M E N K M Q P T R t S ? T ? U ? W ? X ? W ? \ ? Y ? Z ? ^ ? ` ? a ? b ? e f { > 4 ? ? ? " ? ? ? > ? l t W ? ? ? ? ? ? <