Class ODataConvertEdmService

java.lang.Object
com.hybris.ymkt.common.odata.ODataConvertEdmService

public class ODataConvertEdmService extends Object
Convert object value into well typed, well formated OData value.
  • Field Details

    • MAX_VALUE

      protected static final Integer MAX_VALUE
    • UTC

      protected static final ZoneId UTC
  • Constructor Details

    • ODataConvertEdmService

      public ODataConvertEdmService()
  • Method Details

    • convertEdm

      public Object convertEdm(Object value, org.apache.olingo.odata2.api.edm.EdmTyped property) throws org.apache.olingo.odata2.api.edm.EdmException
      Convert, align, adjust Java Object to the Olingo library input field requirements.
      • Round/truncate number/date according to the EDM precision.
      • Truncate String according to the max length.
      • Convert String into proper Java Objects.
      • etc.
      Parameters:
      value - object value
      property - EdmTyped of the OData value mapped field
      Returns:
      OData value
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException - EdmException
    • convertEdmDateTime

      protected Object convertEdmDateTime(Object value, org.apache.olingo.odata2.api.edm.EdmElement element) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • convertEdmDateTime

      protected Object convertEdmDateTime(String s, org.apache.olingo.odata2.api.edm.EdmElement element) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • convertEdmDateTimeOffset

      protected Object convertEdmDateTimeOffset(Object value, org.apache.olingo.odata2.api.edm.EdmElement element) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • convertEdmDecimal

      protected Object convertEdmDecimal(Object value, org.apache.olingo.odata2.api.edm.EdmElement element) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • convertEdmInt32

      protected Object convertEdmInt32(Object value, org.apache.olingo.odata2.api.edm.EdmElement element) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • convertEdmString

      protected Object convertEdmString(Object value, org.apache.olingo.odata2.api.edm.EdmElement element) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException