Ejemplo n.º 1
0
 private void updateCounter(int counter, Forma forma) throws SQLException {
   connection.update(
       "update "
           + tableName
           + "  set counter =\" "
           + counter
           + "\"where idProjektu = \""
           + forma.getTyp().name()
           + "\";");
 }
Ejemplo n.º 2
0
  private boolean checkIfExistsAndFillResultSet(Forma forma) throws SQLException {
    resultSet =
        connection.execQuery(
            "select * from "
                + tableName
                + " where idProjektu = \""
                + forma.getTyp().name()
                + "\";");

    return resultSet.next();
  }
Ejemplo n.º 3
0
 private void createNew(Forma forma) {
   connection.update(
       "insert into " + tableName + " (idProjektu) values(\"" + forma.getTyp().name() + "\" );");
 }