public class org.hibernate.id.GUIDGenerator implements org.hibernate.id.IdentifierGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.id.GUIDGenerator
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 static boolean WARNED;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/hibernate/id/GUIDGenerator;
invokestatic org.hibernate.internal.CoreLogging.messageLogger:(Ljava/lang/Class;)Lorg/hibernate/internal/CoreMessageLogger;
putstatic org.hibernate.id.GUIDGenerator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: getstatic org.hibernate.id.GUIDGenerator.WARNED:Z
ifne 4
2: iconst_1
putstatic org.hibernate.id.GUIDGenerator.WARNED:Z
3: getstatic org.hibernate.id.GUIDGenerator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
ldc Lorg/hibernate/id/UUIDGenerator;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
ldc Lorg/hibernate/id/UUIDGenerationStrategy;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface org.hibernate.internal.CoreMessageLogger.deprecatedUuidGenerator:(Ljava/lang/String;Ljava/lang/String;)V
4: StackMap locals: org.hibernate.id.GUIDGenerator
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/hibernate/id/GUIDGenerator;
public java.io.Serializable generate(org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object);
descriptor: (Lorg/hibernate/engine/spi/SharedSessionContractImplementor;Ljava/lang/Object;)Ljava/io/Serializable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcServices:()Lorg/hibernate/engine/jdbc/spi/JdbcServices;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcServices.getJdbcEnvironment:()Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getDialect:()Lorg/hibernate/dialect/Dialect;
invokevirtual org.hibernate.dialect.Dialect.getSelectGUIDString:()Ljava/lang/String;
astore 3
start local 3 1: aload 1
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 3
invokeinterface org.hibernate.engine.jdbc.spi.StatementPreparer.prepareStatement:(Ljava/lang/String;)Ljava/sql/PreparedStatement;
astore 4
start local 4 2: aload 1
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.extract:(Ljava/sql/PreparedStatement;)Ljava/sql/ResultSet;
astore 5
start local 5 3: aload 5
invokeinterface java.sql.ResultSet.next:()Z
ifne 5
4: new org.hibernate.HibernateException
dup
ldc "The database returned no GUID identity value"
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.String java.sql.PreparedStatement java.sql.ResultSet
StackMap stack:
aload 5
iconst_1
invokeinterface java.sql.ResultSet.getString:(I)Ljava/lang/String;
astore 6
start local 6 6: goto 10
end local 6 7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
8: aload 1
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 5
aload 4
invokeinterface org.hibernate.resource.jdbc.ResourceRegistry.release:(Ljava/sql/ResultSet;Ljava/sql/Statement;)V
9: aload 7
athrow
start local 6 10: StackMap locals: java.lang.String
StackMap stack:
aload 1
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 5
aload 4
invokeinterface org.hibernate.resource.jdbc.ResourceRegistry.release:(Ljava/sql/ResultSet;Ljava/sql/Statement;)V
11: getstatic org.hibernate.id.GUIDGenerator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 6
invokeinterface org.hibernate.internal.CoreMessageLogger.guidGenerated:(Ljava/lang/String;)V
12: aload 6
astore 9
13: aload 1
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
14: aload 1
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.afterStatementExecution:()V
15: aload 9
areturn
end local 6 end local 5 16: StackMap locals: org.hibernate.id.GUIDGenerator org.hibernate.engine.spi.SharedSessionContractImplementor java.lang.Object java.lang.String java.sql.PreparedStatement
StackMap stack: java.lang.Throwable
astore 8
17: aload 1
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
18: aload 1
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.afterStatementExecution:()V
19: aload 8
athrow
end local 4 20: StackMap locals: org.hibernate.id.GUIDGenerator org.hibernate.engine.spi.SharedSessionContractImplementor java.lang.Object java.lang.String
StackMap stack: java.sql.SQLException
astore 4
start local 4 21: aload 1
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getJdbcServices:()Lorg/hibernate/engine/jdbc/spi/JdbcServices;
invokeinterface org.hibernate.engine.jdbc.spi.JdbcServices.getSqlExceptionHelper:()Lorg/hibernate/engine/jdbc/spi/SqlExceptionHelper;
22: aload 4
23: ldc "could not retrieve GUID"
24: aload 3
25: invokevirtual org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert:(Ljava/sql/SQLException;Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/JDBCException;
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/hibernate/id/GUIDGenerator;
0 26 1 session Lorg/hibernate/engine/spi/SharedSessionContractImplementor;
0 26 2 obj Ljava/lang/Object;
1 26 3 sql Ljava/lang/String;
2 20 4 st Ljava/sql/PreparedStatement;
3 16 5 rs Ljava/sql/ResultSet;
6 7 6 result Ljava/lang/String;
10 16 6 result Ljava/lang/String;
21 26 4 sqle Ljava/sql/SQLException;
Exception table:
from to target type
3 7 7 any
2 13 16 any
1 15 20 Class java.sql.SQLException
16 20 20 Class java.sql.SQLException
Exceptions:
throws org.hibernate.HibernateException
MethodParameters:
Name Flags
session
obj
}
SourceFile: "GUIDGenerator.java"