Class DefaultIntegrationKeyToODataEntryGenerator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String decodeValue​(java.lang.String value)  
      org.apache.olingo.odata2.api.ep.entry.ODataEntry generate​(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.lang.String integrationKey)
      Generates a OData entry representing the Alias for the EntityType integrationKey property references.
      org.apache.olingo.odata2.api.ep.entry.ODataEntry generate​(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.util.List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates)
      Generates a OData entry representing the Alias for the EntityType integrationKey property references.
      protected java.lang.String getEncoding()  
      protected java.lang.String getIntegrationKey​(org.apache.olingo.odata2.api.edm.EdmEntitySet edmEntitySet, java.util.List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates)  
      protected java.util.Map<java.lang.String,​java.lang.String> getKeyValuePerType​(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.lang.String integrationKey)  
      protected java.lang.Object getODataEntryProperty​(org.apache.olingo.odata2.api.edm.EdmProperty property, java.lang.String value)  
      protected java.util.Map<java.lang.Class<? extends org.apache.olingo.odata2.api.edm.EdmType>,​java.util.function.Function<java.lang.String,​java.lang.Object>> getPropertyConverters()  
      protected org.apache.olingo.odata2.api.ep.entry.ODataEntry populateODataEntry​(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.util.Map<java.lang.String,​java.lang.String> aliasValueMap)  
      void setEncoding​(java.lang.String encoding)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultIntegrationKeyToODataEntryGenerator

        public DefaultIntegrationKeyToODataEntryGenerator()
    • Method Detail

      • generate

        public org.apache.olingo.odata2.api.ep.entry.ODataEntry generate​(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet,
                                                                         java.lang.String integrationKey)
                                                                  throws org.apache.olingo.odata2.api.edm.EdmException
        Description copied from interface: IntegrationKeyToODataEntryGenerator
        Generates a OData entry representing the Alias for the EntityType integrationKey property references.
        Specified by:
        generate in interface IntegrationKeyToODataEntryGenerator
        Parameters:
        entitySet - - EntitySet that is being posted to
        integrationKey - - integrationKey string for the item
        Returns:
        oDataEntry - represents the oDataEntry
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • generate

        public org.apache.olingo.odata2.api.ep.entry.ODataEntry generate​(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet,
                                                                         java.util.List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates)
                                                                  throws org.apache.olingo.odata2.api.edm.EdmException
        Description copied from interface: IntegrationKeyToODataEntryGenerator
        Generates a OData entry representing the Alias for the EntityType integrationKey property references.
        Specified by:
        generate in interface IntegrationKeyToODataEntryGenerator
        Parameters:
        entitySet - - EntitySet that is being posted to
        keyPredicates - - Key predicates that represents the integration key
        Returns:
        oDataEntry - represents the oDataEntry
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • getIntegrationKey

        protected java.lang.String getIntegrationKey​(org.apache.olingo.odata2.api.edm.EdmEntitySet edmEntitySet,
                                                     java.util.List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates)
                                              throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • getKeyValuePerType

        protected java.util.Map<java.lang.String,​java.lang.String> getKeyValuePerType​(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet,
                                                                                            java.lang.String integrationKey)
                                                                                     throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • decodeValue

        protected java.lang.String decodeValue​(java.lang.String value)
      • populateODataEntry

        protected org.apache.olingo.odata2.api.ep.entry.ODataEntry populateODataEntry​(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet,
                                                                                      java.util.Map<java.lang.String,​java.lang.String> aliasValueMap)
                                                                               throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • getODataEntryProperty

        protected java.lang.Object getODataEntryProperty​(org.apache.olingo.odata2.api.edm.EdmProperty property,
                                                         java.lang.String value)
                                                  throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • getPropertyConverters

        protected java.util.Map<java.lang.Class<? extends org.apache.olingo.odata2.api.edm.EdmType>,​java.util.function.Function<java.lang.String,​java.lang.Object>> getPropertyConverters()
      • getEncoding

        protected java.lang.String getEncoding()
      • setEncoding

        public void setEncoding​(java.lang.String encoding)