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 DdlBuffer
append(String content)
Append DDL content to the buffer.DdlBuffer
append(String type, int space)
Append DDL content to the buffer with space padding.DdlBuffer
appendStatement(String content)
Append a statement allowing for null or empty statements.DdlBuffer
appendWithSpace(String foreignKeyRestrict)
Append a value that is potentially null or empty and proceed it with a space if so.DdlBuffer
end()
End of a change - add some whitespace.DdlBuffer
endOfStatement()
Append the end of statement content.String
getBuffer()
Return the buffer content.MConfiguration
getConfiguration()
Return the configuration (default tablespaces etc).boolean
isEmpty()
Return true if the buffer is empty.DdlBuffer
newLine()
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
-
-