org.springframework.cloud.dataflow.core

## Class UriPersistenceConverter

- java.lang.Object
- - org.springframework.cloud.dataflow.core.UriPersistenceConverter

- All Implemented Interfaces:
    javax.persistence.AttributeConverter<URI,String>

      public class UriPersistenceConverter
      extends Object
      implements javax.persistence.AttributeConverter<URI,String>

  Convert URI to strings, used by the repository to ser/deser URI fields in Hibernate.
  Author:
    Christian Tzolov

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UriPersistenceConverter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `convertToDatabaseColumn(URI entityValue)`
    `URI` | `convertToEntityAttribute(String databaseValue)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### UriPersistenceConverter

          public UriPersistenceConverter()

  - ### Method Detail

    - #### convertToDatabaseColumn

          public String convertToDatabaseColumn(URI entityValue)

      Specified by:
        `convertToDatabaseColumn` in interface `javax.persistence.AttributeConverter<URI,String>`

    - #### convertToEntityAttribute

          public URI convertToEntityAttribute(String databaseValue)

      Specified by:
        `convertToEntityAttribute` in interface `javax.persistence.AttributeConverter<URI,String>`

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.