public class ECIChannelRecord
extends java.lang.Object
implements javax.resource.cci.MappedRecord
Constructor and Description |
---|
ECIChannelRecord(java.lang.String name)
Creates the Channel Record.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all entries from the Channel
|
java.lang.Object |
clone()
Not supported
|
boolean |
containsKey(java.lang.Object key)
Returns whether or not the specified Container name exists in the Channel.
|
boolean |
containsValue(java.lang.Object value)
Returns whether or not the Container value is within the Channel.
|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.Object name)
Retrieves a Container from the Channel.
|
java.lang.String |
getRecordName()
Returns the name of the Channel record
|
java.lang.String |
getRecordShortDescription()
Returns a short description of this record
|
int |
hashCode() |
boolean |
isEmpty()
Returns whether the Channel is empty or not.
|
java.util.Set |
keySet()
Returns a Set with the Container names in it.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Adds a Container to the Channel
|
void |
putAll(java.util.Map t)
Puts a group of Containers in a Channel
|
java.lang.Object |
remove(java.lang.Object name)
Removes a Container from the Channel
|
void |
setRecordName(java.lang.String name)
This method does not change the record name.
|
void |
setRecordShortDescription(java.lang.String description)
Sets a short record description.
|
int |
size()
Returns the number of Containers in the Channel
|
java.util.Collection |
values()
Returns the contents of all the Containers in the Channel
|
public ECIChannelRecord(java.lang.String name) throws javax.resource.ResourceException
name
- This is the name of the Channel (please note this is immutable once set).javax.resource.ResourceException
- if name is null or contains invalid Channel name chars.public java.lang.String getRecordName()
getRecordName
in interface javax.resource.cci.Record
public java.lang.String getRecordShortDescription()
getRecordShortDescription
in interface javax.resource.cci.Record
public void setRecordName(java.lang.String name)
setRecordName
in interface javax.resource.cci.Record
public void setRecordShortDescription(java.lang.String description)
setRecordShortDescription
in interface javax.resource.cci.Record
public void clear()
clear
in interface java.util.Map
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
public java.lang.Object get(java.lang.Object name)
get
in interface java.util.Map
name
- The name of the Container to retrievepublic boolean isEmpty()
isEmpty
in interface java.util.Map
public java.util.Set keySet()
keySet
in interface java.util.Map
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
public void putAll(java.util.Map t)
putAll
in interface java.util.Map
public java.lang.Object remove(java.lang.Object name)
remove
in interface java.util.Map
name
- Container to removepublic int size()
size
in interface java.util.Map
public java.util.Collection values()
values
in interface java.util.Map
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface javax.resource.cci.Record
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
equals
in interface javax.resource.cci.Record
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in interface javax.resource.cci.Record
hashCode
in class java.lang.Object