1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.mybatis.scripting.freemarker;
17
18 import org.apache.ibatis.annotations.DeleteProvider;
19 import org.apache.ibatis.annotations.InsertProvider;
20 import org.apache.ibatis.annotations.Options;
21 import org.apache.ibatis.annotations.SelectProvider;
22 import org.apache.ibatis.annotations.UpdateProvider;
23 import org.mybatis.scripting.freemarker.support.TemplateFilePathProvider;
24
25 public interface TemplateFilePathProviderMapper {
26
27 @Options(useGeneratedKeys = true, keyProperty = "id")
28 @InsertProvider(type = TemplateFilePathProvider.class)
29 void insert(Name name);
30
31 @UpdateProvider(type = TemplateFilePathProvider.class)
32 void update(Name name);
33
34 @DeleteProvider(type = TemplateFilePathProvider.class)
35 void delete(Name name);
36
37 @SelectProvider(type = TemplateFilePathProvider.class)
38 Name findById(Integer id);
39
40 }