Class ODataTypeManager


  • public class ODataTypeManager
    extends Object
    • Constructor Detail

      • ODataTypeManager

        public ODataTypeManager()
    • Method Detail

      • teiidType

        public static String teiidType​(org.apache.olingo.commons.core.edm.primitivetype.SingletonPrimitiveType odataType,
                                       boolean array)
      • teiidType

        public static String teiidType​(String odataType,
                                       boolean array)
      • odataType

        public static org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind odataType​(Class<?> teiidRuntimeTypeClass)
      • odataType

        public static org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind odataType​(BaseColumn c)
      • odataType

        public static org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind odataType​(String teiidRuntimeType)
      • convertToTeiidRuntimeType

        public static Object convertToTeiidRuntimeType​(Class<?> type,
                                                       Object value,
                                                       String odataType,
                                                       String srid)
                                                throws TeiidException
        Parameters:
        type -
        value -
        odataType - type hint if the value could be a string containing a literal value of another type
        Returns:
        Throws:
        TeiidException
      • convertToODataURIValue

        public static String convertToODataURIValue​(Object val,
                                                    String odataType)
                                             throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
        Throws:
        org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException