Skip to content

Commit ecd19e9

Browse files
committed
修改java doc
1 parent 846466b commit ecd19e9

File tree

53 files changed

+82
-148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+82
-148
lines changed

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/AutoID.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/9/13
10+
* 2020/9/13
1111
* 搭配 @Id(auto = false)
1212
*/
1313
@Retention(RetentionPolicy.RUNTIME)

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/CreatedBy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/9/13
10+
* 2020/9/13
1111
* 需要实现 org.nutz.dao.enhance.audit.AuditingEntity
1212
*/
1313
@Retention(RetentionPolicy.RUNTIME)

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/CreatedDate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/9/13
10+
* 2020/9/13
1111
*/
1212
@Retention(RetentionPolicy.RUNTIME)
1313
@Target(value = {ElementType.METHOD, ElementType.FIELD})

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/CustomProvider.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* @author 黄川 [email protected]
7-
* @date: 2021/6/14
7+
* 2021/6/14
88
*/
99
@Documented
1010
@Retention(RetentionPolicy.RUNTIME)
@@ -19,8 +19,6 @@
1919
/**
2020
* 指定实现 SQL 查询的静态类中的具体方法名.
2121
* 为空时和接口方法一致
22-
*
23-
* @return
2422
*/
2523
String methodName() default "";
2624

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/Dao.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/7/30
10+
* 2020/7/30
1111
*/
1212
@Target({ElementType.TYPE})
1313
@Retention(RetentionPolicy.RUNTIME)

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/Delete.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* 删除
1010
*
1111
* @author 黄川 [email protected]
12-
* @date: 2020/12/12
12+
* 2020/12/12
1313
*/
1414
@Target({ElementType.METHOD})
1515
@Retention(RetentionPolicy.RUNTIME)

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/Entity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/12/12
10+
* 2020/12/12
1111
* 1、指定返回的实体类型,默认读取注解优先,若没有注解,则默认通过反射去class类上获取实体类泛型
1212
* 2、自动建表必须需要写在dao类上
1313
*/

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/IgnoreAutoDDL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/12/12
10+
* 2020/12/12
1111
* 忽略自动建表
1212
*/
1313
@Target({ElementType.METHOD, ElementType.TYPE})

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/Insert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/12/12
10+
* 2020/12/12
1111
*/
1212
@Target({ElementType.METHOD})
1313
@Retention(RetentionPolicy.RUNTIME)

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/LastModifiedBy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/9/13
10+
* 2020/9/13
1111
* 需要实现 org.nutz.dao.enhance.audit.AuditingEntity
1212
*/
1313
@Retention(RetentionPolicy.RUNTIME)

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/LastModifiedDate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/9/13
10+
* 2020/9/13
1111
*/
1212
@Retention(RetentionPolicy.RUNTIME)
1313
@Target(value = {ElementType.METHOD, ElementType.FIELD})

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/Query.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/12/12
10+
* 2020/12/12
1111
*/
1212
@Target({ElementType.METHOD})
1313
@Retention(RetentionPolicy.RUNTIME)

nutz-dao-enhance-annotation/src/main/java/org/nutz/dao/enhance/annotation/Update.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @author 黄川 [email protected]
10-
* @date: 2020/12/12
10+
* 2020/12/12
1111
*/
1212
@Target({ElementType.METHOD})
1313
@Retention(RetentionPolicy.RUNTIME)

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/dao/BaseDao.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/**
1515
* @author 黄川 [email protected]
16-
* @date: 2020/7/31
16+
* 2020/7/31
1717
*/
1818
@SuppressWarnings("all")
1919
public interface BaseDao<T> {
@@ -25,7 +25,6 @@ public interface BaseDao<T> {
2525
* 如果你的字段仅仅声明了 '@Id(auto=true)',没有声明 '@Next',则认为你还是想取回插入后最新的 ID 值,因为 自动为你添加类似 @Next(@SQL("SELECT MAX(id) FROM tableName")) 的设置
2626
*
2727
* @param t
28-
* @return
2928
*/
3029
@CustomProvider(type = BaseDaoProvider.class)
3130
T insert(T t);

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/factory/DaoFactory.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/**
1313
* @author 黄川 [email protected]
14-
* @date: 2020/12/12
14+
* 2020/12/12
1515
*/
1616
public interface DaoFactory {
1717
/**
@@ -21,16 +21,13 @@ public interface DaoFactory {
2121

2222
/**
2323
* 获取默认dao
24-
*
25-
* @return
2624
*/
2725
Dao getDao();
2826

2927
/**
3028
* 获取dao
3129
*
3230
* @param dataSource
33-
* @return
3431
*/
3532
Dao getDao(String dataSource);
3633

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/method/DaoMethodInvoke.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
/**
3434
* @author 黄川 [email protected]
35-
* @date: 2020/7/31
35+
* 2020/7/31
3636
*/
3737
@Slf4j
3838
public class DaoMethodInvoke {
@@ -117,7 +117,6 @@ private void initEntityInfo(Dao dao) {
117117
* @param dataSource
118118
* @param methodTraget
119119
* @param args
120-
* @return
121120
*/
122121
public Object execute(String dataSource, Method methodTraget, Object[] args) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException, InstantiationException {
123122
Stopwatch stopWatch = new Stopwatch();
@@ -149,7 +148,6 @@ public Object execute(String dataSource, Method methodTraget, Object[] args) thr
149148
*
150149
* @param dao
151150
* @param args
152-
* @return
153151
*/
154152
private Object invokeCustomProvider(Dao dao, Object[] args, Entity entity) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
155153
String executeSql = replaceConditionSql(args);
@@ -180,7 +178,6 @@ private void parseAndTranslationSql() {
180178
* 替换条件sql
181179
*
182180
* @param args
183-
* @return
184181
*/
185182
private String replaceConditionSql(Object[] args) {
186183
String sql = this.sourceSql;
@@ -232,7 +229,6 @@ private String replaceConditionSql(Object[] args) {
232229
*
233230
* @param dao
234231
* @param args
235-
* @return
236232
*/
237233
private Execute getCustomizeSqlExecute(Dao dao, Object[] args) {
238234
String executeSql = replaceConditionSql(args);

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/method/DaoMethodInvoker.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* @author 黄川 [email protected]
7-
* @date: 2020/7/31
7+
* 2020/7/31
88
*/
99
public interface DaoMethodInvoker {
1010
/**
@@ -14,7 +14,6 @@ public interface DaoMethodInvoker {
1414
* @param method
1515
* @param args
1616
* @param dataSource
17-
* @return
1817
* @throws Throwable
1918
*/
2019
Object invoke(Object proxy, Method method, Object[] args, String dataSource) throws Throwable;

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/method/execute/AbstractExecute.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ protected void setCondition(Sql sql) {
6464

6565
/**
6666
* 包裹可选返回值
67-
*
68-
* @return
6967
*/
7068
protected Object returnIsOptionalVal(Object val) {
7169
return this.methodSignature.isReturnsOptional() ? Optional.ofNullable(val) : val;

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/method/execute/CallStoredProcedureExecute.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public Object invoke() {
3232

3333
/**
3434
* 输出是out参数
35-
*
36-
* @return
3735
*/
3836
private Object lineDataQuery() {
3937
Sql sql = getSql();
@@ -47,8 +45,6 @@ private Object lineDataQuery() {
4745

4846
/**
4947
* 集合数据
50-
*
51-
* @return
5248
*/
5349
private Object collectionDataQuery() {
5450
Sql sql = getSql();

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/method/execute/Execute.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
public interface Execute {
77
/**
88
* 真正执行操作
9-
*
10-
* @return
119
*/
1210
Object invoke();
1311
}

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/method/execute/PaginationQueryExecute.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ public PaginationQueryExecute(Dao dao, String executeSql, MethodSignature method
3030

3131
/**
3232
* 执行
33-
*
34-
* @return
3533
*/
3634
@Override
3735
public Object invoke() {

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/method/holder/EntityClassInfoHolder.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public static void setEntity(Class<?> klass, Entity<?> entity) {
3434
* 获取
3535
*
3636
* @param klass
37-
* @return
3837
*/
3938
public static Entity<?> getEntity(Class<?> klass) {
4039
return ENTITY_HASH_MAP.get(klass);
@@ -45,7 +44,6 @@ public static Entity<?> getEntity(Class<?> klass) {
4544
* 获取
4645
*
4746
* @param name
48-
* @return
4947
*/
5048
public static Entity<?> getEntity(String name) {
5149
Class<?> klass = getClass(name);
@@ -56,7 +54,6 @@ public static Entity<?> getEntity(String name) {
5654
* 获取类
5755
*
5856
* @param name
59-
* @return
6057
*/
6158
public static Class<?> getClass(String name) {
6259
return STRING_CLASS_HASH_MAP.get(name);

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/method/parser/SimpleSqlParser.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ public SimpleSqlParser(String originalSql) {
6262

6363
/**
6464
* 解析,必须再运行时才能执行
65-
*
66-
* @return
6765
*/
6866
public SimpleSqlParser parse() {
6967
this.replaceSql();
@@ -87,8 +85,6 @@ private void replaceConditionSql() {
8785

8886
/**
8987
* 替换SQL
90-
*
91-
* @return
9288
*/
9389
private void replaceSql() {
9490
String tempSql = this.sql;
@@ -110,7 +106,6 @@ private void replaceSql() {
110106
*
111107
* @param tempSql
112108
* @param columnMapping
113-
* @return
114109
*/
115110
private String replaceColumnSql(String tempSql, ColumnMapping columnMapping) {
116111
final TableMapping table = columnMapping.getTable();
@@ -142,7 +137,6 @@ private String replaceColumnSql(String tempSql, ColumnMapping columnMapping) {
142137
* 获取条件表达式
143138
*
144139
* @param sql
145-
* @return
146140
*/
147141
private void analyzeConditionMapping(String sql) {
148142
List<ConditionMapping> mappingList = new ArrayList<>();
@@ -167,7 +161,6 @@ private void analyzeConditionMapping(String sql) {
167161
* 获取条件参数名
168162
*
169163
* @param part
170-
* @return
171164
*/
172165
private Set<String> getConditionParameter(String part) {
173166
Matcher matcher = CONDITION_PARAMETER_PATTERN.matcher(part);
@@ -190,7 +183,6 @@ private Set<String> getConditionParameter(String part) {
190183
* 分析sql字符串
191184
*
192185
* @param str
193-
* @return
194186
*/
195187
private String[] getTokens(String str) {
196188
String[] tokens = split(WHITESPACE + "(),", str, true);
@@ -223,7 +215,6 @@ private String[] getTokens(String str) {
223215
* 获取字段信息
224216
*
225217
* @param allTokens
226-
* @return
227218
*/
228219
private Set<ColumnMapping> getColumnMapping(String[] allTokens) {
229220
Set<ColumnMapping> columnMappings = new HashSet<>();
@@ -249,7 +240,6 @@ private Set<ColumnMapping> getColumnMapping(String[] allTokens) {
249240
* 获取表信息
250241
*
251242
* @param tokens
252-
* @return
253243
*/
254244
private void analyzeTableMapping(String[] tokens) {
255245
Set<TableMapping> mappings = new HashSet<>();
@@ -274,7 +264,6 @@ private void analyzeTableMapping(String[] tokens) {
274264
*
275265
* @param tokens
276266
* @param start
277-
* @return
278267
*/
279268
private String nextNonWhite(String[] tokens, int start) {
280269
for (int i = start + 1; i < tokens.length; i++) {
@@ -301,7 +290,6 @@ private boolean isTokenEndWithAQuoteCharacter(String token) {
301290
* 是java实体字段
302291
*
303292
* @param token
304-
* @return
305293
*/
306294
private boolean isEntityJavaIdentifier(String token) {
307295
// 字符串长度大于1

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/method/signature/MethodSignature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
/**
2929
* @author 黄川 [email protected]
30-
* @date: 2020/12/12
30+
* 2020/12/12
3131
*/
3232
@Getter
3333
public class MethodSignature {

nutz-dao-enhance-core/src/main/java/org/nutz/dao/enhance/method/signature/OutParam.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* @author 黄川 [email protected]
8-
* @date: 2023/3/15
8+
* 2023/3/15
99
*/
1010
@Data
1111
@AllArgsConstructor(staticName = "of")

0 commit comments

Comments
 (0)