Setting:
List<String> arrayDim1 = new ArrayList<String>();
List<String> arrayDim2 = new ArrayList<String>();
entity.setUnindexedProperty("ArrayDim1", arrayDim1 );
entity.setUnindexedProperty("ArrayDim2", arrayDim2 );
Unless your looking to run queries against the lists use the
setUnindexedProperty.
Getting:
List<String> arrayDim1 = (List<String>)
entity.getProperty("ArrayDim1");
List<String> arrayDim2 = (List<String>)
entity.getProperty("ArrayDim2");
if (arrayDim1 != null)
if(arrayDim2 != null)
On Mar 11, 9:41 am, Ganesh <[email protected]> wrote:
> Hi,
>
> Thanks for your response...I dont have my code with me right now..I
> will post it in a day or two. Meanwhile, do you have any example of
> handling two dimensional arrays into two separate lists of ArrayList?
>
> -Thanks
> Ganesh
>
> On Mar 10, 5:17 pm, Robert Lancer <[email protected]> wrote:
>
>
>
> > Just use two separate lists of ArrayList<String> and it should work
> > fine. Also you have to test for null whenever you pull anything out of
> > datastore, something like
>
> > if null then return new ArrayList<String>(0)
>
> > should work this case.
>
> > On Mar 10, 4:28 pm, thierry Le conniat <[email protected]> wrote:
>
> > > Hello,
> > > how to do you retreive data , could you send jour java code ?
>
> > > On 10 mar, 17:28, Ganesh <[email protected]> wrote:
>
> > > > Hi,
>
> > > > I am trying to store two dimensional string array in google data
> > > > store. I was getting an exception saying this data type not supported.
> > > > I tried changing the string array object to java.util.arraylist (gave
> > > > serizable = 'true' option). This time I was able to write the data
> > > > successfully. But when I tried to retrieve it, I am facing null
> > > > pointer exception. Can any body help me with this?
>
> > > > -Thanks
> > > > Ganesh- Hide quoted text -
>
> > - Show quoted text -
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.