DataStore - JDO

Google BigTable

GAE DataStore Java API
http://code.google.com/intl/zh-TW/appengine/docs/java/datastore/



PMF (Singleton)

static




Entity(s)

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Employee {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private String firstName;





EntityController(s) (EntityDao)

@ManagedBean (require)

Getter / Setter

CRUD

public methods
  • void insert(em, entity)
  • void update(em, entity)
  • Entity selectKey(em, key)
  • void destory(em, entity)









http://www.slideshare.net/bose999/gaej-jdo
Comments