Class TypedUUIDHandler

java.lang.Object
org.apache.ibatis.type.TypeReference<UUID>
org.apache.ibatis.type.BaseTypeHandler<UUID>
io.r2mo.dbe.mybatisplus.core.typehandler.TypedUUIDHandler
All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler<UUID>

@MappedTypes(java.util.UUID.class) public class TypedUUIDHandler extends org.apache.ibatis.type.BaseTypeHandler<UUID>
Author:
lang : 2025-08-28
  • Constructor Details

    • TypedUUIDHandler

      public TypedUUIDHandler()
  • Method Details

    • setParameter

      public void setParameter(PreparedStatement ps, int i, UUID parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
      Specified by:
      setParameter in interface org.apache.ibatis.type.TypeHandler<UUID>
      Overrides:
      setParameter in class org.apache.ibatis.type.BaseTypeHandler<UUID>
      Throws:
      SQLException
    • setNonNullParameter

      public void setNonNullParameter(PreparedStatement ps, int i, UUID parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
      Specified by:
      setNonNullParameter in class org.apache.ibatis.type.BaseTypeHandler<UUID>
      Throws:
      SQLException
    • getNullableResult

      public UUID getNullableResult(ResultSet resultSet, String columnName) throws SQLException
      Specified by:
      getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<UUID>
      Throws:
      SQLException
    • getNullableResult

      public UUID getNullableResult(ResultSet resultSet, int i) throws SQLException
      Specified by:
      getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<UUID>
      Throws:
      SQLException
    • getNullableResult

      public UUID getNullableResult(CallableStatement callableStatement, int i) throws SQLException
      Specified by:
      getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<UUID>
      Throws:
      SQLException