Java Reference
In-Depth Information
Table 7-1. The Datastore Core Value Types
Type
Java Class
Notes
short text
string, < 500
bytes
java.lang.String
short byte
string, < 500
bytes
com.google.appengine.api.datastore.ShortBlob
ShortBlob contains
an array of bytes of a
configurable length.
Boolean
value
boolean
or
java.lang.Boolean
integer
Stored as a long
integer, and then
converted to the
field type.
short
,
java.lang.Short
,
int
,
java.lang.Integer
,
long
,
java.lang.Long
floating
point
number
Stored as a double-
width float, and then
converted to the field
type.
float
,
java.lang.Float
,
double
,
java.lang.Double
date-time
java.util.Date
Google
account
com.google.appengine.api.users.User
User represents a
specific user,
represented by the
combination of an
e-mail address and a
specific Google
Apps domain.
long text
string
com.google.appengine.api.datastore.Text
String of unlimited
size.
long byte
string
com.google.appengine.api.datastore.Blob
Blob contains an
array of bytes of
unlimited size.