diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2017-03-23 17:10:39 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2017-03-23 17:10:39 +0100 |
commit | 724efad67fe61d2c02c41af24ebc352eb79ff2f8 (patch) | |
tree | 777e62835ca2f6901d8d2542e328fcea403f9680 /java/MyMyBatis/src/AbstractMapper.java | |
parent | bb1caf716a18b65fa42d7bed2369b66a0837d977 (diff) | |
download | share-724efad67fe61d2c02c41af24ebc352eb79ff2f8.zip share-724efad67fe61d2c02c41af24ebc352eb79ff2f8.tar.gz |
java : add MyMyBatis
Diffstat (limited to 'java/MyMyBatis/src/AbstractMapper.java')
-rw-r--r-- | java/MyMyBatis/src/AbstractMapper.java | 18 |
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); +} |