public class org.hibernate.engine.query.spi.NativeSQLQueryPlan implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.engine.query.spi.NativeSQLQueryPlan
super_class: java.lang.Object
{
private static final org.hibernate.internal.CoreMessageLogger LOG;
descriptor: Lorg/hibernate/internal/CoreMessageLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String sourceQuery;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.hibernate.loader.custom.CustomQuery customQuery;
descriptor: Lorg/hibernate/loader/custom/CustomQuery;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/hibernate/engine/query/spi/NativeSQLQueryPlan;
invokestatic org.hibernate.internal.CoreLogging.messageLogger:(Ljava/lang/Class;)Lorg/hibernate/internal/CoreMessageLogger;
putstatic org.hibernate.engine.query.spi.NativeSQLQueryPlan.LOG:Lorg/hibernate/internal/CoreMessageLogger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, org.hibernate.loader.custom.CustomQuery);
descriptor: (Ljava/lang/String;Lorg/hibernate/loader/custom/CustomQuery;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.hibernate.engine.query.spi.NativeSQLQueryPlan.sourceQuery:Ljava/lang/String;
2: aload 0
aload 2
putfield org.hibernate.engine.query.spi.NativeSQLQueryPlan.customQuery:Lorg/hibernate/loader/custom/CustomQuery;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/engine/query/spi/NativeSQLQueryPlan;
0 4 1 sourceQuery Ljava/lang/String;
0 4 2 customQuery Lorg/hibernate/loader/custom/CustomQuery;
MethodParameters:
Name Flags
sourceQuery
customQuery
public java.lang.String getSourceQuery();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.engine.query.spi.NativeSQLQueryPlan.sourceQuery:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/engine/query/spi/NativeSQLQueryPlan;
public org.hibernate.loader.custom.CustomQuery getCustomQuery();
descriptor: ()Lorg/hibernate/loader/custom/CustomQuery;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.engine.query.spi.NativeSQLQueryPlan.customQuery:Lorg/hibernate/loader/custom/CustomQuery;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/engine/query/spi/NativeSQLQueryPlan;
protected void coordinateSharedCacheCleanup(org.hibernate.engine.spi.SharedSessionContractImplementor);
descriptor: (Lorg/hibernate/engine/spi/SharedSessionContractImplementor;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new org.hibernate.action.internal.BulkOperationCleanupAction
dup
aload 1
aload 0
invokevirtual org.hibernate.engine.query.spi.NativeSQLQueryPlan.getCustomQuery:()Lorg/hibernate/loader/custom/CustomQuery;
invokeinterface org.hibernate.loader.custom.CustomQuery.getQuerySpaces:()Ljava/util/Set;
invokespecial org.hibernate.action.internal.BulkOperationCleanupAction.<init>:(Lorg/hibernate/engine/spi/SharedSessionContractImplementor;Ljava/util/Set;)V
astore 2
start local 2 1: aload 1
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.isEventSource:()Z
ifeq 4
2: aload 1
checkcast org.hibernate.event.spi.EventSource
invokeinterface org.hibernate.event.spi.EventSource.getActionQueue:()Lorg/hibernate/engine/spi/ActionQueue;
aload 2
invokevirtual org.hibernate.engine.spi.ActionQueue.addAction:(Lorg/hibernate/action/internal/BulkOperationCleanupAction;)V
3: goto 5
4: StackMap locals: org.hibernate.action.internal.BulkOperationCleanupAction
StackMap stack:
aload 2
invokevirtual org.hibernate.action.internal.BulkOperationCleanupAction.getAfterTransactionCompletionProcess:()Lorg/hibernate/action/spi/AfterTransactionCompletionProcess;
iconst_1
aload 1
invokeinterface org.hibernate.action.spi.AfterTransactionCompletionProcess.doAfterTransactionCompletion:(ZLorg/hibernate/engine/spi/SharedSessionContractImplementor;)V
5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/hibernate/engine/query/spi/NativeSQLQueryPlan;
0 6 1 session Lorg/hibernate/engine/spi/SharedSessionContractImplementor;
1 6 2 action Lorg/hibernate/action/internal/BulkOperationCleanupAction;
MethodParameters:
Name Flags
session
public int performExecuteUpdate(org.hibernate.engine.spi.QueryParameters, org.hibernate.engine.spi.SharedSessionContractImplementor);
descriptor: (Lorg/hibernate/engine/spi/QueryParameters;Lorg/hibernate/engine/spi/SharedSessionContractImplementor;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual org.hibernate.engine.query.spi.NativeSQLQueryPlan.coordinateSharedCacheCleanup:(Lorg/hibernate/engine/spi/SharedSessionContractImplementor;)V
1: aload 1
invokevirtual org.hibernate.engine.spi.QueryParameters.isCallable:()Z
ifeq 3
2: new java.lang.IllegalArgumentException
dup
ldc "callable not yet supported for native queries"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 4: aload 1
invokevirtual org.hibernate.engine.spi.QueryParameters.getRowSelection:()Lorg/hibernate/engine/spi/RowSelection;
astore 5
start local 5 5: aload 1
aload 0
getfield org.hibernate.engine.query.spi.NativeSQLQueryPlan.customQuery:Lorg/hibernate/loader/custom/CustomQuery;
invokeinterface org.hibernate.loader.custom.CustomQuery.getSQL:()Ljava/lang/String;
aload 2
invokevirtual org.hibernate.engine.spi.QueryParameters.processFilters:(Ljava/lang/String;Lorg/hibernate/engine/spi/SharedSessionContractImplementor;)V
6: aload 2
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcServices:()Lorg/hibernate/engine/jdbc/spi/JdbcServices;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcServices.getDialect:()Lorg/hibernate/dialect/Dialect;
7: aload 1
invokevirtual org.hibernate.engine.spi.QueryParameters.getFilteredSQL:()Ljava/lang/String;
8: aload 1
9: aload 2
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getFactory:()Lorg/hibernate/engine/spi/SessionFactoryImplementor;
invokeinterface org.hibernate.engine.spi.SessionFactoryImplementor.getSessionFactoryOptions:()Lorg/hibernate/boot/spi/SessionFactoryOptions;
invokeinterface org.hibernate.boot.spi.SessionFactoryOptions.isCommentsEnabled:()Z
10: invokevirtual org.hibernate.dialect.Dialect.addSqlHintOrComment:(Ljava/lang/String;Lorg/hibernate/engine/spi/QueryParameters;Z)Ljava/lang/String;
11: astore 6
start local 6 12: aload 2
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.getStatementPreparer:()Lorg/hibernate/engine/jdbc/spi/StatementPreparer;
aload 6
iconst_0
invokeinterface org.hibernate.engine.jdbc.spi.StatementPreparer.prepareStatement:(Ljava/lang/String;Z)Ljava/sql/PreparedStatement;
astore 4
start local 4 13: iconst_1
istore 7
start local 7 14: aload 0
getfield org.hibernate.engine.query.spi.NativeSQLQueryPlan.customQuery:Lorg/hibernate/loader/custom/CustomQuery;
invokeinterface org.hibernate.loader.custom.CustomQuery.getParameterValueBinders:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 17
StackMap locals: org.hibernate.engine.query.spi.NativeSQLQueryPlan org.hibernate.engine.spi.QueryParameters org.hibernate.engine.spi.SharedSessionContractImplementor int java.sql.PreparedStatement org.hibernate.engine.spi.RowSelection java.lang.String int top java.util.Iterator
StackMap stack:
15: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.hibernate.param.ParameterBinder
astore 8
start local 8 16: iload 7
aload 8
aload 4
aload 1
aload 2
iload 7
invokeinterface org.hibernate.param.ParameterBinder.bind:(Ljava/sql/PreparedStatement;Lorg/hibernate/engine/spi/QueryParameters;Lorg/hibernate/engine/spi/SharedSessionContractImplementor;I)I
iadd
istore 7
end local 8 17: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
18: aload 5
ifnull 20
aload 5
invokevirtual org.hibernate.engine.spi.RowSelection.getTimeout:()Ljava/lang/Integer;
ifnull 20
19: aload 4
aload 5
invokevirtual org.hibernate.engine.spi.RowSelection.getTimeout:()Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
invokeinterface java.sql.PreparedStatement.setQueryTimeout:(I)V
20: StackMap locals: org.hibernate.engine.query.spi.NativeSQLQueryPlan org.hibernate.engine.spi.QueryParameters org.hibernate.engine.spi.SharedSessionContractImplementor int java.sql.PreparedStatement org.hibernate.engine.spi.RowSelection java.lang.String int
StackMap stack:
aload 2
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.getResultSetReturn:()Lorg/hibernate/engine/jdbc/spi/ResultSetReturn;
aload 4
invokeinterface org.hibernate.engine.jdbc.spi.ResultSetReturn.executeUpdate:(Ljava/sql/PreparedStatement;)I
istore 3
end local 7 21: goto 27
22: StackMap locals: org.hibernate.engine.query.spi.NativeSQLQueryPlan org.hibernate.engine.spi.QueryParameters org.hibernate.engine.spi.SharedSessionContractImplementor int java.sql.PreparedStatement org.hibernate.engine.spi.RowSelection java.lang.String
StackMap stack: java.lang.Throwable
astore 10
23: aload 4
ifnull 26
24: aload 2
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.getLogicalConnection:()Lorg/hibernate/resource/jdbc/spi/LogicalConnectionImplementor;
invokeinterface org.hibernate.resource.jdbc.spi.LogicalConnectionImplementor.getResourceRegistry:()Lorg/hibernate/resource/jdbc/ResourceRegistry;
aload 4
invokeinterface org.hibernate.resource.jdbc.ResourceRegistry.release:(Ljava/sql/Statement;)V
25: aload 2
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.afterStatementExecution:()V
26: StackMap locals: org.hibernate.engine.query.spi.NativeSQLQueryPlan org.hibernate.engine.spi.QueryParameters org.hibernate.engine.spi.SharedSessionContractImplementor int java.sql.PreparedStatement org.hibernate.engine.spi.RowSelection java.lang.String top top top java.lang.Throwable
StackMap stack:
aload 10
athrow
27: StackMap locals: org.hibernate.engine.query.spi.NativeSQLQueryPlan org.hibernate.engine.spi.QueryParameters org.hibernate.engine.spi.SharedSessionContractImplementor int java.sql.PreparedStatement org.hibernate.engine.spi.RowSelection java.lang.String
StackMap stack:
aload 4
ifnull 37
28: aload 2
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.getLogicalConnection:()Lorg/hibernate/resource/jdbc/spi/LogicalConnectionImplementor;
invokeinterface org.hibernate.resource.jdbc.spi.LogicalConnectionImplementor.getResourceRegistry:()Lorg/hibernate/resource/jdbc/ResourceRegistry;
aload 4
invokeinterface org.hibernate.resource.jdbc.ResourceRegistry.release:(Ljava/sql/Statement;)V
29: aload 2
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.afterStatementExecution:()V
end local 6 30: goto 37
end local 4 31: StackMap locals: org.hibernate.engine.query.spi.NativeSQLQueryPlan org.hibernate.engine.spi.QueryParameters org.hibernate.engine.spi.SharedSessionContractImplementor int top org.hibernate.engine.spi.RowSelection
StackMap stack: java.sql.SQLException
astore 6
start local 6 32: aload 2
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getFactory:()Lorg/hibernate/engine/spi/SessionFactoryImplementor;
invokeinterface org.hibernate.engine.spi.SessionFactoryImplementor.getSQLExceptionHelper:()Lorg/hibernate/engine/jdbc/spi/SqlExceptionHelper;
33: aload 6
34: ldc "could not execute native bulk manipulation query"
35: aload 0
getfield org.hibernate.engine.query.spi.NativeSQLQueryPlan.sourceQuery:Ljava/lang/String;
36: invokevirtual org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert:(Ljava/sql/SQLException;Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/JDBCException;
athrow
end local 6 start local 4 37: StackMap locals: org.hibernate.engine.query.spi.NativeSQLQueryPlan org.hibernate.engine.spi.QueryParameters org.hibernate.engine.spi.SharedSessionContractImplementor int java.sql.PreparedStatement org.hibernate.engine.spi.RowSelection
StackMap stack:
iload 3
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lorg/hibernate/engine/query/spi/NativeSQLQueryPlan;
0 38 1 queryParameters Lorg/hibernate/engine/spi/QueryParameters;
0 38 2 session Lorg/hibernate/engine/spi/SharedSessionContractImplementor;
4 38 3 result I
13 31 4 ps Ljava/sql/PreparedStatement;
37 38 4 ps Ljava/sql/PreparedStatement;
5 38 5 selection Lorg/hibernate/engine/spi/RowSelection;
12 30 6 sql Ljava/lang/String;
14 21 7 col I
16 17 8 binder Lorg/hibernate/param/ParameterBinder;
32 37 6 sqle Ljava/sql/SQLException;
Exception table:
from to target type
13 22 22 any
5 30 31 Class java.sql.SQLException
Exceptions:
throws org.hibernate.HibernateException
MethodParameters:
Name Flags
queryParameters
session
}
SourceFile: "NativeSQLQueryPlan.java"