|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.appengine.api.datastore.RawValue
public final class RawValue
A raw datastore value.
These are returned by projection queries when a PropertyProjection does not
specify a type.
Query.getProjections(),
Serialized Form| Method Summary | ||
|---|---|---|
|
asStrictType(java.lang.Class<T> type)
Returns an object of the exact type passed in. |
|
java.lang.Object |
asType(java.lang.Class<?> type)
Returns the object normally returned by the datastore if given type is passed in. |
|
boolean |
equals(java.lang.Object obj)
|
|
java.lang.Object |
getValue()
Returns the raw value. |
|
int |
hashCode()
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public <T> T asStrictType(java.lang.Class<T> type)
type - the class object for the desired type
null
java.lang.IllegalArgumentException - if the raw value cannot be converted into the given typepublic java.lang.Object asType(java.lang.Class<?> type)
Long.
All floating point values are returned as Double.
type - the class object for the desired type
null
java.lang.IllegalArgumentException - if the raw value cannot be converted into the given typepublic java.lang.Object getValue()
Boolean, Double, GeoPt, Key,
byte[], User or null.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||