Entity function ( String arg0 ) { Datastore loc0 = transaction . getDatastore ( ) ; Key loc1 = loc0 . newKeyFactory ( ) . setKind ( "srini_string" ) . newKey ( arg0 ) ; Entity loc2 = transaction . get ( loc1 ) ; transaction . commit ( ) ; return loc2 ; }
example of getting an entity for a given key . concode_field_sep Transaction transaction concode_field_sep Key rollback concode_elem_sep void addSingleEntity concode_elem_sep Key commit concode_elem_sep Key active concode_elem_sep List<Entity> run concode_elem_sep List<Key> multipleAddEntitiesDeferredId concode_elem_sep Key isActive concode_elem_sep void multipleDeleteEntities concode_elem_sep List<Entity> getMultiple concode_elem_sep void putSingleEntity concode_elem_sep void multipleUpdateEntities concode_elem_sep void multiplePutEntities concode_elem_sep List<Key> multiplePutEntitiesDeferredId concode_elem_sep void multipleAddEntities concode_elem_sep List<Entity> fetchEntitiesWithKeys