org.apache.cayenne.wocompat.EOQuery.class Maven / Gradle / Ivy
The newest version!
???? 7
%org/apache/cayenne/query/ObjectSelect ()V
org/apache/cayenne/map/ObjEntity getName ()Ljava/lang/String;
#org/apache/cayenne/wocompat/EOQuery
entityName ;(Ljava/lang/String;)Lorg/apache/cayenne/query/FluentSelect;
setRoot (Ljava/lang/Object;)V plistMap Ljava/util/Map;
initFromPlist (Ljava/util/Map;)V YES " usesDistinct $ % & ' (
java/util/Map get &(Ljava/lang/Object;)Ljava/lang/Object; * java/lang/String
) , - . equalsIgnoreCase (Ljava/lang/String;)Z
0 1 2 distinct )()Lorg/apache/cayenne/query/ObjectSelect; 4
fetchLimit 6 java/lang/Number
5 8 9 : intValue ()I
< = > limit *(I)Lorg/apache/cayenne/query/FluentSelect;
@ A B C java/lang/Object toString
E F G H I java/lang/Integer parseInt (Ljava/lang/String;)I K java/lang/NumberFormatException M
sortOrderings O java/util/List N Q R S isEmpty ()Z N U V W iterator ()Ljava/util/Iterator; Y Z [ \ S java/util/Iterator hasNext Y ^ _ ` next ()Ljava/lang/Object; b compareDescending: d selectorName
) f g h equals (Ljava/lang/Object;)Z j key l m n o p "org/apache/cayenne/query/SortOrder ASCENDING $Lorg/apache/cayenne/query/SortOrder; l r s p
DESCENDING
u v w orderBy _(Ljava/lang/String;Lorg/apache/cayenne/query/SortOrder;)Lorg/apache/cayenne/query/FluentSelect; y qualifier $ Q
| } ~
makeQualifier 4(Ljava/util/Map;)Lorg/apache/cayenne/exp/Expression;
? ? ? where L(Lorg/apache/cayenne/exp/Expression;)Lorg/apache/cayenne/query/FluentSelect; ? prefetchingRelationshipKeyPaths ? )org/apache/cayenne/query/PrefetchTreeNode
? ? ? prefetch <(Ljava/lang/String;I)Lorg/apache/cayenne/query/FluentSelect; ? rawRowKeyPaths $ ? ? h containsKey
? ? 2
fetchDataRows ? ? bindings
? ? initBindings $ ? ? ? keySet ()Ljava/util/Set; ? java/util/HashMap
? ? ? ? root Ljava/lang/Object; ? org/apache/cayenne/map/Entity
? ? ? @(Ljava/util/Map;Lorg/apache/cayenne/map/Entity;Ljava/util/Map;)V ? EOKeyValueQualifier ? class ? value ? EOQualifierVariable ? _key ? (org/apache/cayenne/exp/parser/ASTObjPath
? ? ? (Ljava/lang/String;)V
? ? ? ( evaluate ? #org/apache/cayenne/map/ObjAttribute
? ? ? getType ? &org/apache/cayenne/map/ObjRelationship
? ? ? ? getTargetEntity $()Lorg/apache/cayenne/map/ObjEntity;
? ? getClassName ? *org/apache/cayenne/exp/ExpressionException ? java.lang.Object $ ? ? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ?
qualifiers
? ? ` getRoot ? 'org/apache/cayenne/wocompat/EOObjEntity
? ? ? } ? >org/apache/cayenne/wocompat/EOQuery$EOFetchSpecificationParser ](Lorg/apache/cayenne/wocompat/EOObjEntity;Ljava/util/Map;)Lorg/apache/cayenne/exp/Expression; Signature $Ljava/util/Map; 5Ljava/util/Map; 4(Lorg/apache/cayenne/map/ObjEntity;Ljava/util/Map;)V Code LineNumberTable LocalVariableTable this %Lorg/apache/cayenne/wocompat/EOQuery; "Lorg/apache/cayenne/map/ObjEntity; LocalVariableTypeTable *Lorg/apache/cayenne/wocompat/EOQuery; I(Lorg/apache/cayenne/map/ObjEntity;Ljava/util/Map;)V asc Z Ljava/lang/String; ordering orderings Ljava/util/List; qualifierMap
prefetches GLjava/util/List;>; Ljava/util/List<*>;
StackMapTable '(Ljava/util/Map;)V getBindingNames ()Ljava/util/Collection; ,()Ljava/util/Collection; bindingClass &(Ljava/lang/String;)Ljava/lang/String; name target
lastObject ex ,Lorg/apache/cayenne/exp/ExpressionException; valueMap className child entity Lorg/apache/cayenne/map/Entity; children $Lorg/apache/cayenne/map/Entity<***>; 6Ljava/util/List;>; ?(Ljava/util/Map;Lorg/apache/cayenne/map/Entity<***>;Ljava/util/Map;)V I(Ljava/util/Map;)Lorg/apache/cayenne/exp/Expression; BLorg/apache/cayenne/query/ObjectSelect;
SourceFile EOQuery.java NestMembers InnerClasses EOFetchSpecificationParser ! ? ? ? ? ? ? ? ? *? *+? ?
W*+? *,? *,? ? ? ; <