Google Appengine for Java: Keyを作るには KeyFactory をつかう。

KeyFactory




Key hogehogekey = KeyFactory.createKey(↓の形で引数指定);
して使う。






























Method Summary
戻り値の型メソッド名と引数指定

static Key
createKey(Key parent,
java.lang.String kind,
long id)




          Creates a new Key with the provided parent from its kind and ID.

static Key
createKey(Key parent,
java.lang.String kind,
java.lang.String name)




          Creates a new Key with the provided parent from its kind and name.

static Key
createKey(java.lang.String kind,
long id)




          Creates a new Key having no parent from its kind and ID.

static Key
createKey(java.lang.String kind,
java.lang.String name)




          Creates a new Key having no parent from its kind and name.





コメント

このブログの人気の投稿

4.3.0 Temporary Lookup Failureでドツボってた話

tomcat起動時の環境変数でJRE_HOMEを指定するときに

何が得られて何処へ向かうかだけを問うべき