Class BaseDdlBuffer
java.lang.Object
io.ebeaninternal.dbmigration.ddlgeneration.platform.BaseDdlBuffer
- All Implemented Interfaces:
DdlBuffer
Base implementation of DdlBuffer using an underlying writer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppend DDL content to the buffer.Append DDL content to the buffer with space padding.appendStatement(String content)Append a statement allowing for null or empty statements.appendWithSpace(String foreignKeyRestrict)Append a value that is potentially null or empty and proceed it with a space if so.end()Used to demarcate the end of a series of statements.Append the end of statement content.Return the buffer content.Return the configuration (default tablespaces etc).booleanisEmpty()Return true if the buffer is empty.newLine()Append new line character to the buffer.
-
Constructor Details
-
BaseDdlBuffer
-
-
Method Details
-
getConfiguration
Description copied from interface:DdlBufferReturn the configuration (default tablespaces etc).- Specified by:
getConfigurationin interfaceDdlBuffer
-
isEmpty
Description copied from interface:DdlBufferReturn true if the buffer is empty. -
appendWithSpace
Description copied from interface:DdlBufferAppend a value that is potentially null or empty and proceed it with a space if so.- Specified by:
appendWithSpacein interfaceDdlBuffer- Throws:
IOException
-
appendStatement
Description copied from interface:DdlBufferAppend a statement allowing for null or empty statements.- Specified by:
appendStatementin interfaceDdlBuffer- Throws:
IOException
-
append
Description copied from interface:DdlBufferAppend DDL content to the buffer.- Specified by:
appendin interfaceDdlBuffer- Throws:
IOException
-
append
Description copied from interface:DdlBufferAppend DDL content to the buffer with space padding.- Specified by:
appendin interfaceDdlBuffer- Throws:
IOException
-
endOfStatement
Description copied from interface:DdlBufferAppend the end of statement content.- Specified by:
endOfStatementin interfaceDdlBuffer- Throws:
IOException
-
end
Used to demarcate the end of a series of statements. This should be just whitespace or a sql comment.- Specified by:
endin interfaceDdlBuffer- Throws:
IOException
-
newLine
Description copied from interface:DdlBufferAppend new line character to the buffer.- Specified by:
newLinein interfaceDdlBuffer- Throws:
IOException
-
getBuffer
Description copied from interface:DdlBufferReturn the buffer content.
-