Added wrapper method for rollback
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
f4b2efe861
commit
e5681a3db6
|
@ -39,6 +39,14 @@ public class ORM {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void rollback() {
|
||||||
|
try {
|
||||||
|
_connection.rollback();
|
||||||
|
} catch (SQLException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public List<Article> getArticles()
|
public List<Article> getArticles()
|
||||||
{
|
{
|
||||||
List<Article> articles = new ArrayList<>();
|
List<Article> articles = new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue