{"id":511,"date":"2010-03-30T12:02:24","date_gmt":"2010-03-30T10:02:24","guid":{"rendered":"http:\/\/www.tutego.de\/blog\/javainsel\/archives\/511"},"modified":"2010-03-30T19:46:47","modified_gmt":"2010-03-30T17:46:47","slug":"objectify-appengine-schne-abstraktion-der-low-level-datastore-api","status":"publish","type":"post","link":"https:\/\/www.tutego.de\/blog\/javainsel\/2010\/03\/objectify-appengine-schne-abstraktion-der-low-level-datastore-api\/","title":{"rendered":"objectify-appengine: sch\u00f6ne Abstraktion der Low-Level Datastore API"},"content":{"rendered":"<p>Die APIs JPA oder JDO sind auf einer NoSQL-Datenbank nicht optimal. Wer mit der Low-Level API programmiert, muss aber zu viel selbst machen. Das Projekt <a title=\"http:\/\/code.google.com\/p\/objectify-appengine\/\" href=\"http:\/\/code.google.com\/p\/objectify-appengine\/\">http:\/\/code.google.com\/p\/objectify-appengine\/<\/a> ist dabei eine willkommene Vereinfachung.<\/p>\n<p><!--more-->Objectify-Appengine provides the thinnest convenient layer which addresses these issues, yet preserves the elegance of <em>get<\/em>, <em>put<\/em>, <em>delete<\/em>, and <em>query<\/em>. In short:<\/p>\n<blockquote>\n<ul>\n<li>Objectify lets you persist, retrieve, delete, and query your own <strong>typed objects<\/strong>.\n<pre>class Car {\u00a0\u00a0\u00a0 @Id String vin; \/\/ Can be Long, long, or String\u00a0\u00a0\u00a0 String color;}\u00a0 Objectify ofy = ObjectifyService.begin();ofy.put(new Car(\"123123\", \"red\"));Car c = ofy.get(Car.class, \"123123\");ofy.delete(c);<\/pre>\n<\/li>\n<li>Objectify surfaces <strong>all native datastore features<\/strong>, including batch operations, queries, entity groups, and unindexed properties.<\/li>\n<li>Objectify provides <strong>type-safe key and query classes<\/strong> using Java generics.<\/li>\n<li>Objectify provides a <strong>human-friendly query interface<\/strong> based on GAE\/Python&#8217;s Query class.<\/li>\n<li>Objectify <strong>does not impact application cold-start time<\/strong>, adding a few milliseconds at most.<\/li>\n<li>Objectify can automatically <strong>cache your data in memcache<\/strong> for improved read performance.<\/li>\n<li>Objectify provides a simple, <strong>easy-to-understand transaction model<\/strong>.<\/li>\n<li>Objectify provides built-in facilities to <strong>help migrate schema changes<\/strong> forward.<\/li>\n<li>Objectify entities can be <strong><a href=\"http:\/\/code.google.com\/p\/objectify-appengine\/wiki\/ObjectifyWithGWT\">used in GWT<\/a><\/strong> without the need for Data Transfer Objects.<\/li>\n<li>Objectify has <strong>no external jar dependencies<\/strong>. Just add objectify.jar to your project.<\/li>\n<li>Objectify provides <strong>thorough documentation<\/strong> of concepts as well as use cases.<\/li>\n<\/ul>\n<\/blockquote>\n<p>Das Projekt ist gut dokumentiert, siehe <a title=\"http:\/\/code.google.com\/p\/objectify-appengine\/wiki\/Concepts\" href=\"http:\/\/code.google.com\/p\/objectify-appengine\/wiki\/Concepts\">http:\/\/code.google.com\/p\/objectify-appengine\/wiki\/Concepts<\/a> und <a title=\"http:\/\/code.google.com\/p\/objectify-appengine\/wiki\/IntroductionToObjectify\" href=\"http:\/\/code.google.com\/p\/objectify-appengine\/wiki\/IntroductionToObjectify\">http:\/\/code.google.com\/p\/objectify-appengine\/wiki\/IntroductionToObjectify<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Die APIs JPA oder JDO sind auf einer NoSQL-Datenbank nicht optimal. Wer mit der Low-Level API programmiert, muss aber zu viel selbst machen. Das Projekt http:\/\/code.google.com\/p\/objectify-appengine\/ ist dabei eine willkommene Vereinfachung.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[20,4],"tags":[],"class_list":["post-511","post","type-post","status-publish","format-standard","hentry","category-gaej","category-open-source"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/comments?post=511"}],"version-history":[{"count":3,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/511\/revisions"}],"predecessor-version":[{"id":519,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/511\/revisions\/519"}],"wp:attachment":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/media?parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/categories?post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/tags?post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}