Class ResultSetMonospacedWriter
java.lang.Object
org.eclipse.dirigible.databases.processor.format.AbstractResultSetWriter<String>
org.eclipse.dirigible.databases.processor.format.ResultSetMonospacedWriter
- All Implemented Interfaces:
ResultSetWriter<String>
public class ResultSetMonospacedWriter extends AbstractResultSetWriter<String>
The ResultSet Monospaced Writer.
-
Field Summary
Fields Modifier and Type Field Description static StringDELIMITERDELIMITER.static StringNEWLINE_CHARACTERNEWLINE_CHARACTER. -
Constructor Summary
Constructors Constructor Description ResultSetMonospacedWriter() -
Method Summary
Modifier and Type Method Description HeaderFormatter<?>getHeaderFormat()Gets the header format.RowFormatter<?>getRowFormat()Gets the row format.booleanisLimited()Checks if is limited.voidsetHeaderFormat(HeaderFormatter<?> headerFormat)Sets the header format.voidsetLimited(boolean limited)Sets the limited.voidsetRowFormat(RowFormatter<?> rowFormat)Sets the row format.Stringwrite(ResultSet resultSet)Write.Methods inherited from class org.eclipse.dirigible.databases.processor.format.AbstractResultSetWriter
getLimit, isStringified, setLimit, setStringified
-
Field Details
-
DELIMITER
DELIMITER.- See Also:
- Constant Field Values
-
NEWLINE_CHARACTER
NEWLINE_CHARACTER.
-
-
Constructor Details
-
ResultSetMonospacedWriter
public ResultSetMonospacedWriter()
-
-
Method Details
-
isLimited
public boolean isLimited()Checks if is limited.- Overrides:
isLimitedin classAbstractResultSetWriter<String>- Returns:
- true, if is limited
-
setLimited
public void setLimited(boolean limited)Sets the limited.- Overrides:
setLimitedin classAbstractResultSetWriter<String>- Parameters:
limited- the new limited
-
write
Write.- Parameters:
resultSet- the result set- Returns:
- the string
- Throws:
SQLException- the SQL exception
-
getHeaderFormat
Gets the header format.- Returns:
- the header format
-
setHeaderFormat
Sets the header format.- Parameters:
headerFormat- the new header format
-
getRowFormat
Gets the row format.- Returns:
- the row format
-
setRowFormat
Sets the row format.- Parameters:
rowFormat- the new row format
-