Package com.ibm.websphere.ola
Class MappedRecordImpl
java.lang.Object
com.ibm.websphere.ola.MappedRecordImpl
- All Implemented Interfaces:
Serializable,Cloneable,Map,jakarta.resource.cci.MappedRecord,jakarta.resource.cci.Record
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPublic ConstructorMappedRecordImpl(String newRecordName, String newRecordDescription, HashMap newMap) Public Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the recordclone()Makes a copy of this MappedRecordbooleancontainsKey(Object key) Determines if the record contains a specific key.booleancontainsValue(Object value) Determines if the record contains a specific value.entrySet()Answers a Set of the mappings contained in this record.byte[]Returns the value that is mapped to the specified key.intGet the number of bytes of data currently stored.Get the current record name.Get the current descriptionbooleanisEmpty()Checks to see if the record is currently empty.keySet()Returns a Set view of the keys contained in this record.byte[]Adds a mapping to the record.voidCopies all the mappings from the given Map to the current record.byte[]Removes an mapping with a specific key from the record.voidsetRecordName(String name) Set the current record name.voidsetRecordShortDescription(String description) Set the current descriptionintsize()Returns the number of records that are in the record.Collection<byte[]>values()Returns a Collection of all the values in the record.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface jakarta.resource.cci.Record
equals, hashCode
-
Constructor Details
-
MappedRecordImpl
public MappedRecordImpl()Public Constructor -
MappedRecordImpl
Public Constructor- Parameters:
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.
-
-
Method Details
-
getRecordName
Get the current record name.- Specified by:
getRecordNamein interfacejakarta.resource.cci.Record- Returns:
- The name of the record.
-
getRecordShortDescription
Get the current description- Specified by:
getRecordShortDescriptionin interfacejakarta.resource.cci.Record- Returns:
- The description of the record.
-
getDataSize
public int getDataSize()Get the number of bytes of data currently stored.- Returns:
- Number of bytes
-
setRecordName
Set the current record name.- Specified by:
setRecordNamein interfacejakarta.resource.cci.Record- Parameters:
name- The name of the record.
-
setRecordShortDescription
Set the current description- Specified by:
setRecordShortDescriptionin interfacejakarta.resource.cci.Record- Parameters:
description- The description of the record.
-
clear
public void clear()Clears the record -
containsKey
Determines if the record contains a specific key.- Specified by:
containsKeyin interfaceMap- Parameters:
key- The key to check for.- Returns:
- True if the record contains the key.
-
containsValue
Determines if the record contains a specific value.- Specified by:
containsValuein interfaceMap- Parameters:
value- The value to check for.- Returns:
- True if the record contains the value.
-
entrySet
Answers a Set of the mappings contained in this record. -
get
Returns the value that is mapped to the specified key. -
isEmpty
public boolean isEmpty()Checks to see if the record is currently empty. -
keySet
Returns a Set view of the keys contained in this record. -
put
Adds a mapping to the record. -
putAll
Copies all the mappings from the given Map to the current record. -
remove
Removes an mapping with a specific key from the record. -
size
public int size()Returns the number of records that are in the record. -
values
Returns a Collection of all the values in the record. -
clone
Makes a copy of this MappedRecord- Specified by:
clonein interfacejakarta.resource.cci.Record- Returns:
- A copy of this Mapped Record
-