Interface DdlBuffer
- All Known Implementing Classes:
BaseDdlBuffer
public interface DdlBuffer
Buffer to append generated DDL to.
-
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()End of a change - add some whitespace.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.
-
Method Details
-
getConfiguration
Return the configuration (default tablespaces etc). -
isEmpty
boolean isEmpty()Return true if the buffer is empty. -
appendStatement
Append a statement allowing for null or empty statements.- Throws:
IOException
-
append
Append DDL content to the buffer.- Throws:
IOException
-
append
Append DDL content to the buffer with space padding.- Throws:
IOException
-
appendWithSpace
Append a value that is potentially null or empty and proceed it with a space if so.- Throws:
IOException
-
newLine
Append new line character to the buffer.- Throws:
IOException
-
endOfStatement
Append the end of statement content.- Throws:
IOException
-
end
End of a change - add some whitespace.- Throws:
IOException
-
getBuffer
Return the buffer content.
-