public class org.hibernate.id.enhanced.TableGenerator implements org.hibernate.id.PersistentIdentifierGenerator, org.hibernate.id.Configurable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.id.enhanced.TableGenerator
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
public static final java.lang.String CONFIG_PREFER_SEGMENT_PER_ENTITY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "prefer_entity_table_as_segment_value"
public static final java.lang.String TABLE_PARAM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "table_name"
public static final java.lang.String DEF_TABLE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "hibernate_sequences"
public static final java.lang.String VALUE_COLUMN_PARAM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "value_column_name"
public static final java.lang.String DEF_VALUE_COLUMN;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "next_val"
public static final java.lang.String SEGMENT_COLUMN_PARAM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "segment_column_name"
public static final java.lang.String DEF_SEGMENT_COLUMN;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "sequence_name"
public static final java.lang.String SEGMENT_VALUE_PARAM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "segment_value"
public static final java.lang.String DEF_SEGMENT_VALUE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "default"
public static final java.lang.String SEGMENT_LENGTH_PARAM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "segment_value_length"
public static final int DEF_SEGMENT_LENGTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 255
public static final java.lang.String INITIAL_PARAM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "initial_value"
public static final int DEFAULT_INITIAL_VALUE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final java.lang.String INCREMENT_PARAM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "increment_size"
public static final int DEFAULT_INCREMENT_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final java.lang.String OPT_PARAM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "optimizer"
private boolean storeLastUsedValue;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.hibernate.type.Type identifierType;
descriptor: Lorg/hibernate/type/Type;
flags: (0x0002) ACC_PRIVATE
private org.hibernate.boot.model.relational.QualifiedName qualifiedTableName;
descriptor: Lorg/hibernate/boot/model/relational/QualifiedName;
flags: (0x0002) ACC_PRIVATE
private java.lang.String renderedTableName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String segmentColumnName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String segmentValue;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int segmentValueLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String valueColumnName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int initialValue;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int incrementSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String selectQuery;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String insertQuery;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String updateQuery;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private org.hibernate.id.enhanced.Optimizer optimizer;
descriptor: Lorg/hibernate/id/enhanced/Optimizer;
flags: (0x0002) ACC_PRIVATE
private long accessCount;
descriptor: J
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/hibernate/internal/CoreMessageLogger;
1: ldc Lorg/hibernate/id/enhanced/TableGenerator;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
2: invokestatic org.jboss.logging.Logger.getMessageLogger:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
checkcast org.hibernate.internal.CoreMessageLogger
putstatic org.hibernate.id.enhanced.TableGenerator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public java.lang.Object generatorKey();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.qualifiedTableName:Lorg/hibernate/boot/model/relational/QualifiedName;
invokeinterface org.hibernate.boot.model.relational.QualifiedName.render:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public final org.hibernate.type.Type getIdentifierType();
descriptor: ()Lorg/hibernate/type/Type;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.identifierType:Lorg/hibernate/type/Type;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public final java.lang.String getTableName();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.qualifiedTableName:Lorg/hibernate/boot/model/relational/QualifiedName;
invokeinterface org.hibernate.boot.model.relational.QualifiedName.render:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public final java.lang.String getSegmentColumnName();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentColumnName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public final java.lang.String getSegmentValue();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentValue:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public final int getSegmentValueLength();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentValueLength:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public final java.lang.String getValueColumnName();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.valueColumnName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public final int getInitialValue();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.initialValue:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public final int getIncrementSize();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.incrementSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public final org.hibernate.id.enhanced.Optimizer getOptimizer();
descriptor: ()Lorg/hibernate/id/enhanced/Optimizer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.optimizer:Lorg/hibernate/id/enhanced/Optimizer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public final long getTableAccessCount();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.accessCount:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
public void configure(org.hibernate.type.Type, java.util.Properties, org.hibernate.service.ServiceRegistry);
descriptor: (Lorg/hibernate/type/Type;Ljava/util/Properties;Lorg/hibernate/service/ServiceRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 3
ldc Lorg/hibernate/engine/config/spi/ConfigurationService;
invokeinterface org.hibernate.service.ServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.config.spi.ConfigurationService
1: ldc "hibernate.id.generator.stored_last_used"
getstatic org.hibernate.engine.config.spi.StandardConverters.BOOLEAN:Lorg/hibernate/engine/config/spi/ConfigurationService$Converter;
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface org.hibernate.engine.config.spi.ConfigurationService.getSetting:(Ljava/lang/String;Lorg/hibernate/engine/config/spi/ConfigurationService$Converter;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
2: putfield org.hibernate.id.enhanced.TableGenerator.storeLastUsedValue:Z
3: aload 0
aload 1
putfield org.hibernate.id.enhanced.TableGenerator.identifierType:Lorg/hibernate/type/Type;
4: aload 3
ldc Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
invokeinterface org.hibernate.service.ServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.jdbc.env.spi.JdbcEnvironment
astore 4
start local 4 5: aload 0
aload 0
aload 2
aload 4
aload 3
invokevirtual org.hibernate.id.enhanced.TableGenerator.determineGeneratorTableName:(Ljava/util/Properties;Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;Lorg/hibernate/service/ServiceRegistry;)Lorg/hibernate/boot/model/relational/QualifiedName;
putfield org.hibernate.id.enhanced.TableGenerator.qualifiedTableName:Lorg/hibernate/boot/model/relational/QualifiedName;
6: aload 0
aload 0
aload 2
aload 4
invokevirtual org.hibernate.id.enhanced.TableGenerator.determineSegmentColumnName:(Ljava/util/Properties;Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;)Ljava/lang/String;
putfield org.hibernate.id.enhanced.TableGenerator.segmentColumnName:Ljava/lang/String;
7: aload 0
aload 0
aload 2
aload 4
invokevirtual org.hibernate.id.enhanced.TableGenerator.determineValueColumnName:(Ljava/util/Properties;Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;)Ljava/lang/String;
putfield org.hibernate.id.enhanced.TableGenerator.valueColumnName:Ljava/lang/String;
8: aload 0
aload 0
aload 2
invokevirtual org.hibernate.id.enhanced.TableGenerator.determineSegmentValue:(Ljava/util/Properties;)Ljava/lang/String;
putfield org.hibernate.id.enhanced.TableGenerator.segmentValue:Ljava/lang/String;
9: aload 0
aload 0
aload 2
invokevirtual org.hibernate.id.enhanced.TableGenerator.determineSegmentColumnSize:(Ljava/util/Properties;)I
putfield org.hibernate.id.enhanced.TableGenerator.segmentValueLength:I
10: aload 0
aload 0
aload 2
invokevirtual org.hibernate.id.enhanced.TableGenerator.determineInitialValue:(Ljava/util/Properties;)I
putfield org.hibernate.id.enhanced.TableGenerator.initialValue:I
11: aload 0
aload 0
aload 2
invokevirtual org.hibernate.id.enhanced.TableGenerator.determineIncrementSize:(Ljava/util/Properties;)I
putfield org.hibernate.id.enhanced.TableGenerator.incrementSize:I
12: ldc "optimizer"
13: aload 2
14: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.incrementSize:I
aload 2
invokestatic org.hibernate.id.enhanced.OptimizerFactory.determineImplicitOptimizerName:(ILjava/util/Properties;)Ljava/lang/String;
15: invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getString:(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 16: ldc "initial_value"
aload 2
iconst_m1
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getInt:(Ljava/lang/String;Ljava/util/Map;I)I
istore 6
start local 6 17: aload 0
18: aload 5
19: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.identifierType:Lorg/hibernate/type/Type;
invokeinterface org.hibernate.type.Type.getReturnedClass:()Ljava/lang/Class;
20: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.incrementSize:I
21: iload 6
i2l
22: invokestatic org.hibernate.id.enhanced.OptimizerFactory.buildOptimizer:(Ljava/lang/String;Ljava/lang/Class;IJ)Lorg/hibernate/id/enhanced/Optimizer;
putfield org.hibernate.id.enhanced.TableGenerator.optimizer:Lorg/hibernate/id/enhanced/Optimizer;
23: return
end local 6 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 24 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 24 1 type Lorg/hibernate/type/Type;
0 24 2 params Ljava/util/Properties;
0 24 3 serviceRegistry Lorg/hibernate/service/ServiceRegistry;
5 24 4 jdbcEnvironment Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
16 24 5 optimizationStrategy Ljava/lang/String;
17 24 6 optimizerInitialValue I
Exceptions:
throws org.hibernate.MappingException
MethodParameters:
Name Flags
type
params
serviceRegistry
protected org.hibernate.boot.model.relational.QualifiedName determineGeneratorTableName(java.util.Properties, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment, org.hibernate.service.ServiceRegistry);
descriptor: (Ljava/util/Properties;Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;Lorg/hibernate/service/ServiceRegistry;)Lorg/hibernate/boot/model/relational/QualifiedName;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc "hibernate_sequences"
astore 4
start local 4 1: aload 3
ldc Lorg/hibernate/engine/config/spi/ConfigurationService;
invokeinterface org.hibernate.service.ServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.config.spi.ConfigurationService
2: ldc "hibernate.model.generator_name_as_sequence_name"
getstatic org.hibernate.engine.config.spi.StandardConverters.BOOLEAN:Lorg/hibernate/engine/config/spi/ConfigurationService$Converter;
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface org.hibernate.engine.config.spi.ConfigurationService.getSetting:(Ljava/lang/String;Lorg/hibernate/engine/config/spi/ConfigurationService$Converter;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
3: astore 5
start local 5 4: aload 5
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 8
5: aload 1
ldc "GENERATOR_NAME"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 6: aload 6
invokestatic org.hibernate.internal.util.StringHelper.isNotEmpty:(Ljava/lang/String;)Z
ifeq 8
7: aload 6
astore 4
end local 6 8: StackMap locals: java.lang.String java.lang.Boolean
StackMap stack:
ldc "table_name"
aload 1
aload 4
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getString:(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 9: aload 6
ldc "."
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 11
10: getstatic org.hibernate.boot.model.relational.QualifiedNameParser.INSTANCE:Lorg/hibernate/boot/model/relational/QualifiedNameParser;
aload 6
invokevirtual org.hibernate.boot.model.relational.QualifiedNameParser.parse:(Ljava/lang/String;)Lorg/hibernate/boot/model/relational/QualifiedNameParser$NameParts;
areturn
11: StackMap locals: java.lang.String
StackMap stack:
aload 2
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getIdentifierHelper:()Lorg/hibernate/engine/jdbc/env/spi/IdentifierHelper;
12: ldc "catalog"
aload 1
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getString:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;
13: invokeinterface org.hibernate.engine.jdbc.env.spi.IdentifierHelper.toIdentifier:(Ljava/lang/String;)Lorg/hibernate/boot/model/naming/Identifier;
astore 7
start local 7 14: aload 2
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getIdentifierHelper:()Lorg/hibernate/engine/jdbc/env/spi/IdentifierHelper;
15: ldc "schema"
aload 1
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getString:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;
16: invokeinterface org.hibernate.engine.jdbc.env.spi.IdentifierHelper.toIdentifier:(Ljava/lang/String;)Lorg/hibernate/boot/model/naming/Identifier;
astore 8
start local 8 17: new org.hibernate.boot.model.relational.QualifiedNameParser$NameParts
dup
18: aload 7
19: aload 8
20: aload 2
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getIdentifierHelper:()Lorg/hibernate/engine/jdbc/env/spi/IdentifierHelper;
aload 6
invokeinterface org.hibernate.engine.jdbc.env.spi.IdentifierHelper.toIdentifier:(Ljava/lang/String;)Lorg/hibernate/boot/model/naming/Identifier;
21: invokespecial org.hibernate.boot.model.relational.QualifiedNameParser$NameParts.<init>:(Lorg/hibernate/boot/model/naming/Identifier;Lorg/hibernate/boot/model/naming/Identifier;Lorg/hibernate/boot/model/naming/Identifier;)V
areturn
end local 8 end local 7 end local 6 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 22 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 22 1 params Ljava/util/Properties;
0 22 2 jdbcEnvironment Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
0 22 3 serviceRegistry Lorg/hibernate/service/ServiceRegistry;
1 22 4 fallbackTableName Ljava/lang/String;
4 22 5 preferGeneratorNameAsDefaultName Ljava/lang/Boolean;
6 8 6 generatorName Ljava/lang/String;
9 22 6 tableName Ljava/lang/String;
14 22 7 catalog Lorg/hibernate/boot/model/naming/Identifier;
17 22 8 schema Lorg/hibernate/boot/model/naming/Identifier;
MethodParameters:
Name Flags
params
jdbcEnvironment
serviceRegistry
protected java.lang.String determineSegmentColumnName(java.util.Properties, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment);
descriptor: (Ljava/util/Properties;Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: ldc "segment_column_name"
aload 1
ldc "sequence_name"
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getString:(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 2
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getIdentifierHelper:()Lorg/hibernate/engine/jdbc/env/spi/IdentifierHelper;
aload 3
invokeinterface org.hibernate.engine.jdbc.env.spi.IdentifierHelper.toIdentifier:(Ljava/lang/String;)Lorg/hibernate/boot/model/naming/Identifier;
aload 2
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getDialect:()Lorg/hibernate/dialect/Dialect;
invokevirtual org.hibernate.boot.model.naming.Identifier.render:(Lorg/hibernate/dialect/Dialect;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 2 1 params Ljava/util/Properties;
0 2 2 jdbcEnvironment Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
1 2 3 name Ljava/lang/String;
MethodParameters:
Name Flags
params
jdbcEnvironment
protected java.lang.String determineValueColumnName(java.util.Properties, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment);
descriptor: (Ljava/util/Properties;Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: ldc "value_column_name"
aload 1
ldc "next_val"
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getString:(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 2
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getIdentifierHelper:()Lorg/hibernate/engine/jdbc/env/spi/IdentifierHelper;
aload 3
invokeinterface org.hibernate.engine.jdbc.env.spi.IdentifierHelper.toIdentifier:(Ljava/lang/String;)Lorg/hibernate/boot/model/naming/Identifier;
aload 2
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getDialect:()Lorg/hibernate/dialect/Dialect;
invokevirtual org.hibernate.boot.model.naming.Identifier.render:(Lorg/hibernate/dialect/Dialect;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 2 1 params Ljava/util/Properties;
0 2 2 jdbcEnvironment Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
1 2 3 name Ljava/lang/String;
MethodParameters:
Name Flags
params
jdbcEnvironment
protected java.lang.String determineSegmentValue(java.util.Properties);
descriptor: (Ljava/util/Properties;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "segment_value"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
invokestatic org.hibernate.internal.util.StringHelper.isEmpty:(Ljava/lang/String;)Z
ifeq 3
2: aload 0
aload 1
invokevirtual org.hibernate.id.enhanced.TableGenerator.determineDefaultSegmentValue:(Ljava/util/Properties;)Ljava/lang/String;
astore 2
3: StackMap locals: java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 4 1 params Ljava/util/Properties;
1 4 2 segmentValue Ljava/lang/String;
MethodParameters:
Name Flags
params
protected java.lang.String determineDefaultSegmentValue(java.util.Properties);
descriptor: (Ljava/util/Properties;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: ldc "prefer_entity_table_as_segment_value"
aload 1
iconst_0
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getBoolean:(Ljava/lang/String;Ljava/util/Map;Z)Z
istore 2
start local 2 1: iload 2
ifeq 2
aload 1
ldc "target_table"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
goto 3
StackMap locals: int
StackMap stack:
2: ldc "default"
StackMap locals:
StackMap stack: java.lang.String
3: astore 3
start local 3 4: getstatic org.hibernate.id.enhanced.TableGenerator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.qualifiedTableName:Lorg/hibernate/boot/model/relational/QualifiedName;
invokeinterface org.hibernate.boot.model.relational.QualifiedName.render:()Ljava/lang/String;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentColumnName:Ljava/lang/String;
aload 3
invokeinterface org.hibernate.internal.CoreMessageLogger.usingDefaultIdGeneratorSegmentValue:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 6 1 params Ljava/util/Properties;
1 6 2 preferSegmentPerEntity Z
4 6 3 defaultToUse Ljava/lang/String;
MethodParameters:
Name Flags
params
protected int determineSegmentColumnSize(java.util.Properties);
descriptor: (Ljava/util/Properties;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: ldc "segment_value_length"
aload 1
sipush 255
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getInt:(Ljava/lang/String;Ljava/util/Map;I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 1 1 params Ljava/util/Properties;
MethodParameters:
Name Flags
params
protected int determineInitialValue(java.util.Properties);
descriptor: (Ljava/util/Properties;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: ldc "initial_value"
aload 1
iconst_1
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getInt:(Ljava/lang/String;Ljava/util/Map;I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 1 1 params Ljava/util/Properties;
MethodParameters:
Name Flags
params
protected int determineIncrementSize(java.util.Properties);
descriptor: (Ljava/util/Properties;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: ldc "increment_size"
aload 1
iconst_1
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getInt:(Ljava/lang/String;Ljava/util/Map;I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 1 1 params Ljava/util/Properties;
MethodParameters:
Name Flags
params
protected java.lang.String buildSelectQuery(org.hibernate.dialect.Dialect);
descriptor: (Lorg/hibernate/dialect/Dialect;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "select "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "tbl"
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.valueColumnName:Ljava/lang/String;
invokestatic org.hibernate.internal.util.StringHelper.qualify:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: ldc " from "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.renderedTableName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
ldc "tbl"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc " where "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "tbl"
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentColumnName:Ljava/lang/String;
invokestatic org.hibernate.internal.util.StringHelper.qualify:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "=?"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 4: new org.hibernate.LockOptions
dup
getstatic org.hibernate.LockMode.PESSIMISTIC_WRITE:Lorg/hibernate/LockMode;
invokespecial org.hibernate.LockOptions.<init>:(Lorg/hibernate/LockMode;)V
astore 3
start local 3 5: aload 3
ldc "tbl"
getstatic org.hibernate.LockMode.PESSIMISTIC_WRITE:Lorg/hibernate/LockMode;
invokevirtual org.hibernate.LockOptions.setAliasSpecificLockMode:(Ljava/lang/String;Lorg/hibernate/LockMode;)Lorg/hibernate/LockOptions;
pop
6: ldc "tbl"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.valueColumnName:Ljava/lang/String;
aastore
invokestatic java.util.Collections.singletonMap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
astore 4
start local 4 7: aload 1
aload 2
aload 3
aload 4
invokevirtual org.hibernate.dialect.Dialect.applyLocksToSql:(Ljava/lang/String;Lorg/hibernate/LockOptions;Ljava/util/Map;)Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 8 1 dialect Lorg/hibernate/dialect/Dialect;
4 8 2 query Ljava/lang/String;
5 8 3 lockOptions Lorg/hibernate/LockOptions;
7 8 4 updateTargetColumnsMap Ljava/util/Map;
MethodParameters:
Name Flags
dialect
protected java.lang.String buildUpdateQuery();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "update "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.renderedTableName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: ldc " set "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.valueColumnName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "=? "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc " where "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.valueColumnName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "=? and "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentColumnName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "=?"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/id/enhanced/TableGenerator;
protected java.lang.String buildInsertQuery();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "insert into "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.renderedTableName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentColumnName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.valueColumnName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ") "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " values (?,?)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
protected org.hibernate.boot.model.relational.InitCommand generateInsertInitCommand();
descriptor: ()Lorg/hibernate/boot/model/relational/InitCommand;
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=2, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.initialValue:I
istore 1
start local 1 1: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.storeLastUsedValue:Z
ifeq 3
2: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.initialValue:I
iconst_1
isub
istore 1
3: StackMap locals: int
StackMap stack:
new org.hibernate.boot.model.relational.InitCommand
dup
iconst_1
anewarray java.lang.String
dup
iconst_0
new java.lang.StringBuilder
dup
ldc "insert into "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.renderedTableName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentColumnName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.valueColumnName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " values ('"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentValue:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "',"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
invokespecial org.hibernate.boot.model.relational.InitCommand.<init>:([Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/id/enhanced/TableGenerator;
1 4 1 value I
private org.hibernate.id.IntegralDataTypeHolder makeValue();
descriptor: ()Lorg/hibernate/id/IntegralDataTypeHolder;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.identifierType:Lorg/hibernate/type/Type;
invokeinterface org.hibernate.type.Type.getReturnedClass:()Ljava/lang/Class;
invokestatic org.hibernate.id.IdentifierGeneratorHelper.getIntegralDataTypeHolder:(Ljava/lang/Class;)Lorg/hibernate/id/IntegralDataTypeHolder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
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=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getFactory:()Lorg/hibernate/engine/spi/SessionFactoryImplementor;
invokeinterface org.hibernate.engine.spi.SessionFactoryImplementor.getServiceRegistry:()Lorg/hibernate/service/spi/ServiceRegistryImplementor;
1: ldc Lorg/hibernate/engine/jdbc/spi/JdbcServices;
invokeinterface org.hibernate.service.spi.ServiceRegistryImplementor.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.jdbc.spi.JdbcServices
2: invokeinterface org.hibernate.engine.jdbc.spi.JdbcServices.getSqlStatementLogger:()Lorg/hibernate/engine/jdbc/spi/SqlStatementLogger;
3: astore 3
start local 3 4: aload 1
invokeinterface org.hibernate.engine.spi.SharedSessionContractImplementor.getEventListenerManager:()Lorg/hibernate/engine/spi/SessionEventListenerManager;
astore 4
start local 4 5: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.optimizer:Lorg/hibernate/id/enhanced/Optimizer;
6: new org.hibernate.id.enhanced.TableGenerator$1
dup
aload 0
aload 1
aload 3
aload 4
invokespecial org.hibernate.id.enhanced.TableGenerator$1.<init>:(Lorg/hibernate/id/enhanced/TableGenerator;Lorg/hibernate/engine/spi/SharedSessionContractImplementor;Lorg/hibernate/engine/jdbc/spi/SqlStatementLogger;Lorg/hibernate/engine/spi/SessionEventListenerManager;)V
7: invokeinterface org.hibernate.id.enhanced.Optimizer.generate:(Lorg/hibernate/id/enhanced/AccessCallback;)Ljava/io/Serializable;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 8 1 session Lorg/hibernate/engine/spi/SharedSessionContractImplementor;
0 8 2 obj Ljava/lang/Object;
4 8 3 statementLogger Lorg/hibernate/engine/jdbc/spi/SqlStatementLogger;
5 8 4 statsCollector Lorg/hibernate/engine/spi/SessionEventListenerManager;
MethodParameters:
Name Flags
session final
obj final
private java.sql.PreparedStatement prepareStatement(java.sql.Connection, java.lang.String, org.hibernate.engine.jdbc.spi.SqlStatementLogger, org.hibernate.engine.spi.SessionEventListenerManager);
descriptor: (Ljava/sql/Connection;Ljava/lang/String;Lorg/hibernate/engine/jdbc/spi/SqlStatementLogger;Lorg/hibernate/engine/spi/SessionEventListenerManager;)Ljava/sql/PreparedStatement;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
aload 2
getstatic org.hibernate.engine.jdbc.internal.FormatStyle.BASIC:Lorg/hibernate/engine/jdbc/internal/FormatStyle;
invokevirtual org.hibernate.engine.jdbc.internal.FormatStyle.getFormatter:()Lorg/hibernate/engine/jdbc/internal/Formatter;
invokevirtual org.hibernate.engine.jdbc.spi.SqlStatementLogger.logStatement:(Ljava/lang/String;Lorg/hibernate/engine/jdbc/internal/Formatter;)V
1: aload 4
invokeinterface org.hibernate.engine.spi.SessionEventListenerManager.jdbcPrepareStatementStart:()V
2: aload 1
aload 2
invokeinterface java.sql.Connection.prepareStatement:(Ljava/lang/String;)Ljava/sql/PreparedStatement;
astore 6
3: aload 4
invokeinterface org.hibernate.engine.spi.SessionEventListenerManager.jdbcPrepareStatementEnd:()V
4: aload 6
areturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
6: aload 4
invokeinterface org.hibernate.engine.spi.SessionEventListenerManager.jdbcPrepareStatementEnd:()V
7: aload 5
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 8 1 connection Ljava/sql/Connection;
0 8 2 sql Ljava/lang/String;
0 8 3 statementLogger Lorg/hibernate/engine/jdbc/spi/SqlStatementLogger;
0 8 4 statsCollector Lorg/hibernate/engine/spi/SessionEventListenerManager;
Exception table:
from to target type
1 3 5 any
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
connection
sql
statementLogger
statsCollector
private int executeUpdate(java.sql.PreparedStatement, org.hibernate.engine.spi.SessionEventListenerManager);
descriptor: (Ljava/sql/PreparedStatement;Lorg/hibernate/engine/spi/SessionEventListenerManager;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.hibernate.engine.spi.SessionEventListenerManager.jdbcExecuteStatementStart:()V
1: aload 1
invokeinterface java.sql.PreparedStatement.executeUpdate:()I
istore 4
2: aload 2
invokeinterface org.hibernate.engine.spi.SessionEventListenerManager.jdbcExecuteStatementEnd:()V
3: iload 4
ireturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
5: aload 2
invokeinterface org.hibernate.engine.spi.SessionEventListenerManager.jdbcExecuteStatementEnd:()V
6: aload 3
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 7 1 ps Ljava/sql/PreparedStatement;
0 7 2 statsCollector Lorg/hibernate/engine/spi/SessionEventListenerManager;
Exception table:
from to target type
0 2 4 any
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
ps
statsCollector
private java.sql.ResultSet executeQuery(java.sql.PreparedStatement, org.hibernate.engine.spi.SessionEventListenerManager);
descriptor: (Ljava/sql/PreparedStatement;Lorg/hibernate/engine/spi/SessionEventListenerManager;)Ljava/sql/ResultSet;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.hibernate.engine.spi.SessionEventListenerManager.jdbcExecuteStatementStart:()V
1: aload 1
invokeinterface java.sql.PreparedStatement.executeQuery:()Ljava/sql/ResultSet;
astore 4
2: aload 2
invokeinterface org.hibernate.engine.spi.SessionEventListenerManager.jdbcExecuteStatementEnd:()V
3: aload 4
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
5: aload 2
invokeinterface org.hibernate.engine.spi.SessionEventListenerManager.jdbcExecuteStatementEnd:()V
6: aload 3
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 7 1 ps Ljava/sql/PreparedStatement;
0 7 2 statsCollector Lorg/hibernate/engine/spi/SessionEventListenerManager;
Exception table:
from to target type
0 2 4 any
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
ps
statsCollector
public java.lang.String[] sqlCreateStrings(org.hibernate.dialect.Dialect);
descriptor: (Lorg/hibernate/dialect/Dialect;)[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=2, args_size=2
start local 0 start local 1 0: iconst_1
anewarray java.lang.String
dup
iconst_0
1: new java.lang.StringBuilder
dup
aload 1
invokevirtual org.hibernate.dialect.Dialect.getCreateTableString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.renderedTableName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " ( "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentColumnName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 1
bipush 12
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentValueLength:I
i2l
iconst_0
iconst_0
invokevirtual org.hibernate.dialect.Dialect.getTypeName:(IJII)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not null "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.valueColumnName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 1
bipush -5
invokevirtual org.hibernate.dialect.Dialect.getTypeName:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc ", primary key ( "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentColumnName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " ) )"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual org.hibernate.dialect.Dialect.getTableTypeString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
6: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 7 1 dialect Lorg/hibernate/dialect/Dialect;
Exceptions:
throws org.hibernate.HibernateException
MethodParameters:
Name Flags
dialect
public java.lang.String[] sqlDropStrings(org.hibernate.dialect.Dialect);
descriptor: (Lorg/hibernate/dialect/Dialect;)[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.renderedTableName:Ljava/lang/String;
invokevirtual org.hibernate.dialect.Dialect.getDropTableString:(Ljava/lang/String;)Ljava/lang/String;
aastore
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 1 1 dialect Lorg/hibernate/dialect/Dialect;
Exceptions:
throws org.hibernate.HibernateException
MethodParameters:
Name Flags
dialect
public void registerExportables(org.hibernate.boot.model.relational.Database);
descriptor: (Lorg/hibernate/boot/model/relational/Database;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=12, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.hibernate.boot.model.relational.Database.getJdbcEnvironment:()Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getDialect:()Lorg/hibernate/dialect/Dialect;
astore 2
start local 2 1: aload 1
2: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.qualifiedTableName:Lorg/hibernate/boot/model/relational/QualifiedName;
invokeinterface org.hibernate.boot.model.relational.QualifiedName.getCatalogName:()Lorg/hibernate/boot/model/naming/Identifier;
3: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.qualifiedTableName:Lorg/hibernate/boot/model/relational/QualifiedName;
invokeinterface org.hibernate.boot.model.relational.QualifiedName.getSchemaName:()Lorg/hibernate/boot/model/naming/Identifier;
4: invokevirtual org.hibernate.boot.model.relational.Database.locateNamespace:(Lorg/hibernate/boot/model/naming/Identifier;Lorg/hibernate/boot/model/naming/Identifier;)Lorg/hibernate/boot/model/relational/Namespace;
astore 3
start local 3 5: aload 3
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.qualifiedTableName:Lorg/hibernate/boot/model/relational/QualifiedName;
invokeinterface org.hibernate.boot.model.relational.QualifiedName.getObjectName:()Lorg/hibernate/boot/model/naming/Identifier;
invokevirtual org.hibernate.boot.model.relational.Namespace.locateTable:(Lorg/hibernate/boot/model/naming/Identifier;)Lorg/hibernate/mapping/Table;
astore 4
start local 4 6: aload 4
ifnonnull 26
7: aload 3
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.qualifiedTableName:Lorg/hibernate/boot/model/relational/QualifiedName;
invokeinterface org.hibernate.boot.model.relational.QualifiedName.getObjectName:()Lorg/hibernate/boot/model/naming/Identifier;
iconst_0
invokevirtual org.hibernate.boot.model.relational.Namespace.createTable:(Lorg/hibernate/boot/model/naming/Identifier;Z)Lorg/hibernate/mapping/Table;
astore 4
8: new org.hibernate.id.ExportableColumn
dup
9: aload 1
10: aload 4
11: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentColumnName:Ljava/lang/String;
12: getstatic org.hibernate.type.StringType.INSTANCE:Lorg/hibernate/type/StringType;
13: aload 2
bipush 12
aload 0
getfield org.hibernate.id.enhanced.TableGenerator.segmentValueLength:I
i2l
iconst_0
iconst_0
invokevirtual org.hibernate.dialect.Dialect.getTypeName:(IJII)Ljava/lang/String;
14: invokespecial org.hibernate.id.ExportableColumn.<init>:(Lorg/hibernate/boot/model/relational/Database;Lorg/hibernate/mapping/Table;Ljava/lang/String;Lorg/hibernate/type/BasicType;Ljava/lang/String;)V
astore 5
start local 5 15: aload 5
iconst_0
invokevirtual org.hibernate.mapping.Column.setNullable:(Z)V
16: aload 4
aload 5
invokevirtual org.hibernate.mapping.Table.addColumn:(Lorg/hibernate/mapping/Column;)V
17: aload 4
new org.hibernate.mapping.PrimaryKey
dup
aload 4
invokespecial org.hibernate.mapping.PrimaryKey.<init>:(Lorg/hibernate/mapping/Table;)V
invokevirtual org.hibernate.mapping.Table.setPrimaryKey:(Lorg/hibernate/mapping/PrimaryKey;)V
18: aload 4
invokevirtual org.hibernate.mapping.Table.getPrimaryKey:()Lorg/hibernate/mapping/PrimaryKey;
aload 5
invokevirtual org.hibernate.mapping.PrimaryKey.addColumn:(Lorg/hibernate/mapping/Column;)V
19: new org.hibernate.id.ExportableColumn
dup
20: aload 1
21: aload 4
22: aload 0
getfield org.hibernate.id.enhanced.TableGenerator.valueColumnName:Ljava/lang/String;
23: getstatic org.hibernate.type.LongType.INSTANCE:Lorg/hibernate/type/LongType;
24: invokespecial org.hibernate.id.ExportableColumn.<init>:(Lorg/hibernate/boot/model/relational/Database;Lorg/hibernate/mapping/Table;Ljava/lang/String;Lorg/hibernate/type/BasicType;)V
astore 6
start local 6 25: aload 4
aload 6
invokevirtual org.hibernate.mapping.Table.addColumn:(Lorg/hibernate/mapping/Column;)V
end local 6 end local 5 26: StackMap locals: org.hibernate.dialect.Dialect org.hibernate.boot.model.relational.Namespace org.hibernate.mapping.Table
StackMap stack:
aload 0
aload 1
invokevirtual org.hibernate.boot.model.relational.Database.getJdbcEnvironment:()Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getQualifiedObjectNameFormatter:()Lorg/hibernate/engine/jdbc/env/spi/QualifiedObjectNameFormatter;
27: aload 4
invokevirtual org.hibernate.mapping.Table.getQualifiedTableName:()Lorg/hibernate/boot/model/relational/QualifiedTableName;
28: aload 2
29: invokeinterface org.hibernate.engine.jdbc.env.spi.QualifiedObjectNameFormatter.format:(Lorg/hibernate/boot/model/relational/QualifiedTableName;Lorg/hibernate/dialect/Dialect;)Ljava/lang/String;
putfield org.hibernate.id.enhanced.TableGenerator.renderedTableName:Ljava/lang/String;
30: aload 4
aload 0
invokevirtual org.hibernate.id.enhanced.TableGenerator.generateInsertInitCommand:()Lorg/hibernate/boot/model/relational/InitCommand;
invokevirtual org.hibernate.mapping.Table.addInitCommand:(Lorg/hibernate/boot/model/relational/InitCommand;)V
31: aload 0
aload 0
aload 2
invokevirtual org.hibernate.id.enhanced.TableGenerator.buildSelectQuery:(Lorg/hibernate/dialect/Dialect;)Ljava/lang/String;
putfield org.hibernate.id.enhanced.TableGenerator.selectQuery:Ljava/lang/String;
32: aload 0
aload 0
invokevirtual org.hibernate.id.enhanced.TableGenerator.buildUpdateQuery:()Ljava/lang/String;
putfield org.hibernate.id.enhanced.TableGenerator.updateQuery:Ljava/lang/String;
33: aload 0
aload 0
invokevirtual org.hibernate.id.enhanced.TableGenerator.buildInsertQuery:()Ljava/lang/String;
putfield org.hibernate.id.enhanced.TableGenerator.insertQuery:Ljava/lang/String;
34: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lorg/hibernate/id/enhanced/TableGenerator;
0 35 1 database Lorg/hibernate/boot/model/relational/Database;
1 35 2 dialect Lorg/hibernate/dialect/Dialect;
5 35 3 namespace Lorg/hibernate/boot/model/relational/Namespace;
6 35 4 table Lorg/hibernate/mapping/Table;
15 26 5 segmentColumn Lorg/hibernate/mapping/Column;
25 26 6 valueColumn Lorg/hibernate/mapping/Column;
MethodParameters:
Name Flags
database
}
SourceFile: "TableGenerator.java"
NestMembers:
org.hibernate.id.enhanced.TableGenerator$1 org.hibernate.id.enhanced.TableGenerator$1$1
InnerClasses:
public NameParts = org.hibernate.boot.model.relational.QualifiedNameParser$NameParts of org.hibernate.boot.model.relational.QualifiedNameParser
public abstract Converter = org.hibernate.engine.config.spi.ConfigurationService$Converter of org.hibernate.engine.config.spi.ConfigurationService
org.hibernate.id.enhanced.TableGenerator$1