summaryrefslogtreecommitdiffstats
path: root/java/MyMyBatis/src/AbstractDAOOperations.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/MyMyBatis/src/AbstractDAOOperations.java')
-rw-r--r--java/MyMyBatis/src/AbstractDAOOperations.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/java/MyMyBatis/src/AbstractDAOOperations.java b/java/MyMyBatis/src/AbstractDAOOperations.java
index 6fcd6e4..5307641 100644
--- a/java/MyMyBatis/src/AbstractDAOOperations.java
+++ b/java/MyMyBatis/src/AbstractDAOOperations.java
@@ -7,31 +7,31 @@ public abstract class AbstractDAOOperations<TObject, TIdentity, TMapper extends
public int insert(final TObject obj)
{
- return execInt(true, m -> m.insert(obj));
+ return execInt(m -> m.insert(obj), true);
}
public int update(final TObject obj)
{
- return execInt(true, m -> m.update(obj));
+ return execInt(m -> m.update(obj), true);
}
public int delete(final TObject obj)
{
- return execInt(true, m -> m.delete(obj));
+ return execInt(m -> m.delete(obj), true);
}
public int count()
{
- return execInt(false, m -> m.count());
+ return execInt(m -> m.count());
}
public List<TObject> select()
{
- return execObjects(false, m -> m.select());
+ return execObjects(m -> m.select());
}
public TObject selectOne(final TIdentity id)
{
- return execObject(false, m -> m.selectOne(id));
+ return execObject(m -> m.selectOne(id));
}
}