public final class SossObjectDescriptor
extends java.lang.Object
implements java.io.Serializable
NamedCache.putAll(java.util.Map)
operation.Constructor and Description |
---|
SossObjectDescriptor(java.io.Serializable object,
CreatePolicy policy,
ObjectMetadata metadata)
Creates a
SossObjDescriptor class with the metadata and CreatePolicy information needed to
insert an object via a bulk put NamedCache.putAll(java.util.Map) operation. |
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getInsertException()
Gets the exception encountered by a bulk add operation, or
null if the object was added to the NamedCache successfully. |
ObjectMetadata |
getMetadata()
Gets metadata related to the object being inserted.
|
java.io.Serializable |
getObject()
Gets the serializable object to insert into the NamedCache.
|
CreatePolicy |
getPolicy()
Policy information for the object being inserted.
|
void |
setMetadata(ObjectMetadata metadata) |
void |
setObject(java.io.Serializable object) |
void |
setPolicy(CreatePolicy policy) |
public SossObjectDescriptor(java.io.Serializable object, CreatePolicy policy, ObjectMetadata metadata)
SossObjDescriptor
class with the metadata and CreatePolicy information needed to
insert an object via a bulk put NamedCache.putAll(java.util.Map)
operation.object
- Object to insert into the NamedCache.policy
- Policy information for the object being inserted.metadata
- Metadata related to the object being inserted.public java.io.Serializable getObject()
public void setObject(java.io.Serializable object)
object
- Serializable valuegetObject()
public ObjectMetadata getMetadata()
public void setMetadata(ObjectMetadata metadata)
metadata
- Metadata valuegetMetadata()
public CreatePolicy getPolicy()
public void setPolicy(CreatePolicy policy)
policy
- CreatePolicy valuegetPolicy()
public java.lang.Exception getInsertException()
null
if the object was added to the NamedCache successfully.
This property can be checked after a NamedCache.add()
call to see if the corresponding object
was inserted.