content: /*
   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
   ~                                                                               ~
   ~ The MIT License (MIT)                                                         ~
   ~                                                                               ~
   ~ Copyright (c) 2015-2025 miaixz.org and other contributors.                    ~
   ~                                                                               ~
   ~ Permission is hereby granted, free of charge, to any person obtaining a copy  ~
   ~ of this software and associated documentation files (the "Software"), to deal ~
   ~ in the Software without restriction, including without limitation the rights  ~
   ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell     ~
   ~ copies of the Software, and to permit persons to whom the Software is         ~
   ~ furnished to do so, subject to the following conditions:                      ~
   ~                                                                               ~
   ~ The above copyright notice and this permission notice shall be included in    ~
   ~ all copies or substantial portions of the Software.                           ~
   ~                                                                               ~
   ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR    ~
   ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,      ~
   ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE   ~
   ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER        ~
   ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ~
   ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN     ~
   ~ THE SOFTWARE.                                                                 ~
   ~                                                                               ~
   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
  */
  package org.miaixz.bus.shade.beans;
  
  /**
   * 表字段类型
   *
   * @author Kimi Liu
   * @since Java 17+
   */
  public enum MySQLColumnType implements ColumnType {
  
      // 基本类型
      BASE_BYTE("byte", null), BASE_SHORT("short", null), BASE_CHAR("char", null), BASE_INT("int", null),
      BASE_LONG("long", null), BASE_FLOAT("float", null), BASE_DOUBLE("double", null), BASE_BOOLEAN("boolean", null),
  
      // 包装类型
      BYTE("Byte", null), SHORT("Short", null), CHARACTER("Character", null), INTEGER("Integer", null),
      LONG("Long", null), FLOAT("Float", null), DOUBLE("Double", null), BOOLEAN("Boolean", null), STRING("String", null),
  
      // sql 包下数据类型
      DATE_SQL("Date", "java.sql.Date"), TIME("Time", "java.sql.Time"), TIMESTAMP("Timestamp", "java.sql.Timestamp"),
      BLOB("Blob", "java.sql.Blob"), CLOB("Clob", "java.sql.Clob"),
  
      // java8 新时间类型
      LOCAL_DATE("LocalDate", "java.time.LocalDate"), LOCAL_TIME("LocalTime", "java.time.LocalTime"),
      YEAR("Year", "java.time.Year"), YEAR_MONTH("YearMonth", "java.time.YearMonth"),
      LOCAL_DATE_TIME("LocalDateTime", "java.time.LocalDateTime"),
  
      // 其他杂类
      BYTE_ARRAY("byte[]", null), OBJECT("Object", null), DATE("Date", "java.util.Date"),
      BIG_INTEGER("BigInteger", "java.math.BigInteger"), BIG_DECIMAL("BigDecimal", "java.math.BigDecimal");
  
      /**
       * 类型
       */
      private final String type;
  
      /**
       * 包路径
       */
      private final String pkg;
  
      MySQLColumnType(final String type, final String pkg) {
          this.type = type;
          this.pkg = pkg;
      }
  
      @Override
      public String getType() {
          return type;
      }
  
      @Override
      public String getPkg() {
          return pkg;
      }
  
  }
  