![JAR search and dependency download from the Maven repository](/logo.png)
org.bonitasoft.engine.bdm.CountQueryGenerator.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bonita-business-object-model Show documentation
Show all versions of bonita-business-object-model Show documentation
This module defines the Bonita Business Object Model.
The newest version!
???? 7 ?
0org/bonitasoft/engine/bdm/AbstractQueryGenerator ()V (org/bonitasoft/engine/bdm/QueryGenerator
countForFind java/lang/Long
java/lang/Class getName ()Ljava/lang/String; =SELECT COUNT(%s) FROM %s %s JOIN %s.%s as %s WHERE %s.%s= :%s SELECT
java/lang/StringBuilder append -(Ljava/lang/String;)Ljava/lang/StringBuilder; COUNT (
" # (C)Ljava/lang/StringBuilder; % ) '
) * + , - java/lang/Boolean TRUE Ljava/lang/Boolean;
/ 0 1 2 3 3org/bonitasoft/engine/bdm/model/field/RelationField isCollection ()Ljava/lang/Boolean;
) 5 6 7 equals (Ljava/lang/Object;)Z
9 : ; createQueryForLazyField ?(Lorg/bonitasoft/engine/bdm/model/BusinessObject;Lorg/bonitasoft/engine/bdm/model/field/RelationField;)Lorg/bonitasoft/engine/bdm/model/Query;
= > ? @ A -org/bonitasoft/engine/bdm/CountQueryGenerator hasUniqueConstraintOnField `(Lorg/bonitasoft/engine/bdm/model/BusinessObject;Lorg/bonitasoft/engine/bdm/model/field/Field;)Z
C D E createQueryForField ?(Lorg/bonitasoft/engine/bdm/model/BusinessObject;Lorg/bonitasoft/engine/bdm/model/field/Field;)Lorg/bonitasoft/engine/bdm/model/Query;
G H I J K .org/bonitasoft/engine/bdm/model/BusinessObject getUniqueConstraints ()Ljava/util/List; M N O P Q java/util/List iterator ()Ljava/util/Iterator; S T U V W java/util/Iterator hasNext ()Z S Y Z [ next ()Ljava/lang/Object; ] 0org/bonitasoft/engine/bdm/model/UniqueConstraint
\ _ ` K
getFieldNames M b c d size ()I
f g +org/bonitasoft/engine/bdm/model/field/Field M i j 7 contains Code LineNumberTable LocalVariableTable this /Lorg/bonitasoft/engine/bdm/CountQueryGenerator; getQueryPrefix createQueryForPersistenceId Y(Lorg/bonitasoft/engine/bdm/model/BusinessObject;)Lorg/bonitasoft/engine/bdm/model/Query; businessObject 0Lorg/bonitasoft/engine/bdm/model/BusinessObject; getQualifiedReturnType D(Lorg/bonitasoft/engine/bdm/model/BusinessObject;)Ljava/lang/String; getQueryContentForLazyField
addOrderBy (CLjava/lang/StringBuilder;)V tablePrefix C builder Ljava/lang/StringBuilder; buildSelect simpleNameAlias getListReturnType
relationField 5Lorg/bonitasoft/engine/bdm/model/field/RelationField;
StackMapTable createQueryForUniqueConstraint ?(Lorg/bonitasoft/engine/bdm/model/BusinessObject;Lorg/bonitasoft/engine/bdm/model/UniqueConstraint;)Lorg/bonitasoft/engine/bdm/model/Query; uniqueConstraint 2Lorg/bonitasoft/engine/bdm/model/UniqueConstraint; field -Lorg/bonitasoft/engine/bdm/model/field/Field;
SourceFile CountQueryGenerator.java ! = k / *? ? l m n o p k - ? l m n o q r k 6 ? l ! m n o s t u v k : ?
? l &