public class MappedRecordImpl
extends java.lang.Object
implements javax.resource.cci.MappedRecord
| Constructor and Description |
|---|
MappedRecordImpl()
Public Constructor
|
MappedRecordImpl(java.lang.String newRecordName,
java.lang.String newRecordDescription,
java.util.HashMap newMap)
Public Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the record
|
java.lang.Object |
clone()
Makes a copy of this MappedRecord
|
boolean |
containsKey(java.lang.Object key)
Determines if the record contains a specific key.
|
boolean |
containsValue(java.lang.Object value)
Determines if the record contains a specific value.
|
java.util.Set<java.util.Map.Entry<java.lang.String,byte[]>> |
entrySet()
Answers a Set of the mappings contained in this record.
|
byte[] |
get(java.lang.Object key)
Returns the value that is mapped to the specified key.
|
int |
getDataSize()
Get the number of bytes of data currently stored.
|
java.lang.String |
getRecordName()
Get the current record name.
|
java.lang.String |
getRecordShortDescription()
Get the current description
|
boolean |
isEmpty()
Checks to see if the record is currently empty.
|
java.util.Set<java.lang.String> |
keySet()
Returns a Set view of the keys contained in this record.
|
byte[] |
put(java.lang.Object key,
java.lang.Object value)
Adds a mapping to the record.
|
void |
putAll(java.util.Map t)
Copies all the mappings from the given Map to the current record.
|
byte[] |
remove(java.lang.Object key)
Removes an mapping with a specific key from the record.
|
void |
setRecordName(java.lang.String name)
Set the current record name.
|
void |
setRecordShortDescription(java.lang.String description)
Set the current description
|
int |
size()
Returns the number of records that are in the record.
|
java.util.Collection<byte[]> |
values()
Returns a Collection of all the values in the record.
|
public MappedRecordImpl()
public MappedRecordImpl(java.lang.String newRecordName,
java.lang.String newRecordDescription,
java.util.HashMap newMap)
newRecordName - The record name for this Mapped Record.newRecordDescription - The short description for this Mapped Record.newMap - A Map filled with any values to prepopulate the Mapped Record with.public java.lang.String getRecordName()
getRecordName in interface javax.resource.cci.Recordpublic java.lang.String getRecordShortDescription()
getRecordShortDescription in interface javax.resource.cci.Recordpublic int getDataSize()
public void setRecordName(java.lang.String name)
setRecordName in interface javax.resource.cci.Recordname - The name of the record.public void setRecordShortDescription(java.lang.String description)
setRecordShortDescription in interface javax.resource.cci.Recorddescription - The description of the record.public void clear()
clear in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mapkey - The key to check for.public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mapvalue - The value to check for.public java.util.Set<java.util.Map.Entry<java.lang.String,byte[]>> entrySet()
entrySet in interface java.util.Mappublic byte[] get(java.lang.Object key)
get in interface java.util.Mapkey - The key to use.public boolean isEmpty()
isEmpty in interface java.util.Mappublic java.util.Set<java.lang.String> keySet()
keySet in interface java.util.Mappublic byte[] put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapkey - The key.value - The value.public void putAll(java.util.Map t)
putAll in interface java.util.Mapt - The Map to copy frompublic byte[] remove(java.lang.Object key)
remove in interface java.util.Mapkey - The key of the mapping to be removed.public int size()
size in interface java.util.Mappublic java.util.Collection<byte[]> values()
values in interface java.util.Mappublic java.lang.Object clone()
clone in interface javax.resource.cci.Recordclone in class java.lang.Object