summaryrefslogtreecommitdiffstats
path: root/java/MyMyBatis/src/AbstractMapper.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/MyMyBatis/src/AbstractMapper.java')
-rw-r--r--java/MyMyBatis/src/AbstractMapper.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/java/MyMyBatis/src/AbstractMapper.java b/java/MyMyBatis/src/AbstractMapper.java
new file mode 100644
index 0000000..54887b8
--- /dev/null
+++ b/java/MyMyBatis/src/AbstractMapper.java
@@ -0,0 +1,18 @@
+package ch.asynk;
+
+import java.util.List;
+
+public interface AbstractMapper<TObject, TIdentity>
+{
+ int insert(TObject obj);
+
+ int update(TObject obj);
+
+ int delete(TObject obj);
+
+ int count();
+
+ List<TObject> select();
+
+ TObject selectOne(TIdentity id);
+}