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 content) 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.booleanisEmpty()Return true if the buffer is empty.newLine()Append new line character to the buffer.
-
Constructor Details
-
BaseDdlBuffer
public BaseDdlBuffer()
-
-
Method Details
-
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
-
appendStatement
Description copied from interface:DdlBufferAppend a statement allowing for null or empty statements.- Specified by:
appendStatementin interfaceDdlBuffer
-
append
Description copied from interface:DdlBufferAppend DDL content to the buffer. -
append
Description copied from interface:DdlBufferAppend DDL content to the buffer with space padding. -
endOfStatement
Description copied from interface:DdlBufferAppend the end of statement content.- Specified by:
endOfStatementin interfaceDdlBuffer
-
end
Used to demarcate the end of a series of statements. This should be just whitespace or a sql comment. -
newLine
Description copied from interface:DdlBufferAppend new line character to the buffer. -
getBuffer
Description copied from interface:DdlBufferReturn the buffer content.
-