Class SchemaGenerator.CollectSqlTarget

  • All Implemented Interfaces:
    org.hibernate.tool.schema.spi.ExecutionOptions, org.hibernate.tool.schema.spi.ScriptTargetOutput, org.hibernate.tool.schema.spi.SourceDescriptor, org.hibernate.tool.schema.spi.TargetDescriptor
    Enclosing class:
    SchemaGenerator

    static class SchemaGenerator.CollectSqlTarget
    extends Object
    implements org.hibernate.tool.schema.spi.ScriptTargetOutput, org.hibernate.tool.schema.spi.SourceDescriptor, org.hibernate.tool.schema.spi.TargetDescriptor, org.hibernate.tool.schema.spi.ExecutionOptions
    Helper class used for collecting SQL statements generated by Hibernate schema creation/update tools.
    Since:
    3.8
    • Constructor Detail

      • CollectSqlTarget

        CollectSqlTarget()
    • Method Detail

      • getNumStatements

        public int getNumStatements()
      • release

        public void release()
        Specified by:
        release in interface org.hibernate.tool.schema.spi.ScriptTargetOutput
      • prepare

        public void prepare()
        Specified by:
        prepare in interface org.hibernate.tool.schema.spi.ScriptTargetOutput
      • accept

        public void accept​(String sql)
        Specified by:
        accept in interface org.hibernate.tool.schema.spi.ScriptTargetOutput
      • getScriptSourceInput

        public org.hibernate.tool.schema.spi.ScriptSourceInput getScriptSourceInput()
        Specified by:
        getScriptSourceInput in interface org.hibernate.tool.schema.spi.SourceDescriptor
      • getSourceType

        public org.hibernate.tool.schema.SourceType getSourceType()
        Specified by:
        getSourceType in interface org.hibernate.tool.schema.spi.SourceDescriptor
      • getTargetTypes

        public EnumSet<org.hibernate.tool.schema.TargetType> getTargetTypes()
        Specified by:
        getTargetTypes in interface org.hibernate.tool.schema.spi.TargetDescriptor
      • getScriptTargetOutput

        public org.hibernate.tool.schema.spi.ScriptTargetOutput getScriptTargetOutput()
        Specified by:
        getScriptTargetOutput in interface org.hibernate.tool.schema.spi.TargetDescriptor
      • getConfigurationValues

        public Map<?,​?> getConfigurationValues()
        Specified by:
        getConfigurationValues in interface org.hibernate.tool.schema.spi.ExecutionOptions
      • shouldManageNamespaces

        public boolean shouldManageNamespaces()
        Specified by:
        shouldManageNamespaces in interface org.hibernate.tool.schema.spi.ExecutionOptions
      • getExceptionHandler

        public org.hibernate.tool.schema.spi.ExceptionHandler getExceptionHandler()
        Specified by:
        getExceptionHandler in interface org.hibernate.tool.schema.spi.ExecutionOptions