Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 1

Java 构建基于 Google AppEngine 的 Blog

0
 
  0 reviews  |  0 users  |  9,947 lines of code  |  0 current contributors  |  Analyzed 7 days ago
 
 

Twig - Making the Datastore more manageableTwig is an object persistence interface built on Google App Engine's low-level datastore which overcomes many of JDO-GAEs limitations including full support for inheritance, polymorphism and generic types. You can easily configure, modify or extend ... [More] Twigs behaviour by implementing your own strategies or overriding extension points in pure Java code. Twig is the only datastore interface to support: Parallel Asynchronous Commands Plain old Java object data models with no datastore dependencies Merged OR queries on multiple properties Read the documentation to get started Visit the Twig Discussion Group Show me some codeThe central interface you will use is ObjectDatastore which has an implementation AnnotationTypesafeDatastore // stateful session configured with annotations ObjectDatastore datastore = new AnnotationObjectDatastore(); // create a complex object graph Band ledzep = createClassicRockband(); // store the instance and all other reachable instances Key key = datastore.store(ledzep); // converted into a query by kind with a key name Band result = datastore.find(Band.class, "Led Zeppelin"); // the identical instance is always returned from same datastore assert result == ledzep; // modernize the classic rock band ledzep.name = "White Stripes"; // call update on changed instances datastore.update(ledzep); // no need to deal with Keys datastore.delete(ledzep); // run a find command Iterator punkBands = datastore.find() .type(Band.class) .addFilter("genre", EQUAL, Genre.PUNK) .returnResultsNow(); A common sentimentA message from the App Engine Java group: "It seems alarming to me that these basic relations are difficult to code. Lets face it, applications are full of these relations...it seems to me that too much developer time is required in the Persistence layer of GAE apps. The Persistence and Presentation layers needs to be a "no brainer", so more focus can be where it needs to be - the business layer. Does anyone feel the same?" - Diana Cruise Twig is named after the super thin sixties model Twiggy - or it could be something like Typesafe Wrapper in GAE [Less]

0
 
  0 reviews  |  0 users  |  16,331 lines of code  |  1 current contributor  |  Analyzed 4 days ago
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.