public class org.hibernate.criterion.CountProjection extends org.hibernate.criterion.AggregateProjection
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.criterion.CountProjection
super_class: org.hibernate.criterion.AggregateProjection
{
private boolean distinct;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
protected void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "count"
aload 1
invokespecial org.hibernate.criterion.AggregateProjection.<init>:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/criterion/CountProjection;
0 2 1 prop Ljava/lang/String;
MethodParameters:
Name Flags
prop
protected java.util.List buildFunctionParameterList(org.hibernate.Criteria, org.hibernate.criterion.CriteriaQuery);
descriptor: (Lorg/hibernate/Criteria;Lorg/hibernate/criterion/CriteriaQuery;)Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 0
getfield org.hibernate.criterion.CountProjection.propertyName:Ljava/lang/String;
aload 1
invokeinterface org.hibernate.criterion.CriteriaQuery.getColumns:(Ljava/lang/String;Lorg/hibernate/Criteria;)[Ljava/lang/String;
astore 3
start local 3 1: aload 0
getfield org.hibernate.criterion.CountProjection.distinct:Z
ifeq 2
aload 0
aload 3
invokevirtual org.hibernate.criterion.CountProjection.buildCountDistinctParameterList:([Ljava/lang/String;)Ljava/util/List;
goto 3
StackMap locals: java.lang.String[]
StackMap stack:
2: aload 3
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
StackMap locals:
StackMap stack: java.util.List
3: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/criterion/CountProjection;
0 4 1 criteria Lorg/hibernate/Criteria;
0 4 2 criteriaQuery Lorg/hibernate/criterion/CriteriaQuery;
1 4 3 cols [Ljava/lang/String;
MethodParameters:
Name Flags
criteria
criteriaQuery
private java.util.List buildCountDistinctParameterList(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
aload 1
arraylength
iconst_1
iadd
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 2
ldc "distinct"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 2
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/criterion/CountProjection;
0 4 1 cols [Ljava/lang/String;
1 4 2 params Ljava/util/List;
MethodParameters:
Name Flags
cols
public org.hibernate.criterion.CountProjection setDistinct();
descriptor: ()Lorg/hibernate/criterion/CountProjection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.hibernate.criterion.CountProjection.distinct:Z
1: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/criterion/CountProjection;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.criterion.CountProjection.distinct:Z
ifeq 2
1: new java.lang.StringBuilder
dup
ldc "distinct "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokespecial org.hibernate.criterion.AggregateProjection.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokespecial org.hibernate.criterion.AggregateProjection.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/criterion/CountProjection;
}
SourceFile: "CountProjection.java"