franta-hg@22: /**
franta-hg@22: * SQL-DK
franta-hg@22: * Copyright © 2013 František Kučera (frantovo.cz)
franta-hg@22: *
franta-hg@22: * This program is free software: you can redistribute it and/or modify
franta-hg@22: * it under the terms of the GNU General Public License as published by
franta-hg@22: * the Free Software Foundation, either version 3 of the License, or
franta-hg@22: * (at your option) any later version.
franta-hg@22: *
franta-hg@22: * This program is distributed in the hope that it will be useful,
franta-hg@22: * but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@22: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@22: * GNU General Public License for more details.
franta-hg@22: *
franta-hg@22: * You should have received a copy of the GNU General Public License
franta-hg@22: * along with this program. If not, see .
franta-hg@22: */
franta-hg@22: package info.globalcode.sql.dk.formatting;
franta-hg@22:
franta-hg@22: import info.globalcode.sql.dk.Parameter;
franta-hg@22: import java.util.List;
franta-hg@22:
franta-hg@22: /**
franta-hg@22: *
franta-hg@22: * @author Ing. František Kučera (frantovo.cz)
franta-hg@22: */
franta-hg@22: public interface Formatter {
franta-hg@22:
franta-hg@22: void writeStartDatabase();
franta-hg@22:
franta-hg@22: void writeEndDatabase();
franta-hg@22:
franta-hg@22: void writeStartResultSet();
franta-hg@22:
franta-hg@22: void writeEndResultSet();
franta-hg@22:
franta-hg@22: void writeQuery(String sql);
franta-hg@22:
franta-hg@22: void writeParameters(List parameters);
franta-hg@22:
franta-hg@22: void writeColumnsHeader(ColumnsHeader header);
franta-hg@22:
franta-hg@22: void writeStartRow();
franta-hg@22:
franta-hg@22: void writeColumnValue(Object value);
franta-hg@22:
franta-hg@22: void writeEndRow();
franta-hg@22:
franta-hg@22: void writeStartUpdatesResult();
franta-hg@22:
franta-hg@22: void writeUpdatedRowsCount(int updatedRowsCount);
franta-hg@22:
franta-hg@22: void writeStartGeneratedKeys();
franta-hg@22:
franta-hg@22: void writeEndGeneratedKeys();
franta-hg@22:
franta-hg@22: void writeEndUpdatesResult();
franta-hg@22: }