When you retrieve an entry from the global cache, the type of the Java™ object in the cache determines the http://www.w3.org/2001/XMLSchema schema type of the returned Value element.
Type of Java object that is in global cache | Schema type of the Value element that is returned |
---|---|
java.lang.Boolean | boolean |
java.lang.Byte | byte |
java.math.BigDecimal | decimal |
java.lang.Double | double |
java.lang.Float | float |
java.lang.Integer | int |
java.lang.BigInteger | integer |
java.lang.Long | long |
java.lang.Short | short |
java.lang.String | string |
For example, if a Cache Put transform maps an element of schema type xs:dateTime to a cache entry, the cache entry is created with a Java Object type of java.lang.String. If you use a Cache Get transform to retrieve the entry from the cache, the Value element is returned with a schema type of xs:string. In the nested mapping for the Cache Return transform, you can map the returned Value element to a target element of schema type xs:dateTime.