I want to run some tests using the native Java objects for GAE. I am not a Java expert but I have done this before using other Java libs. Could someone tell me how to create the primary object for datastore access - basically completing this command: createObject('Java', 'Path.To.Datastore.Object').init()
Using this API from CFML might be tedious; it might be easier to write a JSP page, then you can code in Java directly.
The first thing you need to do is create a DatastoreService using the DatastoreServiceFactory. All of your interaction with the datastore is through the DatastoreService methods. You'll then need to create Query, Key, or Entity instances to read/write to the datastore.
On Wed, Jun 24, 2009 at 7:46 AM, Baz <thinkl...@gmail.com> wrote: > I want to run some tests using the native Java objects for GAE. I am not a > Java expert but I have done this before using other Java libs. Could someone > tell me how to create the primary object for datastore access - basically > completing this command: createObject('Java', > 'Path.To.Datastore.Object').init()
On Wed, Jun 24, 2009 at 5:13 AM, Vince Bonfanti <vbonfa...@gmail.com> wrote:
> I'm not sure what you mean by the "primary object for datastore access." Do
> you want to use the GAE low-level datastore API?
> Using this API from CFML might be tedious; it might be easier to write a
> JSP page, then you can code in Java directly.
> The first thing you need to do is create a DatastoreService using the
> DatastoreServiceFactory. All of your interaction with the datastore is
> through the DatastoreService methods. You'll then need to create Query, Key,
> or Entity instances to read/write to the datastore.
> On Wed, Jun 24, 2009 at 7:46 AM, Baz <thinkl...@gmail.com> wrote:
>> I want to run some tests using the native Java objects for GAE. I am not a
>> Java expert but I have done this before using other Java libs. Could someone
>> tell me how to create the primary object for datastore access - basically
>> completing this command: createObject('Java',
>> 'Path.To.Datastore.Object').init()
On Wed, Jun 24, 2009 at 8:31 AM, Baz <thinkl...@gmail.com> wrote:
> Yes the DatastoreServiceFactory. I just can't seem to get the full path to
> put in CreateObject.
> Baz
> On Wed, Jun 24, 2009 at 5:13 AM, Vince Bonfanti <vbonfa...@gmail.com>wrote:
>> I'm not sure what you mean by the "primary object for datastore access."
>> Do you want to use the GAE low-level datastore API?
>> Using this API from CFML might be tedious; it might be easier to write a
>> JSP page, then you can code in Java directly.
>> The first thing you need to do is create a DatastoreService using the
>> DatastoreServiceFactory. All of your interaction with the datastore is
>> through the DatastoreService methods. You'll then need to create Query, Key,
>> or Entity instances to read/write to the datastore.
>> On Wed, Jun 24, 2009 at 7:46 AM, Baz <thinkl...@gmail.com> wrote:
>>> I want to run some tests using the native Java objects for GAE. I am not
>>> a Java expert but I have done this before using other Java libs. Could
>>> someone tell me how to create the primary object for datastore access -
>>> basically completing this command: createObject('Java',
>>> 'Path.To.Datastore.Object').init()
>>> Using this API from CFML might be tedious; it might be easier to write a
>>> JSP page, then you can code in Java directly.
>>> The first thing you need to do is create a DatastoreService using the
>>> DatastoreServiceFactory. All of your interaction with the datastore is
>>> through the DatastoreService methods. You'll then need to create Query, Key,
>>> or Entity instances to read/write to the datastore.
>>> On Wed, Jun 24, 2009 at 7:46 AM, Baz <thinkl...@gmail.com> wrote:
>>>> I want to run some tests using the native Java objects for GAE. I am not
>>>> a Java expert but I have done this before using other Java libs. Could
>>>> someone tell me how to create the primary object for datastore access -
>>>> basically completing this command: createObject('Java',
>>>> 'Path.To.Datastore.Object').init()