<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ~~~ /** * Copyright 2009-2018 the original author or authors. * * Licensed 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.apache.ibatis.session; import org.apache.ibatis.logging.Log; import org.apache.ibatis.logging.LogFactory; import org.apache.ibatis.mapping.MappedStatement; /** * Specify the behavior when detects an unknown column (or unknown property type) of automatic mapping target. * * @since 3.4.0 * @author Kazuki Shimizu */ public enum AutoMappingUnknownColumnBehavior { /** * Do nothing (Default). */ NONE { @Override public void doAction(MappedStatement mappedStatement, String columnName, String property, Class<?> propertyType) { // do nothing } }, /** * Output warning log. * Note: The log level of {@code 'org.apache.ibatis.session.AutoMappingUnknownColumnBehavior'} must be set to {@code WARN}. */ WARNING { @Override public void doAction(MappedStatement mappedStatement, String columnName, String property, Class<?> propertyType) { LogHolder.log.warn(buildMessage(mappedStatement, columnName, property, propertyType)); } }, /** * Fail mapping. * Note: throw {@link SqlSessionException}. */ FAILING { @Override public void doAction(MappedStatement mappedStatement, String columnName, String property, Class<?> propertyType) { throw new SqlSessionException(buildMessage(mappedStatement, columnName, property, propertyType)); } }; /** * Perform the action when detects an unknown column (or unknown property type) of automatic mapping target. * @param mappedStatement current mapped statement * @param columnName column name for mapping target * @param propertyName property name for mapping target * @param propertyType property type for mapping target (If this argument is not null, {@link org.apache.ibatis.type.TypeHandler} for property type is not registered) */ public abstract void doAction(MappedStatement mappedStatement, String columnName, String propertyName, Class<?> propertyType); /** * build error message. */ private static String buildMessage(MappedStatement mappedStatement, String columnName, String property, Class<?> propertyType) { return new StringBuilder("Unknown column is detected on '") .append(mappedStatement.getId()) .append("' auto-mapping. Mapping parameters are ") .append("[") .append("columnName=").append(columnName) .append(",").append("propertyName=").append(property) .append(",").append("propertyType=").append(propertyType != null ? propertyType.getName() : null) .append("]") .toString(); } private static class LogHolder { private static final Log log = LogFactory.getLog(AutoMappingUnknownColumnBehavior.class); } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看