You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/apache/ibatis/annotations/DeleteProvider.java
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,33 @@
28
28
@Retention(RetentionPolicy.RUNTIME)
29
29
@Target(ElementType.METHOD)
30
30
public @interface DeleteProvider {
31
+
32
+
/**
33
+
* Specify a type that implements an SQL provider method.
34
+
*
35
+
* @return a type that implements an SQL provider method
36
+
*/
31
37
Class<?> type();
32
38
39
+
/**
40
+
* Specify a method for providing an SQL.
41
+
*
42
+
* <p>
43
+
* Since 3.5.1, this attribute can omit.
44
+
* If this attribute omit, the MyBatis will call a method that decide by following rules.
45
+
* <ul>
46
+
* <li>
47
+
* If class that specified the {@link #type()} attribute implements the {@link org.apache.ibatis.builder.annotation.ProviderMethodResolver},
48
+
* the MyBatis use a method that returned by it
49
+
* </li>
50
+
* <li>
51
+
* If cannot resolve a method by {@link org.apache.ibatis.builder.annotation.ProviderMethodResolver}(= not implement it or it was returned {@code null}),
52
+
* the MyBatis will search and use a fallback method that named {@code resolveSql} from specified type
53
+
* </li>
54
+
* </ul>
55
+
*
56
+
* @return a method name of method for providing an SQL
Copy file name to clipboardExpand all lines: src/main/java/org/apache/ibatis/annotations/InsertProvider.java
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,33 @@
28
28
@Retention(RetentionPolicy.RUNTIME)
29
29
@Target(ElementType.METHOD)
30
30
public @interface InsertProvider {
31
+
32
+
/**
33
+
* Specify a type that implements an SQL provider method.
34
+
*
35
+
* @return a type that implements an SQL provider method
36
+
*/
31
37
Class<?> type();
32
38
39
+
/**
40
+
* Specify a method for providing an SQL.
41
+
*
42
+
* <p>
43
+
* Since 3.5.1, this attribute can omit.
44
+
* If this attribute omit, the MyBatis will call a method that decide by following rules.
45
+
* <ul>
46
+
* <li>
47
+
* If class that specified the {@link #type()} attribute implements the {@link org.apache.ibatis.builder.annotation.ProviderMethodResolver},
48
+
* the MyBatis use a method that returned by it
49
+
* </li>
50
+
* <li>
51
+
* If cannot resolve a method by {@link org.apache.ibatis.builder.annotation.ProviderMethodResolver}(= not implement it or it was returned {@code null}),
52
+
* the MyBatis will search and use a fallback method that named {@code resolveSql} from specified type
53
+
* </li>
54
+
* </ul>
55
+
*
56
+
* @return a method name of method for providing an SQL
Copy file name to clipboardExpand all lines: src/main/java/org/apache/ibatis/annotations/SelectProvider.java
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,33 @@
28
28
@Retention(RetentionPolicy.RUNTIME)
29
29
@Target(ElementType.METHOD)
30
30
public @interface SelectProvider {
31
+
32
+
/**
33
+
* Specify a type that implements an SQL provider method.
34
+
*
35
+
* @return a type that implements an SQL provider method
36
+
*/
31
37
Class<?> type();
32
38
39
+
/**
40
+
* Specify a method for providing an SQL.
41
+
*
42
+
* <p>
43
+
* Since 3.5.1, this attribute can omit.
44
+
* If this attribute omit, the MyBatis will call a method that decide by following rules.
45
+
* <ul>
46
+
* <li>
47
+
* If class that specified the {@link #type()} attribute implements the {@link org.apache.ibatis.builder.annotation.ProviderMethodResolver},
48
+
* the MyBatis use a method that returned by it
49
+
* </li>
50
+
* <li>
51
+
* If cannot resolve a method by {@link org.apache.ibatis.builder.annotation.ProviderMethodResolver}(= not implement it or it was returned {@code null}),
52
+
* the MyBatis will search and use a fallback method that named {@code resolveSql} from specified type
53
+
* </li>
54
+
* </ul>
55
+
*
56
+
* @return a method name of method for providing an SQL
Copy file name to clipboardExpand all lines: src/main/java/org/apache/ibatis/annotations/UpdateProvider.java
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,33 @@
28
28
@Retention(RetentionPolicy.RUNTIME)
29
29
@Target(ElementType.METHOD)
30
30
public @interface UpdateProvider {
31
+
32
+
/**
33
+
* Specify a type that implements an SQL provider method.
34
+
*
35
+
* @return a type that implements an SQL provider method
36
+
*/
31
37
Class<?> type();
32
38
39
+
/**
40
+
* Specify a method for providing an SQL.
41
+
*
42
+
* <p>
43
+
* Since 3.5.1, this attribute can omit.
44
+
* If this attribute omit, the MyBatis will call a method that decide by following rules.
45
+
* <ul>
46
+
* <li>
47
+
* If class that specified the {@link #type()} attribute implements the {@link org.apache.ibatis.builder.annotation.ProviderMethodResolver},
48
+
* the MyBatis use a method that returned by it
49
+
* </li>
50
+
* <li>
51
+
* If cannot resolve a method by {@link org.apache.ibatis.builder.annotation.ProviderMethodResolver}(= not implement it or it was returned {@code null}),
52
+
* the MyBatis will search and use a fallback method that named {@code resolveSql} from specified type
53
+
* </li>
54
+
* </ul>
55
+
*
56
+
* @return a method name of method for providing an SQL
0 commit comments