Entity (Google App Engine API for Java)

com.google.appengine.api.datastore

Class Entity

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public final class Entity
    extends PropertyContainer
    implements java.lang.Cloneable
    Entity is the fundamental unit of data storage. It has an immutable identifier (contained in the Key) object, a reference to an optional parent Entity, a kind (represented as an arbitrary string), and a set of zero or more typed properties.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String KEY_RESERVED_PROPERTY
      A reserved property name used to refer to the key of the entity.
      static java.lang.String SCATTER_RESERVED_PROPERTY
      A reserved property name used to refer to the scatter property of the entity.
      static java.lang.String VERSION_RESERVED_PROPERTY
      A reserved property name used to report an entity group's version.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Entity(Key key)
      Create a new Entity uniquely identified by the provided Key.
      Entity(java.lang.String kind)
      Create a new Entity with the specified kind and no parent Entity.
      Entity(java.lang.String kind, Key parent)
      Create a new Entity with the specified kind and parent Entity.
      Entity(java.lang.String kind, long id)
      Create a new Entity with the specified kind and ID and no parent Entity.
      Entity(java.lang.String kind, long id, Key parent)
      Create a new Entity with the specified kind and ID and parent Entity.
      Entity(java.lang.String kind, java.lang.String keyName)
      Create a new Entity with the specified kind and key name and no parent Entity.
      Entity(java.lang.String kind, java.lang.String keyName, Key parent)
      Create a new Entity with the specified kind, key name, and parent Entity.