package io.ebeaninternal.dbmigration.ddlgeneration;
import io.ebeaninternal.dbmigration.model.MConfiguration;
import java.io.IOException;
Buffer to append generated DDL to.
/**
* Buffer to append generated DDL to.
*/
public interface DdlBuffer {
Return the configuration (default tablespaces etc).
/**
* Return the configuration (default tablespaces etc).
*/
MConfiguration getConfiguration();
Return true if the buffer is empty.
/**
* Return true if the buffer is empty.
*/
boolean isEmpty();
Append a statement allowing for null or empty statements.
/**
* Append a statement allowing for null or empty statements.
*/
DdlBuffer appendStatement(String content) throws IOException;
Append DDL content to the buffer.
/**
* Append DDL content to the buffer.
*/
DdlBuffer append(String content) throws IOException;
Append DDL content to the buffer with space padding.
/**
* Append DDL content to the buffer with space padding.
*/
DdlBuffer append(String type, int space) throws IOException;
Append a value that is potentially null or empty and proceed it with a space if so.
/**
* Append a value that is potentially null or empty and proceed it with a space if so.
*/
DdlBuffer appendWithSpace(String foreignKeyRestrict) throws IOException;
Append new line character to the buffer.
/**
* Append new line character to the buffer.
*/
DdlBuffer newLine() throws IOException;
Append the end of statement content.
/**
* Append the end of statement content.
*/
DdlBuffer endOfStatement() throws IOException;
End of a change - add some whitespace.
/**
* End of a change - add some whitespace.
*/
DdlBuffer end() throws IOException;
Return the buffer content.
/**
* Return the buffer content.
*/
String getBuffer();
}