Class DatabaseStatementGenerator.InitializingDatabaseStatementGenerator

    • Constructor Detail

      • InitializingDatabaseStatementGenerator

        public InitializingDatabaseStatementGenerator​(org.apache.ddlutils.Platform platform,
                                                      org.apache.ddlutils.model.Database targetDatabase,
                                                      boolean createDropTableStatement,
                                                      org.apache.ddlutils.platform.CreationParameters tableCreationParameters)
    • Method Detail

      • generateDDL

        public void generateDDL​(java.io.Writer writer)
                         throws java.io.IOException
        Specified by:
        generateDDL in interface DatabaseStatementGenerator
        Throws:
        java.io.IOException
      • createInserts

        public void createInserts​(java.io.Writer writer,
                                  java.util.Collection<YRecord> yRecords)
                           throws org.apache.ddlutils.DdlUtilsException,
                                  java.io.IOException
        Specified by:
        createInserts in interface DatabaseStatementGenerator
        Throws:
        org.apache.ddlutils.DdlUtilsException
        java.io.IOException
      • writeSingleInsert

        protected void writeSingleInsert​(YRecord yRecord,
                                         java.io.Writer writer)
                                  throws java.io.IOException
        Throws:
        java.io.IOException