Interface DdlBuffer
-
- All Known Implementing Classes:
BaseDdlBuffer
public interface DdlBuffer
Buffer to append generated DDL to.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DdlBufferappend(String content)Append DDL content to the buffer.DdlBufferappend(String type, int space)Append DDL content to the buffer with space padding.DdlBufferappendStatement(String content)Append a statement allowing for null or empty statements.DdlBufferappendWithSpace(String foreignKeyRestrict)Append a value that is potentially null or empty and proceed it with a space if so.DdlBufferend()End of a change - add some whitespace.DdlBufferendOfStatement()Append the end of statement content.StringgetBuffer()Return the buffer content.MConfigurationgetConfiguration()Return the configuration (default tablespaces etc).booleanisEmpty()Return true if the buffer is empty.DdlBuffernewLine()Append new line character to the buffer.
-
-
-
Method Detail
-
getConfiguration
MConfiguration getConfiguration()
Return the configuration (default tablespaces etc).
-
isEmpty
boolean isEmpty()
Return true if the buffer is empty.
-
appendStatement
DdlBuffer appendStatement(String content) throws IOException
Append a statement allowing for null or empty statements.- Throws:
IOException
-
append
DdlBuffer append(String content) throws IOException
Append DDL content to the buffer.- Throws:
IOException
-
append
DdlBuffer append(String type, int space) throws IOException
Append DDL content to the buffer with space padding.- Throws:
IOException
-
appendWithSpace
DdlBuffer appendWithSpace(String foreignKeyRestrict) throws IOException
Append a value that is potentially null or empty and proceed it with a space if so.- Throws:
IOException
-
newLine
DdlBuffer newLine() throws IOException
Append new line character to the buffer.- Throws:
IOException
-
endOfStatement
DdlBuffer endOfStatement() throws IOException
Append the end of statement content.- Throws:
IOException
-
end
DdlBuffer end() throws IOException
End of a change - add some whitespace.- Throws:
IOException
-
-