org.apache.cayenne.lifecycle.id.StringIdQuery.class Maven / Gradle / Ivy
The newest version!
???? 7 ? java/lang/NullPointerException Null stringIds
(Ljava/lang/String;)V
java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List;
-org/apache/cayenne/lifecycle/id/StringIdQuery toCollection +([Ljava/lang/String;)Ljava/util/Collection;
(Ljava/util/Collection;)V
java/lang/Object ()V java/util/HashSet
! " # stringIds Ljava/util/Collection; % Null ids ' ( ) * + java/util/Collection add (Ljava/lang/Object;)Z - . / idQueriesByEntity Ljava/util/Map; 1 java/util/HashMap
0 ' 4 5 6 iterator ()Ljava/util/Iterator; 8 9 : ; < java/util/Iterator hasNext ()Z 8 > ? @ next ()Ljava/lang/Object; B java/lang/String
D E F G H -org/apache/cayenne/lifecycle/id/EntityIdCoder
getEntityName &(Ljava/lang/String;)Ljava/lang/String; J K L M N
java/util/Map get &(Ljava/lang/Object;)Ljava/lang/Object;
P Q R S T %org/apache/cayenne/map/EntityResolver getObjEntity 6(Ljava/lang/String;)Lorg/apache/cayenne/map/ObjEntity;
D V W %(Lorg/apache/cayenne/map/ObjEntity;)V
Y Z [ \ ] %org/apache/cayenne/query/ObjectSelect query L(Ljava/lang/Class;Ljava/lang/String;)Lorg/apache/cayenne/query/ObjectSelect; J _ ` a put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
D c d e
toObjectId 1(Ljava/lang/String;)Lorg/apache/cayenne/ObjectId; g h i j k org/apache/cayenne/ObjectId
getIdSnapshot ()Ljava/util/Map; m !org/apache/cayenne/exp/Expression
o p q r s (org/apache/cayenne/exp/ExpressionFactory
matchAllDbExp 5(Ljava/util/Map;I)Lorg/apache/cayenne/exp/Expression;
Y u v w or M([Lorg/apache/cayenne/exp/Expression;)Lorg/apache/cayenne/query/FluentSelect; y /org/apache/cayenne/lifecycle/id/StringIdQuery$1
x { | 2(Lorg/apache/cayenne/lifecycle/id/StringIdQuery;)V
~ ? getIdQueriesByEntity 8(Lorg/apache/cayenne/map/EntityResolver;)Ljava/util/Map; J ? ? ? values ()Ljava/util/Collection;
Y ? ? ? route p(Lorg/apache/cayenne/query/QueryRouter;Lorg/apache/cayenne/map/EntityResolver;Lorg/apache/cayenne/query/Query;)V ? 'java/lang/UnsupportedOperationException ? XThis query was supposed to be replace with a set of SelectQueries during the route phase
? ? org/apache/cayenne/query/Query Signature *Ljava/util/Collection; JLjava/util/Map; Code LineNumberTable LocalVariableTable [Ljava/lang/String;
StackMapTable ?([Ljava/lang/String;)Ljava/util/Collection; ([Ljava/lang/String;)V this /Lorg/apache/cayenne/lifecycle/id/StringIdQuery; LocalVariableTypeTable -(Ljava/util/Collection;)V getStringIds ,()Ljava/util/Collection; addStringIds id Ljava/lang/String; ids changed Z ? 'Lorg/apache/cayenne/query/ObjectSelect;
entityName coder /Lorg/apache/cayenne/lifecycle/id/EntityIdCoder; idExp #Lorg/apache/cayenne/exp/Expression; codersByEntity resolver 'Lorg/apache/cayenne/map/EntityResolver; RLjava/util/Map; s(Lorg/apache/cayenne/map/EntityResolver;)Ljava/util/Map; getMetaData Q(Lorg/apache/cayenne/map/EntityResolver;)Lorg/apache/cayenne/query/QueryMetadata; router &Lorg/apache/cayenne/query/QueryRouter; substitutedQuery Lorg/apache/cayenne/query/Query; queries createSQLAction Q(Lorg/apache/cayenne/query/SQLActionVisitor;)Lorg/apache/cayenne/query/SQLAction; visitor +Lorg/apache/cayenne/query/SQLActionVisitor;
SourceFile StringIdQuery.java NestMembers InnerClasses ! ? " # ? ? ? . / ? ? ? ? N *?
? Y? ?*? ? ? @ A D ? " ? ? ? ? ? ? ? A *+? ? ? ?
L M ? ? ? " ? ? _ *? *? Y+? ? ? ? O R S ? ? ? " # ? " ? ? ? ? ? ? / *? ? ? V ? ? ? ? ? ? ? ? ? ? F+?
? Y$? ?=+N-?66? -2:*? ? & ? =????? *? ,? ? *
Z [ ^ _ &