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

org.apache.cayenne.lifecycle.id.EntityIdCoder.class Maven / Gradle / Ivy

The newest version!
????7?-org/apache/cayenne/lifecycle/id/EntityIdCoder:
	
java/lang/StringindexOf(Ljava/lang/String;)I

length()I"java/lang/IllegalArgumentExceptionmakeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;
(Ljava/lang/String;)V
	substring(II)Ljava/lang/String;.
 !"
startsWith(Ljava/lang/String;)Z	$%&TEMP_PREFIX_LENGTHI
()(I)Ljava/lang/String;
+,-.java/lang/Object()V
01234 org/apache/cayenne/map/ObjEntitygetName()Ljava/lang/String;	678
entityNameLjava/lang/String;:java/util/TreeMap
9,	=>?
convertersLjava/util/SortedMap;
0ABC
getAttributes()Ljava/util/Collection;EFGHIjava/util/Collectioniterator()Ljava/util/Iterator;KLMNOjava/util/IteratorhasNext()ZKQRSnext()Ljava/lang/Object;U#org/apache/cayenne/map/ObjAttribute
TWXOisPrimaryKey
TZ[4getDbAttributeName
T]^_getJavaClass()Ljava/lang/Class;
abccreateL(Ljava/lang/Class;)Lorg/apache/cayenne/lifecycle/id/EntityIdCoder$Converter;efghijava/util/SortedMapput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
0klmgetDbEntity#()Lorg/apache/cayenne/map/DbEntity;
opqrsorg/apache/cayenne/map/DbEntitygetPrimaryKeys()Ljava/util/List;uFvjava/util/Listx"org/apache/cayenne/map/DbAttribute
w1e{|}containsKey(Ljava/lang/Object;)Z
????#org/apache/cayenne/dba/TypesMappinggetJavaBySqlType8(Lorg/apache/cayenne/map/DbAttribute;)Ljava/lang/String;
???^?org/apache/cayenne/util/Util%(Ljava/lang/String;)Ljava/lang/Class;? java/lang/ClassNotFoundException?*org/apache/cayenne/CayenneRuntimeException
???=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)Ve??OisEmptye??size??
?????java/lang/Mathceil(D)D	??&idSize????Oorg/apache/cayenne/ObjectIdisTemporary???OisReplacementIdAttached
???toTempIdString1(Lorg/apache/cayenne/ObjectId;)Ljava/lang/String;
???toPermIdString?java/lang/StringBuilder
?,
????append-(Ljava/lang/String;)Ljava/lang/StringBuilder;???4
getEntityName????getKey()[B
?????org/apache/cayenne/util/IDUtilappendFormattedByte(Ljava/lang/Appendable;B)V
???4toString????
getIdSnapshot()Ljava/util/Map;e???entrySet()Ljava/util/Set;?F?
java/util/Set?java/util/Map$Entry???S?????
java/util/Mapget&(Ljava/lang/Object;)Ljava/lang/Object;???SgetValue?7org/apache/cayenne/lifecycle/id/EntityIdCoder$Converter????toUuid&(Ljava/lang/Object;)Ljava/lang/String;
???
decodeTemp(Ljava/lang/String;)[B????of3(Ljava/lang/String;[B)Lorg/apache/cayenne/ObjectId;?UTF-8
?????java/net/URLDecoderdecode8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;?$java/io/UnsupportedEncodingException?Unsupported encoding????fromStringId&(Ljava/lang/String;)Ljava/lang/Object;??U(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/cayenne/ObjectId;java/util/HashMap
(I)Vjava/util/StringTokenizer

'(Ljava/lang/String;Ljava/lang/String;)V

countTokens?
4	nextToken?f??@(Ljava/lang/String;Ljava/util/Map;)Lorg/apache/cayenne/ObjectId;
charAt(I)C
 !java/lang/Characterdigit(II)I#java/lang/NullPointerException%	Null type
"(java/lang/Long
*+,-.java/lang/ClassisAssignableFrom(Ljava/lang/Class;)Z0?1;()Lorg/apache/cayenne/lifecycle/id/EntityIdCoder$Converter;3java/lang/Integer00
*1ID_SEPARATOR
ConstantValueTEMP_ID_PREFIX	SignatureeLjava/util/SortedMap;>;CodeLineNumberTableLocalVariableTableid	separatorname
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;
toStringIdLorg/apache/cayenne/ObjectId;bBbufferLjava/lang/StringBuilder;V[BvalueLjava/lang/Object;entryLjava/util/Map$Entry;idValuesLjava/util/Map;LocalVariableTypeTableeLjava/util/Map$Entry;>;5Ljava/util/Map;
toObjectId1(Ljava/lang/String;)Lorg/apache/cayenne/ObjectId;decoded&Ljava/io/UnsupportedEncodingException;stringIdidMaptoksLjava/util/StringTokenizer;indexc1c2i
byteStringbytesLjava/lang/Class;Ljava/lang/Class<*>;R(Ljava/lang/Class<*>;)Lorg/apache/cayenne/lifecycle/id/EntityIdCoder$Converter<*>;lambda$create$0
SourceFileEntityIdCoder.javaNestMembersBootstrapMethodsxInvalid String id: zCan't instantiate class |Entity has no PK defined: ~!Invalid String ID for entity : ??
'???valueOf$(Ljava/lang/String;)Ljava/lang/Long;?
2???'(Ljava/lang/String;)Ljava/lang/Integer;?
?q??Unsupported ID type: ?
????$java/lang/invoke/StringConcatFactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;?
?????"java/lang/invoke/LambdaMetafactorymetafactory?(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;InnerClasses	ConverterEntry?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup!+889:89%&78>?;<?&
	?=?=*?<?
*?d??Y*???*?M,??,?#?'M,?>89:#=*?3@;C? =@86A&*B8C
?
?D=??*?**+?/?5*?9Y?;?<+?@?DM,?J?-,?P?TN-?V?*?<-?Y*-?\?`?dW???+?j?n?tM,?J?W,?P?wN*?<-?y?z?:-?~:*?<-?y*???`?dW?:??Y???+??????*?NFHIK4L;MQOTQtR?S?U?X?V?W?Z?\?]?`?a?>4EF?GH?1I8tGEJ?KL?MNC<?!0K/??K?B0Kw???O?=c+???+???	*+???*+???>mnp?KL@PC??=?M??Y??M,??W,+????W,??W+??N-?66?-36,??????,?ư>"uwy{!}<~B}H??*<QRMKLM@PESTC?/??U???=r??Y??M,+????W+??N*?"????@?O?j?m??>OWX@*YZrKLr@PjSTX[\]@*Y^X[_C?*??K?B`a=	
L+??"+*?5?`?#`?'M*?5*,???+*?5?`?'M*?b?	??(?6?C?Z?b?e?g?w??????????????	????@?C???
[8bb8gGcZ>YZw!b8	b8Gc	@W8"b8?GYZLKLLd86[8??e\??fg] Z>Y^?GY^??e_Co	(?<???? ?:??K?(?K????$???=?E+?l?M>,??5h6+?6+`?6,?x?`?T????,?>"?	????(?=?C??H'h&i&(j&8k&EKLEl8	<mVC?U?7bc=?O+??"Y$?&?'+?)?	?/?2+?)?	?4?+?)?	?5??Y+?6?7??>&	?????)?/?8?>??OKLOIn]OIoC;p
q?=,*?>??d8r.=!	??#?>1stu?v>?w?y?{?}??????????????	???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy