Cast it into an array of ints.

int[] blah = (int[])(resourceLanguageGroup.get("LanguageId").getValue());

-d



-----Original Message-----
From: Luke Majewski [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 31, 2003 8:39 PM
To: Turbine Users List
Subject: return type for multiValued intake field

Hi all,

I think my last post was somewhat confusing - perhaps this is easier.  Does
anyone know the return type for a multiValued int (or String) field in
intake?  I have the following two little lines of code as a test:

Object test = (resourceLanguageGroup.get("LanguageId").getValue());
logger.debug("What is my class type: " + test.getClass());

this gives me the class type of "[I" - literally a bracket and a capital I.
Now I also did this with a normal int field (not multivalued) and that came
back as "java.lang.Integer" as expected...  anyone know what I'm supposed to
do with a "[I" class if I want to insert those values into my db?  I am
really stuck here, any advice would be very welcome,

Luke Majewski
Center for Promotion of Child Development Through Primary Care

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to