Added wrapper method for rollback

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2017-07-01 09:08:52 +02:00
parent f4b2efe861
commit e5681a3db6
1 changed files with 8 additions and 0 deletions

View File

@ -39,6 +39,14 @@ public class ORM {
}
}
public void rollback() {
try {
_connection.rollback();
} catch (SQLException e) {
e.printStackTrace();
}
}
public List<Article> getArticles()
{
List<Article> articles = new ArrayList<>();