The Stored Procedures is in an oracle database. The procedure returns a
sys_refcursor, where the cursor has the following fields:
ID: it's a number field type.
Prices List: It's a list of Price type. An oracle user defined type with te
following structure:
* Id of price item: Number field
* priceAmount: amount. It's a NUMBER(12, 5) field.
If i used DataReadQuery with a StoredProcedureCall, the result list when the
query is executed has a list of DatabaseRecord, where the records has an object
array for the prices list.
I need to obtain the prices values, but using DataReadQuery the prices list is
returned as an Object array, with Object type elements, and no possibilities to
cast to the desired object.
Help.
2012/1/20 Tom Ware <tom.ware@xxxxxxxxxx <mailto:tom.ware@xxxxxxxxxx>>
Can you explain a little more about what this custom type is? We
provide a number of ways you can deal with special types and your choice
will depend on how it is derived.
At the simplest level, you can specify a Converter on the object that
maps to the special type. That will allow you do do some operations.
http://wiki.eclipse.org/Using___EclipseLink_JPA_Extensions_%__28ELUG%29#Using_EclipseLink___JPA_Converters
http://www.eclipse.org/__eclipselink/api/2.3/index.html
http://wiki.eclipse.org/Using___EclipseLink_JPA_Extensions_(__ELUG)#How_to_Use_the_.__40StructConverter_Annotation
main.em.getDelegate()).__getActiveSession().__executeQuery(query,
queryArgs);
recovers a list of DatabaseRecord, with a field as
[Ljava.lang.Object;@10010ec
object. When i'm trying to iterate this array, only have a
[Ljava.lang.Object;,
with no possibilities of see the data.
How i can do that?
_________________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@eclipse.org>
https://dev.eclipse.org/__mailman/listinfo/eclipselink-__users
<https://dev.eclipse.org/mailman/listinfo/eclipselink-users>
_________________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@eclipse.org>
https://dev.eclipse.org/__mailman/listinfo/eclipselink-__users