ObjectifyFactory.getKey() javadocs

67 views
Skip to first unread message

Chris Merrill

unread,
Nov 17, 2011, 4:16:50 PM11/17/11
to objectify...@googlegroups.com
The description includes this phrase:
"Gets the Key given an object that might be a Key, Key, or entity." ???
I see the "Key,Key or Entity" pattern repeated several times in this page.

Does this have some special meaning or is it simply a mass-edit gone awry?

--
------------------------------------------------------------------------ -
Chris Merrill | Web Performance, Inc.
ch...@webperformance.com | http://webperformance.com
919-433-1762 | 919-845-7601

Web Performance: Website Load Testing Software & Services
------------------------------------------------------------------------ -

Jeff Schnitzer

unread,
Nov 17, 2011, 4:59:16 PM11/17/11
to objectify...@googlegroups.com
A lot of Objectify methods (like Query.filter()) accept "key-equivalent structures".  This could be an objectify generic Key<?>, a native datastore Key, or an entity with valid id/parent fields.  Ofy4 will probably add Ref<?> to that list.

Internally they pretty much all run the parameter through ObjectifyFactory.getKey() or ObjectifyFactory.getRawKey() depending on what the required value is.

The documentation could be cleaner.  We need a good term for "key-equivalent structure".

Jeff
Reply all
Reply to author
Forward
0 new messages