Class UUIDTypeHandler

java.lang.Object
org.apache.ibatis.type.TypeReference<UUID>
org.apache.ibatis.type.BaseTypeHandler<UUID>
org.languagetool.server.UUIDTypeHandler
All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler<UUID>

@MappedJdbcTypes(BINARY) public class UUIDTypeHandler extends org.apache.ibatis.type.BaseTypeHandler<UUID>
  • Constructor Details

    • UUIDTypeHandler

      public UUIDTypeHandler()
  • Method Details

    • 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 rs, String columnName) throws SQLException
      Specified by:
      getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<UUID>
      Throws:
      SQLException
    • getNullableResult

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

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

      private byte[] convertUUIDToBytes(UUID uuid)
    • convertBytesToUUID

      private UUID convertBytesToUUID(byte[] bytes)