From 7bf4b985388f9b67a58c58fca717aad752b8c0e0 Mon Sep 17 00:00:00 2001 From: kamtohung Date: Mon, 3 Apr 2023 20:20:50 +0800 Subject: [PATCH] add checkstyle validation(#I6SOFC) --- checkstyle/checkstyle-header.txt | 16 ++ checkstyle/checkstyle.xml | 180 ++++++++++++++++++ pom.xml | 24 +++ .../stream/core/async/AsyncConfig.java | 16 ++ .../stream/core/async/AsyncHelper.java | 20 +- .../stream/core/async/AsyncInterceptor.java | 16 ++ .../stream/core/bean/BeanHelper.java | 16 ++ .../core/business/highlight/FoundWord.java | 16 ++ .../business/highlight/HighlightHelper.java | 19 +- .../stream/core/business/tree/TreeHelper.java | 16 ++ .../stream/core/clazz/ClassHelper.java | 16 ++ .../stream/core/collection/Lists.java | 16 ++ .../stream/core/collection/Maps.java | 16 ++ .../stream/core/collection/Sets.java | 16 ++ .../stream/core/lambda/LambdaExecutable.java | 14 +- .../stream/core/lambda/LambdaHelper.java | 16 ++ .../core/lambda/LambdaInvokeException.java | 16 ++ .../core/lambda/function/SerArgsCons.java | 17 ++ .../core/lambda/function/SerArgsFunc.java | 18 ++ .../core/lambda/function/SerArgsPred.java | 17 ++ .../core/lambda/function/SerArgsUnOp.java | 17 ++ .../core/lambda/function/SerBiCons.java | 19 +- .../core/lambda/function/SerBiFunc.java | 19 ++ .../stream/core/lambda/function/SerBiOp.java | 17 ++ .../core/lambda/function/SerBiPred.java | 18 ++ .../stream/core/lambda/function/SerCons.java | 17 ++ .../stream/core/lambda/function/SerFunc.java | 20 +- .../stream/core/lambda/function/SerPred.java | 17 ++ .../stream/core/lambda/function/SerRunn.java | 16 ++ .../stream/core/lambda/function/SerSupp.java | 17 ++ .../stream/core/lambda/function/SerUnOp.java | 18 +- .../streamquery/stream/core/optional/Opp.java | 16 ++ .../streamquery/stream/core/optional/Sf.java | 16 ++ .../core/reflect/AbstractTypeReference.java | 16 ++ .../stream/core/reflect/ReflectHelper.java | 30 ++- .../core/stream/AbstractStreamWrapper.java | 44 ++++- .../stream/core/stream/CollectableStream.java | 18 +- .../streamquery/stream/core/stream/Steam.java | 16 ++ .../core/stream/collector/Collective.java | 16 ++ .../stream/core/variable/VariableHelper.java | 16 ++ .../stream/core/async/AsyncHelperTest.java | 16 ++ .../stream/core/bean/BeanHelperTest.java | 16 ++ .../highlight/HighlightHelperTest.java | 16 ++ .../core/business/tree/TreeHelperTest.java | 16 ++ .../stream/core/clazz/ClassHelperTest.java | 16 ++ .../stream/core/collection/ListsTest.java | 16 ++ .../stream/core/collection/MapsTest.java | 16 ++ .../stream/core/collection/SetsTest.java | 16 ++ .../stream/core/lambda/LambdaHelperTest.java | 16 ++ .../core/lambda/function/SerConsTest.java | 16 ++ .../stream/core/optional/OppTest.java | 16 ++ .../stream/core/optional/SfTest.java | 16 ++ .../reflect/AbstractTypeReferenceTest.java | 16 ++ .../core/reflect/ReflectHelperTest.java | 16 ++ .../stream/core/stream/SteamTest.java | 16 ++ .../core/stream/collector/CollectiveTest.java | 16 ++ .../core/variable/VariableHelperTest.java | 16 ++ .../stream/plugin/mybatisplus/BaseQuery.java | 16 ++ .../plugin/mybatisplus/BaseQueryHelper.java | 16 ++ .../stream/plugin/mybatisplus/Database.java | 28 ++- .../stream/plugin/mybatisplus/Many.java | 16 ++ .../stream/plugin/mybatisplus/One.java | 16 ++ .../stream/plugin/mybatisplus/OneToMany.java | 16 ++ .../plugin/mybatisplus/OneToManyToOne.java | 16 ++ .../stream/plugin/mybatisplus/OneToOne.java | 16 ++ .../plugin/mybatisplus/QueryCondition.java | 16 ++ .../annotation/EnableMybatisPlusPlugin.java | 16 ++ .../StreamPluginAutoConfiguration.java | 16 ++ .../engine/constant/PluginConst.java | 16 ++ .../engine/enumration/SqlMethodEnum.java | 20 +- .../engine/mapper/DynamicMapperHandler.java | 16 ++ .../mybatisplus/engine/mapper/IMapper.java | 18 +- .../engine/methods/MpInjectHelper.java | 16 ++ .../engine/methods/SaveOneSql.java | 16 ++ .../engine/methods/UpdateOneSql.java | 20 +- .../plugin/mybatisplus/CompositiveTest.java | 16 ++ .../plugin/mybatisplus/DatabaseTest.java | 16 ++ .../stream/plugin/mybatisplus/ManyTest.java | 16 ++ .../MybatisPlusTestApplication.java | 16 ++ .../stream/plugin/mybatisplus/OneTest.java | 16 ++ .../plugin/mybatisplus/OneToManyTest.java | 16 ++ .../mybatisplus/OneToManyToOneTest.java | 16 ++ .../plugin/mybatisplus/OneToOneTest.java | 16 ++ .../mybatisplus/mapper/UserInfoMapper.java | 16 ++ .../plugin/mybatisplus/pojo/po/RoleInfo.java | 16 ++ .../plugin/mybatisplus/pojo/po/UserInfo.java | 16 ++ .../plugin/mybatisplus/pojo/po/UserRole.java | 16 ++ 87 files changed, 1610 insertions(+), 48 deletions(-) create mode 100644 checkstyle/checkstyle-header.txt create mode 100644 checkstyle/checkstyle.xml diff --git a/checkstyle/checkstyle-header.txt b/checkstyle/checkstyle-header.txt new file mode 100644 index 00000000..d973dced --- /dev/null +++ b/checkstyle/checkstyle-header.txt @@ -0,0 +1,16 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ \ No newline at end of file diff --git a/checkstyle/checkstyle.xml b/checkstyle/checkstyle.xml new file mode 100644 index 00000000..bdb53006 --- /dev/null +++ b/checkstyle/checkstyle.xml @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index 6829fc1f..79f72c1a 100644 --- a/pom.xml +++ b/pom.xml @@ -273,6 +273,30 @@ true + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.1.0 + + checkstyle/checkstyle.xml + false + true + UTF-8 + false + error + false + + + + validate + validate + + checkstyle + + + + diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncConfig.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncConfig.java index b6ef5a9b..8739a338 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncConfig.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncConfig.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.async; import java.util.concurrent.Executor; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncHelper.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncHelper.java index d23fef40..530926c3 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncHelper.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncHelper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.async; import org.dromara.streamquery.stream.core.lambda.function.SerFunc; @@ -13,7 +29,7 @@ import java.util.concurrent.CompletableFuture; */ public class AsyncHelper { - public static AsyncConfig defaultConfig = AsyncConfig.create(); + private static final AsyncConfig DEFAULT_CONFIG = AsyncConfig.create(); private AsyncHelper() { /* Do not new me! */ @@ -21,7 +37,7 @@ public class AsyncHelper { @SafeVarargs public static List supply(SerSupp... suppliers) { - return supply(defaultConfig, suppliers); + return supply(DEFAULT_CONFIG, suppliers); } @SafeVarargs diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncInterceptor.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncInterceptor.java index 436591ec..0c4d4752 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncInterceptor.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/async/AsyncInterceptor.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.async; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/bean/BeanHelper.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/bean/BeanHelper.java index 88feecd8..f81db177 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/bean/BeanHelper.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/bean/BeanHelper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.bean; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/highlight/FoundWord.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/highlight/FoundWord.java index 7db5ab24..5e12f290 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/highlight/FoundWord.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/highlight/FoundWord.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.business.highlight; /** diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/highlight/HighlightHelper.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/highlight/HighlightHelper.java index f5bb4b6f..f2d050b4 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/highlight/HighlightHelper.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/highlight/HighlightHelper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.business.highlight; import org.dromara.streamquery.stream.core.optional.Opp; @@ -13,7 +29,6 @@ import java.util.function.UnaryOperator; * 高亮封装 * * @author VampireAchao Cizai_ - */ public class HighlightHelper { @@ -53,7 +68,7 @@ public class HighlightHelper { // 获取要从哪里开始保留 int index = fondWord.getWord().indexOf(last.getWord().charAt(last.getWord().length() - 1)); // 这里没有判断是否找到是因为只要进入当前的if语句那么必定有重复串可以找到 - String suffix = fondWord.getWord().substring(index+1); + String suffix = fondWord.getWord().substring(index + 1); word = last.getWord() + suffix; } else { // 否则根据历史下标到当前词汇下标进行查找额外部分 diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/tree/TreeHelper.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/tree/TreeHelper.java index d885b6d4..5517efd7 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/tree/TreeHelper.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/business/tree/TreeHelper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.business.tree; import org.dromara.streamquery.stream.core.lambda.function.SerBiCons; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/clazz/ClassHelper.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/clazz/ClassHelper.java index 7079032e..e0cb6f9f 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/clazz/ClassHelper.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/clazz/ClassHelper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.clazz; import org.dromara.streamquery.stream.core.lambda.function.SerFunc; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Lists.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Lists.java index 6a7facaf..ca8ed126 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Lists.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Lists.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.collection; import java.util.*; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Maps.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Maps.java index 2fc8e56a..3fd18283 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Maps.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Maps.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.collection; import org.dromara.streamquery.stream.core.stream.Steam; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Sets.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Sets.java index 25921273..78909ed5 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Sets.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/collection/Sets.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.collection; import java.util.*; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaExecutable.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaExecutable.java index 19848133..85bf38b6 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaExecutable.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaExecutable.java @@ -1,11 +1,10 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * @@ -15,7 +14,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.dromara.streamquery.stream.core.lambda; import org.dromara.streamquery.stream.core.reflect.ReflectHelper; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaHelper.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaHelper.java index 6e149118..5819f26c 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaHelper.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaHelper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda; import org.dromara.streamquery.stream.core.bean.BeanHelper; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaInvokeException.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaInvokeException.java index d2e1fc7b..d6699ce1 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaInvokeException.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/LambdaInvokeException.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda; /** diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsCons.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsCons.java index ddf00219..93031769 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsCons.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsCons.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -9,6 +25,7 @@ import java.util.stream.Stream; /** * SerArgsSerArgsCons * + * @param the type of the input to the operation * @author VampireAchao Cizai_ * @since 2022/6/8 diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsFunc.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsFunc.java index 86fe0ebe..51ff937a 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsFunc.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsFunc.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -8,6 +24,8 @@ import java.util.Objects; /** * 可序列化的SerArgsFunc * + * @param the type of the input to the operation + * @param the type of the result of the operation * @author VampireAchao Cizai_ * @see SerArgsFunc diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsPred.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsPred.java index b3a02e1e..00e9a745 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsPred.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsPred.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -10,6 +26,7 @@ import java.util.stream.Stream; /** * 可序列化的Predicate * + * @param the type of the input to the operation * @author VampireAchao Cizai_ * @see Predicate diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsUnOp.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsUnOp.java index ab1fc0e6..f25e29e6 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsUnOp.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerArgsUnOp.java @@ -1,8 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; /** * SerArgsUnOp * + * @param the type of the input and output of the operator * @author VampireAchao Cizai_ * @since 2022/6/8 diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiCons.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiCons.java index d06d1635..d89821a8 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiCons.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiCons.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -9,7 +25,8 @@ import java.util.stream.Stream; /** * SerSerBiCons - * + * @param a T class + * @param a U class * @author VampireAchao Cizai_ * @since 2022/6/8 diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiFunc.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiFunc.java index c3429168..482e5cbb 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiFunc.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiFunc.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -9,6 +25,9 @@ import java.util.function.BiFunction; /** * SerBiFunc * + * @param the type of the first argument to the function + * @param the type of the second argument to the function + * @param the type of the result of the function * @author VampireAchao Cizai_ * @since 2022/6/8 diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiOp.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiOp.java index b780dcb7..21722ecd 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiOp.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiOp.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -10,6 +26,7 @@ import java.util.function.BinaryOperator; /** * SerBiUnOp * + * @param the type of the input to the operation * @author VampireAchao Cizai_ * @since 2022/6/8 diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiPred.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiPred.java index 4b8382ac..ea2a0d6c 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiPred.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerBiPred.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -9,6 +25,8 @@ import java.util.function.BiPredicate; /** * SerBiPred * + * @param the type of the first input to the predicate + * @param the type of the second input to the predicate * @author VampireAchao Cizai_ * @since 2022/6/8 diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerCons.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerCons.java index 06729869..77851f55 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerCons.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerCons.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -10,6 +26,7 @@ import java.util.stream.Stream; /** * 可序列化的Consumer * + * @param the type of the input to the operation * @author VampireAchao Cizai_ * @see java.util.function.Consumer diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerFunc.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerFunc.java index b5257d75..f1c1cfd3 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerFunc.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerFunc.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -8,8 +24,10 @@ import java.util.function.Function; /** * 可序列化的Function * + * @param the type of the input to the function + * @param the type of the result of the function * @author VampireAchao Cizai_ - + * * @see java.util.function.Function */ @FunctionalInterface diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerPred.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerPred.java index 121df21c..7994c0f8 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerPred.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerPred.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -10,6 +26,7 @@ import java.util.stream.Stream; /** * 可序列化的Predicate * + * @param the type of the input to the predicate * @author VampireAchao Cizai_ * @see java.util.function.Predicate diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerRunn.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerRunn.java index 75a6bd7b..eb45d6dc 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerRunn.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerRunn.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerSupp.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerSupp.java index 8b6b9de8..b2cf76de 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerSupp.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerSupp.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -9,6 +25,7 @@ import java.util.stream.Stream; /** * 可序列化的Supplier * + * @param the type of results supplied by this supplier * @author VampireAchao Cizai_ * @see java.util.function.Supplier diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerUnOp.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerUnOp.java index 177b9149..e71c1cec 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerUnOp.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/lambda/function/SerUnOp.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.dromara.streamquery.stream.core.lambda.LambdaInvokeException; @@ -9,8 +25,8 @@ import java.util.function.UnaryOperator; /** * 可序列化的UnaryOperator * + * @param the type of the input and output of the operator * @author VampireAchao Cizai_ - * @see java.util.function.UnaryOperator */ @FunctionalInterface diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/optional/Opp.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/optional/Opp.java index b559ef2e..269b7b5b 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/optional/Opp.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/optional/Opp.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.optional; import org.dromara.streamquery.stream.core.lambda.LambdaExecutable; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/optional/Sf.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/optional/Sf.java index 256f3b14..e7a547b4 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/optional/Sf.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/optional/Sf.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.optional; import org.dromara.streamquery.stream.core.lambda.function.SerCons; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/reflect/AbstractTypeReference.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/reflect/AbstractTypeReference.java index 8e2edf39..1c345db7 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/reflect/AbstractTypeReference.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/reflect/AbstractTypeReference.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.reflect; import java.lang.reflect.Type; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/reflect/ReflectHelper.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/reflect/ReflectHelper.java index 668bc99d..ae484a28 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/reflect/ReflectHelper.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/reflect/ReflectHelper.java @@ -1,11 +1,10 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * @@ -36,12 +35,11 @@ import java.util.logging.Logger; * 反射工具类 * * @author VampireAchao Cizai_ - * @since 2022/6/2 17:02 */ public class ReflectHelper { - private static final Logger logger = Logger.getAnonymousLogger(); + private static final Logger LOGGER = Logger.getAnonymousLogger(); /** * Constant LEFT_MIDDLE_BRACKET="[" @@ -256,8 +254,8 @@ public class ReflectHelper { method -> Arrays.equals(method.getParameterTypes(), parameterTypes) )).findFirst().map(ReflectHelper::accessible).orElseThrow(() -> new IllegalArgumentException( String.format("No such method: %s args: %s", - methodName - , Steam.of(parameterTypes).map(Type::getTypeName).join(",")))); + methodName, + Steam.of(parameterTypes).map(Type::getTypeName).join(",")))); } /** @@ -513,13 +511,13 @@ public class ReflectHelper { * @param obj a {@link java.lang.Object} object */ public static void explain(Object obj) { - logger.info(() -> "obj: " + obj + " class: " + obj.getClass()); - logger.info(() -> "fields: "); - Steam.of(getFields(obj.getClass())).map(Field::getName).forEach(fieldName -> logger.info(() -> "field " + + LOGGER.info(() -> "obj: " + obj + " class: " + obj.getClass()); + LOGGER.info(() -> "fields: "); + Steam.of(getFields(obj.getClass())).map(Field::getName).forEach(fieldName -> LOGGER.info(() -> "field " + "" + fieldName + ": " + getFieldValue(obj, fieldName))); - logger.info(() -> "no arg methods: "); + LOGGER.info(() -> "no arg methods: "); Steam.of(getMethods(obj.getClass())).map(Method::getName).forEach(methodName -> - logger.info(() -> "method " + methodName + ": " + Opp.ofTry(() -> + LOGGER.info(() -> "method " + methodName + ": " + Opp.ofTry(() -> getMethod(obj.getClass(), methodName).invoke(obj)))); } } diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/AbstractStreamWrapper.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/AbstractStreamWrapper.java index d0fae27b..bd9ef04b 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/AbstractStreamWrapper.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/AbstractStreamWrapper.java @@ -1,8 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.stream; -import java.util.*; -import java.util.function.*; -import java.util.stream.*; +import java.util.Comparator; +import java.util.Iterator; +import java.util.Objects; +import java.util.Optional; +import java.util.Spliterator; +import java.util.function.BiConsumer; +import java.util.function.BiFunction; +import java.util.function.BinaryOperator; +import java.util.function.Consumer; +import java.util.function.Function; +import java.util.function.IntFunction; +import java.util.function.Predicate; +import java.util.function.Supplier; +import java.util.function.ToDoubleFunction; +import java.util.function.ToIntFunction; +import java.util.function.ToLongFunction; +import java.util.stream.Collector; +import java.util.stream.DoubleStream; +import java.util.stream.IntStream; +import java.util.stream.LongStream; +import java.util.stream.Stream; /** * {@link Stream}的包装类,用于基于一个已有的流实例进行扩展 @@ -150,9 +184,9 @@ abstract class AbstractStreamWrapper> implements Stream{@code * .of("one", "two", "three", "four") * .filter(e -> e.length() > 3) - * .peek(e -> System.out.println("Filtered value: " + e)) + * .peek(e -> log.info("Filtered value: " + e)) * .map(String::toUpperCase) - * .peek(e -> System.out.println("Mapped value: " + e)) + * .peek(e -> log.info("Mapped value: " + e)) * .collect(Collectors.toList()); * } */ diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/CollectableStream.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/CollectableStream.java index beb99ee2..6e93cb6d 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/CollectableStream.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/CollectableStream.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.stream; import org.dromara.streamquery.stream.core.optional.Opp; @@ -15,8 +31,8 @@ import java.util.stream.Stream; /** * 允许实现类直接跳过{@link java.util.stream.Stream#collect(Collector)}使用{@link java.util.stream.Collector}中一些常用方法 * + * @param 元素类型 * @author huangchengxing - */ public interface CollectableStream extends Stream { diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/Steam.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/Steam.java index 398af27b..74ca27c6 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/Steam.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/Steam.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.stream; import org.dromara.streamquery.stream.core.collection.Maps; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/collector/Collective.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/collector/Collective.java index 00047f71..5811012b 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/collector/Collective.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/stream/collector/Collective.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.stream.collector; import org.dromara.streamquery.stream.core.lambda.function.SerBiOp; diff --git a/stream-core/src/main/java/org/dromara/streamquery/stream/core/variable/VariableHelper.java b/stream-core/src/main/java/org/dromara/streamquery/stream/core/variable/VariableHelper.java index 03393c26..2d20bea9 100644 --- a/stream-core/src/main/java/org/dromara/streamquery/stream/core/variable/VariableHelper.java +++ b/stream-core/src/main/java/org/dromara/streamquery/stream/core/variable/VariableHelper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.variable; import org.dromara.streamquery.stream.core.stream.Steam; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/async/AsyncHelperTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/async/AsyncHelperTest.java index d10ef244..927f5ebf 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/async/AsyncHelperTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/async/AsyncHelperTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.async; import com.alibaba.ttl.TransmittableThreadLocal; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/bean/BeanHelperTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/bean/BeanHelperTest.java index 5e19ca7b..912d58cf 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/bean/BeanHelperTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/bean/BeanHelperTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.bean; import org.junit.jupiter.api.Assertions; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/business/highlight/HighlightHelperTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/business/highlight/HighlightHelperTest.java index ee4f7c65..d42715d2 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/business/highlight/HighlightHelperTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/business/highlight/HighlightHelperTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.business.highlight; import org.dromara.streamquery.stream.core.collection.Lists; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/business/tree/TreeHelperTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/business/tree/TreeHelperTest.java index 989839de..e013c2b6 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/business/tree/TreeHelperTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/business/tree/TreeHelperTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.business.tree; import lombok.Builder; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/clazz/ClassHelperTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/clazz/ClassHelperTest.java index d4260c6f..e0357bb1 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/clazz/ClassHelperTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/clazz/ClassHelperTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.clazz; import org.junit.jupiter.api.Assertions; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/ListsTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/ListsTest.java index efd45459..c76bf9e3 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/ListsTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/ListsTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.collection; import org.junit.jupiter.api.Assertions; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/MapsTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/MapsTest.java index 56acc094..28ba4bca 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/MapsTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/MapsTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.collection; import org.dromara.streamquery.stream.core.stream.Steam; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/SetsTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/SetsTest.java index 33451d3e..c7ee77c9 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/SetsTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/collection/SetsTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.collection; import org.junit.jupiter.api.Assertions; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/lambda/LambdaHelperTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/lambda/LambdaHelperTest.java index a410d87e..196bbb95 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/lambda/LambdaHelperTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/lambda/LambdaHelperTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda; import lombok.SneakyThrows; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/lambda/function/SerConsTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/lambda/function/SerConsTest.java index f704c9e0..f103beea 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/lambda/function/SerConsTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/lambda/function/SerConsTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.lambda.function; import org.junit.jupiter.api.Assertions; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/optional/OppTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/optional/OppTest.java index 2d66d53c..89c3592a 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/optional/OppTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/optional/OppTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.optional; import lombok.AllArgsConstructor; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/optional/SfTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/optional/SfTest.java index fa8eb4e7..31655a7b 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/optional/SfTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/optional/SfTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.optional; import org.junit.jupiter.api.Assertions; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/reflect/AbstractTypeReferenceTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/reflect/AbstractTypeReferenceTest.java index 69c2644a..3bd53c98 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/reflect/AbstractTypeReferenceTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/reflect/AbstractTypeReferenceTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.reflect; import org.junit.jupiter.api.Assertions; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/reflect/ReflectHelperTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/reflect/ReflectHelperTest.java index 8a848ce9..120fb939 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/reflect/ReflectHelperTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/reflect/ReflectHelperTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.reflect; import org.dromara.streamquery.stream.core.lambda.LambdaHelper; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/stream/SteamTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/stream/SteamTest.java index 6f168a73..873d9f8b 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/stream/SteamTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/stream/SteamTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.stream; import lombok.Builder; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/stream/collector/CollectiveTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/stream/collector/CollectiveTest.java index 2bf96c26..2034b643 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/stream/collector/CollectiveTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/stream/collector/CollectiveTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.stream.collector; import org.dromara.streamquery.stream.core.stream.Steam; diff --git a/stream-core/src/test/java/org/dromara/streamquery/stream/core/variable/VariableHelperTest.java b/stream-core/src/test/java/org/dromara/streamquery/stream/core/variable/VariableHelperTest.java index a4377ac5..53c23960 100644 --- a/stream-core/src/test/java/org/dromara/streamquery/stream/core/variable/VariableHelperTest.java +++ b/stream-core/src/test/java/org/dromara/streamquery/stream/core/variable/VariableHelperTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.core.variable; import org.junit.jupiter.api.Assertions; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/BaseQuery.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/BaseQuery.java index d4950282..d71d6f51 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/BaseQuery.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/BaseQuery.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/BaseQueryHelper.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/BaseQueryHelper.java index cf9fec89..0c7928e5 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/BaseQueryHelper.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/BaseQueryHelper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/Database.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/Database.java index 089813e7..77283e43 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/Database.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/Database.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.MybatisConfiguration; @@ -55,7 +71,7 @@ import java.util.stream.Stream; * @since 1.0 */ public class Database { - private static final Log log = LogFactory.getLog(Database.class); + private static final Log LOG = LogFactory.getLog(Database.class); private static final Map, Map> TABLE_PROPERTY_COLUMN_CACHE = new ConcurrentHashMap<>(); private static final Map, Map> TABLE_COLUMN_PROPERTY_CACHE = new ConcurrentHashMap<>(); @@ -250,7 +266,7 @@ public class Database { Class entityClass = getEntityClass(entityList); Class mapperClass = getMapperClass(entityClass); String sqlStatement = SqlHelper.getSqlStatement(mapperClass, SqlMethod.INSERT_ONE); - return SqlHelper.executeBatch(entityClass, log, entityList, batchSize, + return SqlHelper.executeBatch(entityClass, LOG, entityList, batchSize, (sqlSession, entity) -> sqlSession.insert(sqlStatement, entity)); } @@ -394,7 +410,7 @@ public class Database { Class mapperClass = getMapperClass(entityClass); String keyProperty = tableInfo.getKeyProperty(); Assert.notEmpty(keyProperty, "error: can not execute. because can not find column for primary key from entity!"); - return SqlHelper.saveOrUpdateBatch(entityClass, mapperClass, log, entityList, batchSize, + return SqlHelper.saveOrUpdateBatch(entityClass, mapperClass, LOG, entityList, batchSize, (sqlSession, entity) -> { Object idVal = tableInfo.getPropertyValue(entity, keyProperty); return StringUtils.checkValNull(idVal) @@ -537,7 +553,7 @@ public class Database { Class entityClass = getEntityClass(entityList); Class mapperClass = getMapperClass(entityClass); String sqlStatement = SqlHelper.getSqlStatement(mapperClass, SqlMethod.UPDATE_BY_ID); - return SqlHelper.executeBatch(entityClass, log, entityList, batchSize, (sqlSession, entity) -> { + return SqlHelper.executeBatch(entityClass, LOG, entityList, batchSize, (sqlSession, entity) -> { MapperMethod.ParamMap param = new MapperMethod.ParamMap<>(); param.put(Constants.ENTITY, entity); sqlSession.update(sqlStatement, param); @@ -649,7 +665,7 @@ public class Database { if (throwEx) { return execute(entityClass, baseMapper -> baseMapper.selectOne(queryWrapper)); } - return execute(entityClass, baseMapper -> SqlHelper.getObject(log, baseMapper.selectList(queryWrapper))); + return execute(entityClass, baseMapper -> SqlHelper.getObject(LOG, baseMapper.selectList(queryWrapper))); } /** @@ -689,7 +705,7 @@ public class Database { */ public static Map getMap(AbstractWrapper queryWrapper) { return execute(getEntityClass(queryWrapper), baseMapper -> activeOrElse(queryWrapper, - w -> SqlHelper.getObject(log, baseMapper.selectMaps(w)), null)); + w -> SqlHelper.getObject(LOG, baseMapper.selectMaps(w)), null)); } /** diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/Many.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/Many.java index da142453..29aea573 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/Many.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/Many.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.toolkit.support.SFunction; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/One.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/One.java index 4b7d52d5..dd214dbb 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/One.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/One.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.toolkit.support.SFunction; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToMany.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToMany.java index f0b19f81..eed8b4ac 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToMany.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToMany.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.toolkit.support.SFunction; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyToOne.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyToOne.java index 7ac52ead..3f6f5186 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyToOne.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyToOne.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToOne.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToOne.java index 1315ad5f..50f359dd 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToOne.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToOne.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.toolkit.support.SFunction; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/QueryCondition.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/QueryCondition.java index 769457a7..8da276e8 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/QueryCondition.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/QueryCondition.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/annotation/EnableMybatisPlusPlugin.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/annotation/EnableMybatisPlusPlugin.java index a377151f..e6c47628 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/annotation/EnableMybatisPlusPlugin.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/annotation/EnableMybatisPlusPlugin.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.engine.annotation; import org.dromara.streamquery.stream.plugin.mybatisplus.engine.configuration.StreamPluginAutoConfiguration; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/configuration/StreamPluginAutoConfiguration.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/configuration/StreamPluginAutoConfiguration.java index 0183fc86..6ecbb797 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/configuration/StreamPluginAutoConfiguration.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/configuration/StreamPluginAutoConfiguration.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.engine.configuration; import com.baomidou.mybatisplus.core.injector.AbstractMethod; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/constant/PluginConst.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/constant/PluginConst.java index 0c288e6f..3eff4f7c 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/constant/PluginConst.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/constant/PluginConst.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.engine.constant; import org.dromara.streamquery.stream.plugin.mybatisplus.Database; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/enumration/SqlMethodEnum.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/enumration/SqlMethodEnum.java index 799607cc..c27d2bd0 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/enumration/SqlMethodEnum.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/enumration/SqlMethodEnum.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.engine.enumration; /** @@ -10,8 +26,8 @@ public enum SqlMethodEnum { * 插入 */ SAVE_ONE_SQL("saveOneSql", "插入多条数据(mysql语法批量)", "INSERT INTO %s %s VALUES %s"), - UPDATE_ONE_SQL("updateOneSql", "修改多条数据(mysql语法批量)", "\nUPDATE %s SET %s WHERE %s\n"), - ; + UPDATE_ONE_SQL("updateOneSql", "修改多条数据(mysql语法批量)", "\nUPDATE %s SET %s WHERE %s\n"); + private final String method; private final String desc; private final String sql; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/mapper/DynamicMapperHandler.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/mapper/DynamicMapperHandler.java index 339f7b99..7cbc6b8c 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/mapper/DynamicMapperHandler.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/mapper/DynamicMapperHandler.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.engine.mapper; import com.baomidou.mybatisplus.core.MybatisConfiguration; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/mapper/IMapper.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/mapper/IMapper.java index ffe24830..4c7a4d32 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/mapper/IMapper.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/mapper/IMapper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.engine.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -11,8 +27,8 @@ import java.util.Collection; /** * 拓展BaseMapper * + * @param 实体 * @author VampireAchao Cizai_ - */ public interface IMapper extends BaseMapper { diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/MpInjectHelper.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/MpInjectHelper.java index 1130f3d8..8e849dc3 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/MpInjectHelper.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/MpInjectHelper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.engine.methods; import com.baomidou.mybatisplus.annotation.FieldStrategy; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/SaveOneSql.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/SaveOneSql.java index 3cf2a732..81bf22fe 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/SaveOneSql.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/SaveOneSql.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.engine.methods; import com.baomidou.mybatisplus.annotation.IdType; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/UpdateOneSql.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/UpdateOneSql.java index 50cb9a6f..c0baa40c 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/UpdateOneSql.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/methods/UpdateOneSql.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.engine.methods; import com.baomidou.mybatisplus.core.injector.AbstractMethod; @@ -58,8 +74,8 @@ public class UpdateOneSql extends AbstractMethod implements PluginConst { .filter(i -> !i.isLogicDelete()) .map(i -> i.getColumn() + EQUALS + CASE + SPACE + tableInfo.getKeyColumn() + NEWLINE + SqlScriptUtils.convertForeach(SqlScriptUtils.convertChoose( - MpInjectHelper.updateCondition(i, TableFieldInfo::getUpdateStrategy) - , String.format(WHEN_THEN, safeKeyProperty, SqlScriptUtils.safeParam(ENTITY_DOT + i.getProperty())), + MpInjectHelper.updateCondition(i, TableFieldInfo::getUpdateStrategy), + String.format(WHEN_THEN, safeKeyProperty, SqlScriptUtils.safeParam(ENTITY_DOT + i.getProperty())), String.format(WHEN_THEN, safeKeyProperty, i.getColumn())), COLLECTION_PARAM_NAME, null, ENTITY, null) + END ) diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/CompositiveTest.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/CompositiveTest.java index bc04ed58..cbd02e6b 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/CompositiveTest.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/CompositiveTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; /** diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/DatabaseTest.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/DatabaseTest.java index b82d4b06..2912dd25 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/DatabaseTest.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/DatabaseTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/ManyTest.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/ManyTest.java index 176f56f5..055e5307 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/ManyTest.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/ManyTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.test.autoconfigure.MybatisPlusTest; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/MybatisPlusTestApplication.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/MybatisPlusTestApplication.java index ebb33354..d9b87cc4 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/MybatisPlusTestApplication.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/MybatisPlusTestApplication.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.annotation.DbType; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneTest.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneTest.java index dd7f17bf..546f0210 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneTest.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.test.autoconfigure.MybatisPlusTest; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyTest.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyTest.java index eee5fc23..87d5f951 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyTest.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.test.autoconfigure.MybatisPlusTest; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyToOneTest.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyToOneTest.java index 88503322..ca6bd872 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyToOneTest.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToManyToOneTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.core.toolkit.Wrappers; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToOneTest.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToOneTest.java index 30a9e7cf..1565fed1 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToOneTest.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/OneToOneTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus; import com.baomidou.mybatisplus.test.autoconfigure.MybatisPlusTest; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/mapper/UserInfoMapper.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/mapper/UserInfoMapper.java index bf48c6c3..c235eb2a 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/mapper/UserInfoMapper.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/mapper/UserInfoMapper.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.mapper; import org.apache.ibatis.annotations.Mapper; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/RoleInfo.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/RoleInfo.java index 755f01a1..6da6958b 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/RoleInfo.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/RoleInfo.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.pojo.po; import com.baomidou.mybatisplus.annotation.DbType; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/UserInfo.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/UserInfo.java index 8c2345f6..627410c9 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/UserInfo.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/UserInfo.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.pojo.po; import com.baomidou.mybatisplus.annotation.IdType; diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/UserRole.java b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/UserRole.java index ea5db0ff..bd90f9d3 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/UserRole.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/test/java/org/dromara/streamquery/stream/plugin/mybatisplus/pojo/po/UserRole.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.dromara.streamquery.stream.plugin.mybatisplus.pojo.po; import lombok.Data; -- Gitee