Well, in AppEngine your primary key is the key for the object(Entity) and it can either be a generated ID or a unique string your application provides. "Google App Engine" by Dan Sanderson has a lot of examples on this. If you don't use a key_name property, then when you save with a put(), an ID is generated, but if you pass in key_name='thisIsMyKey' into the constructor, then you manually set the key for the object. You can use the method, id_or_name() to return either the object's key name or its ID, which ever one it has and has_id_or_name() would return a boolean about it, and if it's not saved and your not using key_name, then the ID would not exists yet. Also you can get the Entity(Object) from the datastore by using the get(k) method where k is a key object and the key object has two parts: kind and ID or key_name. Additionally you can fetch an object from the datastore with get_by_id() and get_by_key_name()
1More
Hitch Hiker's Guide to Java: Accessing Google UserService from GWT client through RPC - 0 views
1More
Episode 13: Using the Blobstore Java API « Google App Engine Java Experiments - 0 views
« First
‹ Previous
41 - 60
Next ›
Last »
Showing 20▼ items per page