I am trying to connect to the datastore from within the confines of an
app. The app (client) is currently looping through an array of
strings, where every string is a URL to a pic. The client is
periodically bugging the server for some data that it then displays to
the user. This is all static and has no user interaction.
http://cd-jks-countdown-app-v2.appspot.com/
The ideal is to allow the user to search the DB by any number of
filters (first name, last name, event, ,,, ) So I am setting up the
client to capture the user's search parameters and pass them to the
server, I am trying to get the server to build a query and ask the DB
for the correct result set. The server would then pass the list of
strings to the client and the client would only loop through those
photos. This implies, however, that I can:
1. Connect to the DB.
2, Pass the query to the DB and get a result set back
3. That I can load data to the DB to be queried against.
I think I have the "Add data" part correct:
PersistenceManager.persist(entity).
I think I have the entity correct. Basically a standard bean with
getter and setters for the instance variables, with the exception of
the primary kay (auto assigned Long), and a few annotation tags.
I think I have the query portion correct. Dynamically builds the
WHERE clause based on the parameters passed to it: if (firstName !=
null) query.append(blah)
(There is lots of information, online, about what to do when you have
the connection)
I haven't, however, figured out how to create the DB connection for
the server to use.
(There isn't any information about how to establish the connection, in
Java at least)
This is supposed to be a learning app, its only my second GWT app, but
it is rapidly becoming an exercise in extreme frustration.
> >
google-appengi...@googlegroups.com<google-appengine%2Bunsubscrib
e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >
http://groups.google.com/group/google-appengine?hl=en.- Hide quoted text -
>
> - Show quoted text -