Skip to content
Snippets Groups Projects
Commit 8541c0ae authored by Felix Sidokhine's avatar Felix Sidokhine
Browse files

optimized imports and final touch-ups

parent a7021716
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ public class ContactDao extends AbstractDao<Contact> { ...@@ -63,7 +63,7 @@ public class ContactDao extends AbstractDao<Contact> {
"VALUES " + "VALUES " +
"(?, ?, ?)"); "(?, ?, ?)");
ps = object.getInsert(ps); ps = object.getInsert(ps);
return ps.execute(); return ps.executeUpdate() != 0;
} }
catch (Exception e){ catch (Exception e){
log.error("An error has occurred while trying to store a user: " + e.toString()); log.error("An error has occurred while trying to store a user: " + e.toString());
......
...@@ -66,7 +66,7 @@ public class DeviceDao extends AbstractDao<Device> { ...@@ -66,7 +66,7 @@ public class DeviceDao extends AbstractDao<Device> {
"VALUES " + "VALUES " +
"(?, ?, ?, ?, ?)"); "(?, ?, ?, ?, ?)");
ps = object.getInsert(ps); ps = object.getInsert(ps);
return ps.execute(); return ps.executeUpdate() != 0;
} }
catch (Exception e){ catch (Exception e){
log.error("An error has occurred while trying to store a user: " + e.toString()); log.error("An error has occurred while trying to store a user: " + e.toString());
......
...@@ -64,7 +64,7 @@ public class SystemDao extends AbstractDao<SystemAccount> { ...@@ -64,7 +64,7 @@ public class SystemDao extends AbstractDao<SystemAccount> {
"VALUES " + "VALUES " +
"(?, ?, ?)"); "(?, ?, ?)");
ps = object.getInsert(ps); ps = object.getInsert(ps);
return ps.execute(); return ps.executeUpdate() != 0;
} }
catch (Exception e){ catch (Exception e){
log.error("An error has occurred while trying to store a system entity: " + e.toString()); log.error("An error has occurred while trying to store a system entity: " + e.toString());
......
...@@ -72,7 +72,7 @@ public class UserDao extends AbstractDao<User> { ...@@ -72,7 +72,7 @@ public class UserDao extends AbstractDao<User> {
"VALUES " + "VALUES " +
"(?, ?, ?, ?, ?, ?, ?,?, ?,?, ?)"); "(?, ?, ?, ?, ?, ?, ?,?, ?,?, ?)");
ps = object.getInsert(ps); ps = object.getInsert(ps);
return ps.execute(); return ps.executeUpdate() != 0;
} }
catch (Exception e){ catch (Exception e){
log.error("An error has occurred while trying to store a user: " + e.toString()); log.error("An error has occurred while trying to store a user: " + e.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment