Added wrapper method for rollback
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user