[appengine-java] Is it possible to convert a user defined String key to a unique Long?

2010-04-08 Thread mscwd01
Hey,

As the title of this post suggests, is it possible to get a unique
Long id from a user defined String key?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Is it possible to convert a user defined String key to a unique Long?

2010-04-08 Thread Ikai L (Google)
You could probably change the characters to integer values and concatenate
these, but you are going to get some BIG numbers.

Better solution still is probably to use KeyFactory to generate a unique
Key. What is it you are trying to do?

On Thu, Apr 8, 2010 at 2:19 AM, mscwd01 mscw...@gmail.com wrote:

 Hey,

 As the title of this post suggests, is it possible to get a unique
 Long id from a user defined String key?

 Thanks

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.