Top Description Inners Fields Constructors Methods
org.hibernate.boot.internal

public Class IdGeneratorInterpreterImpl

extends Object
implements IdGeneratorStrategyInterpreter
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.IdGeneratorStrategyInterpreter
Imports
java.util.ArrayList, .UUID, javax.persistence.GenerationType, .SequenceGenerator, .TableGenerator, org.hibernate.boot.model.IdGeneratorStrategyInterpreter, .IdentifierGeneratorDefinition, org.hibernate.cfg.AvailableSettings, .BinderHelper, org.hibernate.id.IncrementGenerator, .MultipleHiLoPerTableGenerator, .PersistentIdentifierGenerator, .SequenceHiLoGenerator, .UUIDGenerator, org.hibernate.id.enhanced.SequenceStyleGenerator, org.hibernate.internal.CoreLogging, .CoreMessageLogger

The root (composition) IdGenerationTypeInterpreter.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private ArrayList<IdGeneratorStrategyInterpreter>
private IdGeneratorStrategyInterpreter
private static final CoreMessageLogger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public String
determineGeneratorName(GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext
The context for resolution (method parameter object)
context
)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.determineGeneratorName.

Determine the name of the generator which should be used based on the GenerationType, returning null to indicate that this interpreter did not have a match and that any additional resolutions should be performed.
public void
public void
public void
interpretSequenceGenerator(SequenceGenerator
The annotation
sequenceGeneratorAnnotation
,
IdentifierGeneratorDefinition.Builder
The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
definitionBuilder
)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretSequenceGenerator.

Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation
public void
interpretTableGenerator(TableGenerator
The annotation
tableGeneratorAnnotation
,
IdentifierGeneratorDefinition.Builder
The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
definitionBuilder
)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretTableGenerator.

Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegatesback to summary
private ArrayList<IdGeneratorStrategyInterpreter> delegates
fallbackInterpreterback to summary
private IdGeneratorStrategyInterpreter fallbackInterpreter
logback to summary
private static final CoreMessageLogger log

Constructor Detail

IdGeneratorInterpreterImplback to summary
public IdGeneratorInterpreterImpl()

Method Detail

addInterpreterDelegateback to summary
public void addInterpreterDelegate(IdGeneratorStrategyInterpreter delegate)
determineGeneratorNameback to summary
public String determineGeneratorName(GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.determineGeneratorName.

Doc from org.hibernate.boot.model.IdGeneratorStrategyInterpreter.determineGeneratorName.

Determine the name of the generator which should be used based on the GenerationType, returning null to indicate that this interpreter did not have a match and that any additional resolutions should be performed.

Parameters
generationType:GenerationType

The javax.persistence.GeneratedValue#strategy value

context:IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext

The context for resolution (method parameter object)

Returns:String

The org.hibernate.id.IdentifierGenerator name (FQN, short name, etc)

Annotations
@Override
disableLegacyFallbackback to summary
public void disableLegacyFallback()
enableLegacyFallbackback to summary
public void enableLegacyFallback()
interpretSequenceGeneratorback to summary
public void interpretSequenceGenerator(SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretSequenceGenerator.

Doc from org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretSequenceGenerator.

Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation

Parameters
sequenceGeneratorAnnotation:SequenceGenerator

The annotation

definitionBuilder:IdentifierGeneratorDefinition.Builder

The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration

Annotations
@Override
interpretTableGeneratorback to summary
public void interpretTableGenerator(TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretTableGenerator.

Doc from org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretTableGenerator.

Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation

Parameters
tableGeneratorAnnotation:TableGenerator

The annotation

definitionBuilder:IdentifierGeneratorDefinition.Builder

The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration

Annotations
@Override
org.hibernate.boot.internal back to summary

private Class IdGeneratorInterpreterImpl.FallbackInterpreter

extends Object
implements IdGeneratorStrategyInterpreter
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.internal.IdGeneratorInterpreterImpl.FallbackInterpreter
All Implemented Interfaces
org.hibernate.boot.model.IdGeneratorStrategyInterpreter

Field Summary

Modifier and TypeField and Description
public static final IdGeneratorInterpreterImpl.FallbackInterpreter
INSTANCE

Singleton access

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
determineGeneratorName(GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext
The context for resolution (method parameter object)
context
)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.determineGeneratorName.

Determine the name of the generator which should be used based on the GenerationType, returning null to indicate that this interpreter did not have a match and that any additional resolutions should be performed.
public void
interpretSequenceGenerator(SequenceGenerator
The annotation
sequenceGeneratorAnnotation
,
IdentifierGeneratorDefinition.Builder
The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
definitionBuilder
)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretSequenceGenerator.

Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation
public void
interpretTableGenerator(TableGenerator
The annotation
tableGeneratorAnnotation
,
IdentifierGeneratorDefinition.Builder
The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
definitionBuilder
)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretTableGenerator.

Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final IdGeneratorInterpreterImpl.FallbackInterpreter INSTANCE

Singleton access

Constructor Detail

FallbackInterpreterback to summary
private FallbackInterpreter()

Method Detail

determineGeneratorNameback to summary
public String determineGeneratorName(GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.determineGeneratorName.

Doc from org.hibernate.boot.model.IdGeneratorStrategyInterpreter.determineGeneratorName.

Determine the name of the generator which should be used based on the GenerationType, returning null to indicate that this interpreter did not have a match and that any additional resolutions should be performed.

Parameters
generationType:GenerationType

The javax.persistence.GeneratedValue#strategy value

context:IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext

The context for resolution (method parameter object)

Returns:String

The org.hibernate.id.IdentifierGenerator name (FQN, short name, etc)

Annotations
@Override
interpretSequenceGeneratorback to summary
public void interpretSequenceGenerator(SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretSequenceGenerator.

Doc from org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretSequenceGenerator.

Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation

Parameters
sequenceGeneratorAnnotation:SequenceGenerator

The annotation

definitionBuilder:IdentifierGeneratorDefinition.Builder

The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration

Annotations
@Override
interpretTableGeneratorback to summary
public void interpretTableGenerator(TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretTableGenerator.

Doc from org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretTableGenerator.

Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation

Parameters
tableGeneratorAnnotation:TableGenerator

The annotation

definitionBuilder:IdentifierGeneratorDefinition.Builder

The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration

Annotations
@Override
org.hibernate.boot.internal back to summary

private Class IdGeneratorInterpreterImpl.LegacyFallbackInterpreter

extends Object
implements IdGeneratorStrategyInterpreter
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.internal.IdGeneratorInterpreterImpl.LegacyFallbackInterpreter
All Implemented Interfaces
org.hibernate.boot.model.IdGeneratorStrategyInterpreter

Field Summary

Modifier and TypeField and Description
public static final IdGeneratorInterpreterImpl.LegacyFallbackInterpreter
INSTANCE

Singleton access

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
determineGeneratorName(GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext
The context for resolution (method parameter object)
context
)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.determineGeneratorName.

Determine the name of the generator which should be used based on the GenerationType, returning null to indicate that this interpreter did not have a match and that any additional resolutions should be performed.
public void
interpretSequenceGenerator(SequenceGenerator
The annotation
sequenceGeneratorAnnotation
,
IdentifierGeneratorDefinition.Builder
The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
definitionBuilder
)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretSequenceGenerator.

Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation
public void
interpretTableGenerator(TableGenerator
The annotation
tableGeneratorAnnotation
,
IdentifierGeneratorDefinition.Builder
The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
definitionBuilder
)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretTableGenerator.

Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final IdGeneratorInterpreterImpl.LegacyFallbackInterpreter INSTANCE

Singleton access

Constructor Detail

LegacyFallbackInterpreterback to summary
private LegacyFallbackInterpreter()

Method Detail

determineGeneratorNameback to summary
public String determineGeneratorName(GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.determineGeneratorName.

Doc from org.hibernate.boot.model.IdGeneratorStrategyInterpreter.determineGeneratorName.

Determine the name of the generator which should be used based on the GenerationType, returning null to indicate that this interpreter did not have a match and that any additional resolutions should be performed.

Parameters
generationType:GenerationType

The javax.persistence.GeneratedValue#strategy value

context:IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext

The context for resolution (method parameter object)

Returns:String

The org.hibernate.id.IdentifierGenerator name (FQN, short name, etc)

Annotations
@Override
interpretSequenceGeneratorback to summary
public void interpretSequenceGenerator(SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretSequenceGenerator.

Doc from org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretSequenceGenerator.

Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation

Parameters
sequenceGeneratorAnnotation:SequenceGenerator

The annotation

definitionBuilder:IdentifierGeneratorDefinition.Builder

The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration

Annotations
@Override
@SuppressWarnings:deprecation
interpretTableGeneratorback to summary
public void interpretTableGenerator(TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)

Implements org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretTableGenerator.

Doc from org.hibernate.boot.model.IdGeneratorStrategyInterpreter.interpretTableGenerator.

Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation

Parameters
tableGeneratorAnnotation:TableGenerator

The annotation

definitionBuilder:IdentifierGeneratorDefinition.Builder

The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration

Annotations
@Override