org.apache.cayenne.lifecycle.id.EntityIdCoder.class Maven / Gradle / Ivy
???? 4? ? ?
L ?
L ? ? ?
? ?
?
?
?
L ? ?
L ? ?
L ?
- ?
? ? ? ?
? ?
? ? ? ? ? ? ? ? ?
?
?
?
? ? ?
? ?
? ? ? ? ?
$ ? ? ?
$ ?
? ?
? ? ? ? ? ?
+ ? ? ? ? ? ???
? ? ? ? ? ? ?
? ?
? ? ?
@ @
D
?
D ?
O
Q
Q
Q! ? ?"
L#
$%&'
[ ?(
)* /0 / /3
) ? Converter InnerClasses ID_SEPARATOR Ljava/lang/String;
ConstantValue TEMP_ID_PREFIX TEMP_PREFIX_LENGTH I
entityName
converters Ljava/util/SortedMap; Signature eLjava/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; ?45 ? ?
toStringId 1(Lorg/apache/cayenne/ObjectId;)Ljava/lang/String; Lorg/apache/cayenne/ObjectId; toTempIdString b B buffer Ljava/lang/StringBuilder;6 ? ? toPermIdString value Ljava/lang/Object; entry Entry Ljava/util/Map$Entry; idValues Ljava/util/Map; LocalVariableTypeTable eLjava/util/Map$Entry;>; 5Ljava/util/Map;7
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<*>; R(Ljava/lang/Class<*>;)Lorg/apache/cayenne/lifecycle/id/EntityIdCoder$Converter<*>; lambda$create$0 &(Ljava/lang/String;)Ljava/lang/Object; ()V
SourceFile EntityIdCoder.java -org/apache/cayenne/lifecycle/id/EntityIdCoder :89:; "java/lang/IllegalArgumentException java/lang/StringBuilder ~ ? Invalid String id: <=>? ~@AB .CD l mAE4F? n i java/util/TreeMap o pGHIJK5LMNO #org/apache/cayenne/map/ObjAttributePMQ?RS ? ?TUVWXYZ[\ "org/apache/cayenne/map/DbAttribute]^_;`aEbRc java/lang/ClassNotFoundException *org/apache/cayenne/CayenneRuntimeException Can't instantiate class java/lang/Object ~deM Entity has no PK defined: f;ghi s m6jMkM ? ? ? ? t?lmnopqrstu7 java/util/Map$EntrylOvwxO 7org/apache/cayenne/lifecycle/id/EntityIdCoder$Converteryz ? ?{| UTF-8}~ $java/io/UnsupportedEncodingException Unsupported encoding java/lang/String? ?{? java/util/HashMap ~? java/util/StringTokenizer ~??; Invalid String ID for entity : ??{?????? java/lang/NullPointerException Null type java/lang/Long??? BootstrapMethods? ???? java/lang/Integer?? Unsupported ID type: org/apache/cayenne/map/ObjEntity java/util/Iterator org/apache/cayenne/ObjectId
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 ()Ljava/util/List; java/util/List 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; of 3(Ljava/lang/String;[B)Lorg/apache/cayenne/ObjectId; java/net/URLDecoder decode 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; fromStringId U(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/cayenne/ObjectId; (I)V '(Ljava/lang/String;Ljava/lang/String;)V countTokens nextToken @(Ljava/lang/String;Ljava/util/Map;)Lorg/apache/cayenne/ObjectId; charAt (I)C java/lang/Character digit (II)I java/lang/Class isAssignableFrom (Ljava/lang/Class;)Z
??
^? ;()Lorg/apache/cayenne/lifecycle/id/EntityIdCoder$Converter;
a?
???????? ? ? "java/lang/invoke/LambdaMetafactory metafactory? Lookup ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; valueOf $(Ljava/lang/String;)Ljava/lang/Long; '(Ljava/lang/String;)Ljava/lang/Integer;? %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! - h i j k i j
l m n i o p q r s m
t u v ? J*? <?
*? d? ? Y? Y? ? *? ?
? ?*? M,
? ? ,? ? M,? w 8 9 : 0 = 7 ? @ @ H C x J y i C z m 7 { i |
? ? } ~ v ? *? *+? ? *? Y? ? +? ? M,? ? -,? ? N-? ? *? -? *-? ? ? W???+? !? "? # M,? ? g,? ? $N*? -? %? & ? J-? '? (:*? -? %*? )? ? W? ':? +Y? Y? ,? ? ?
? -? .????*? ? / ? !? Y? Y? 0? +? ? ?
? ?**? ? 1 ? 2o? 4?? 5? ? ? ? * w N F H I K 4 L ; M Q O T Q t R ? S ? U ? X ? V ? W ? Z ? \ ? ] ? ` a x > 4 ? ? ? " ? ? ? > ? i t W ? ? ? ? ? ? | <