public void setProperty(java.lang.String propertyName,
java.lang.Object value)
Sets the property named, propertyName, to value.
As the value is stored in the datastore, it is converted to the
datastore's native type. This may include widening, such as
converting a Short to a Long.
All Collections are prone
to losing their sort order and their original types as they are
stored in the datastore. For example, a TreeSet may be
returned as a List from getProperty(java.lang.String), with an
arbitrary re-ordering of elements.
Overrides any existing value for this property, whether indexed or
unindexed.
Note that Blob and Text property values are never indexed
by the built-in single property indexes. To store other types without
being indexed, use #setUnindexedProperty.
Parameters:value - may be one of the supported datatypes, a heterogenous
Collection of one of the supported datatypes, or an
UnindexedValue wrapping one of the supported datatypes.
Throws:
java.lang.IllegalArgumentException - If the value is not of a type that
the data store supports.