接口 IdGeneratorStrategyInterpreter

  • 所有已知实现类:
    IdGeneratorInterpreterImpl

    public interface IdGeneratorStrategyInterpreter
    Strategy for interpreting identifier generator related information.
    作者:
    Steve Ebersole
    • 方法详细资料

      • determineGeneratorName

        String determineGeneratorName​(javax.persistence.GenerationType generationType,
                                      IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)
        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.
        参数:
        generationType - The GeneratedValue.strategy() value
        context - The context for resolution (method parameter object)
        返回:
        The IdentifierGenerator name (FQN, short name, etc)
      • interpretTableGenerator

        void interpretTableGenerator​(javax.persistence.TableGenerator tableGeneratorAnnotation,
                                     IdentifierGeneratorDefinition.Builder definitionBuilder)
        Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation
        参数:
        tableGeneratorAnnotation - The annotation
        definitionBuilder - The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
      • interpretSequenceGenerator

        void interpretSequenceGenerator​(javax.persistence.SequenceGenerator sequenceGeneratorAnnotation,
                                        IdentifierGeneratorDefinition.Builder definitionBuilder)
        Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation
        参数:
        sequenceGeneratorAnnotation - The annotation
        definitionBuilder - The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration