public class PCollectingModelHandle extends PModelHandle implements Serializable
PCollectingModelHandle
is a version of PModelHandle
that contains a hash map. Use it to collect data that might otherwise
require a client-server round trip.
This behavior should be completely hidden.LOOKUP_DONT_UPDATE, LOOKUP_FORCE_UPDATE, LOOKUP_UPDATE_IF_NEEDED, UNTYPED
Constructor and Description |
---|
PCollectingModelHandle(PModelHandle mh)
Creates an instance of the collecting handle that is otherwise a
clone of another model handle.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the local collection.
|
boolean |
getCollectOnly()
Gets the
collectOnly property. |
Set |
getEntrySet()
Gets an entire set of description:value pairs as sets of
Map.Entry values. |
Object |
getValue(String fieldDesc)
Gets a local value.
|
boolean |
hasField(String fieldDesc)
Tests to see if the local collection has a certain field description.
|
void |
setCollectOnly(boolean colOnly)
Sets the
collectOnly property. |
void |
setValue(String fieldDesc,
Object val)
Sets a local value.
|
equals, getHash, getModel, getType, hashCode, isGivenHash, toString
public PCollectingModelHandle(PModelHandle mh)
mh
- a PModelHandle
to copypublic void setValue(String fieldDesc, Object val)
fieldDesc
- a description of the field to setval
- the value to set it topublic Object getValue(String fieldDesc)
fieldDesc
- a String
description of the field to getpublic boolean hasField(String fieldDesc)
fieldDesc
- the description to look forpublic Set getEntrySet()
Map.Entry
values.Map.Entry
values.public void clear()
public void setCollectOnly(boolean colOnly)
collectOnly
property. This property controls whether or
not the model cache is automatically updated with values from the local
cache.colOnly
- true if the model handle should only collect data
and not update the cache when possible; false otherwisepublic boolean getCollectOnly()
collectOnly
property. This property controls whether or
not the model cache is automatically updated with values from the local
cache.Copyright © 2003, 2023, Oracle and/or its affiliates.