Lesson14 Transaction_Batch · JavaWebinar/basejava@0901c3a · GitHub
Skip to content

Commit 0901c3a

Browse files
author
Tanechka
committed
Lesson14 Transaction_Batch
1 parent 57c5687 commit 0901c3a

3 files changed

Lines changed: 45 additions & 14 deletions

File tree

src/ru/javawebinar/basejava/sql/SqlHelper.java

Lines changed: 18 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package ru.javawebinar.basejava.sql;
2+
3+
import java.sql.Connection;
4+
import java.sql.SQLException;
5+
6+
public interface SqlTransaction<T> {
7+
T execute(Connection conn) throws SQLException;
8+
}

src/ru/javawebinar/basejava/storage/SqlStorage.java

Lines changed: 19 additions & 14 deletions

0 commit comments

Comments
 (0)