Class SpannerKeyIdConverter

java.lang.Object
com.google.cloud.spring.autoconfigure.spanner.SpannerKeyIdConverter
All Implemented Interfaces:
org.springframework.data.rest.webmvc.spi.BackendIdConverter, org.springframework.plugin.core.Plugin<Class<?>>

public class SpannerKeyIdConverter extends Object implements org.springframework.data.rest.webmvc.spi.BackendIdConverter
Settings for key converter used in REST repositories.
  • Constructor Details

  • Method Details

    • fromRequestId

      public Serializable fromRequestId(String id, Class<?> entityType)
      Specified by:
      fromRequestId in interface org.springframework.data.rest.webmvc.spi.BackendIdConverter
    • getUrlIdSeparator

      protected String getUrlIdSeparator()
    • toRequestId

      public String toRequestId(Serializable source, Class<?> entityType)
      Specified by:
      toRequestId in interface org.springframework.data.rest.webmvc.spi.BackendIdConverter
    • supports

      public boolean supports(Class<?> type)
      Specified by:
      supports in interface org.springframework.plugin.core.Plugin<Class<?>>