org.jboss.narayana.blacktie.jatmibroker.xatmi.impl
Class X_C_TYPE_Impl
java.lang.Object
org.jboss.narayana.blacktie.jatmibroker.xatmi.impl.BufferImpl
org.jboss.narayana.blacktie.jatmibroker.xatmi.impl.X_C_TYPE_Impl
- All Implemented Interfaces:
- Serializable, Buffer, X_C_TYPE
public class X_C_TYPE_Impl
- extends BufferImpl
- implements X_C_TYPE
The X_C_TYPE buffer supports the broadest set of parameter types.
- See Also:
- Serialized Form
|
Constructor Summary |
X_C_TYPE_Impl(String subtype)
The constructor is hidden as the Connection factory method should be used instead. |
|
Method Summary |
byte |
getByte(String key)
|
byte[] |
getByteArray(String key)
|
byte[][] |
getByteArrayArray(String key)
|
double |
getDouble(String key)
|
double[] |
getDoubleArray(String key)
|
float |
getFloat(String key)
|
float[] |
getFloatArray(String key)
|
int |
getInt(String key)
|
int[] |
getIntArray(String key)
|
long |
getLong(String key)
|
long[] |
getLongArray(String key)
|
short |
getShort(String key)
Get the short value identified by the key. |
short[] |
getShortArray(String key)
|
void |
setByte(String key,
byte value)
|
void |
setByteArray(String key,
byte[] value)
|
void |
setByteArrayArray(String key,
byte[][] value)
|
void |
setDouble(String key,
double value)
|
void |
setDoubleArray(String key,
double[] value)
|
void |
setFloat(String key,
float value)
|
void |
setFloatArray(String key,
float[] value)
|
void |
setInt(String key,
int value)
|
void |
setIntArray(String key,
int[] value)
|
void |
setLong(String key,
long value)
|
void |
setLongArray(String key,
long[] value)
|
void |
setShort(String key,
short value)
Set the short value |
void |
setShortArray(String key,
short[] value)
|
| Methods inherited from class org.jboss.narayana.blacktie.jatmibroker.xatmi.impl.BufferImpl |
clear, deserialize, getAttributeValue, getFormat, getLen, getRawData, getSubtype, getType, serialize, setAttributeValue, setRawData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X_C_TYPE_Impl
public X_C_TYPE_Impl(String subtype)
throws ConnectionException,
org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException
- The constructor is hidden as the
Connection factory method should be used instead.
- Parameters:
subtype - The subtype of the bufferproperties - The properties to read
- Throws:
ConnectionException - In case the buffer does not exist
org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException- See Also:
ConnectionImpl#tpalloc(String, String)}
getShort
public short getShort(String key)
throws ConnectionException
- Get the short value identified by the key.
- Specified by:
getShort in interface X_C_TYPE
- Parameters:
key - The key to use
- Returns:
- The short value
- Throws:
ConnectionException - In case the key is not part of the structure.
setShort
public void setShort(String key,
short value)
throws ConnectionException
- Set the short value
- Specified by:
setShort in interface X_C_TYPE
- Parameters:
key - The value to setvalue - The value to use
- Throws:
ConnectionException - In case the key is unknown.
getLong
public long getLong(String key)
throws ConnectionException
- Specified by:
getLong in interface X_C_TYPE
- Throws:
ConnectionException
setLong
public void setLong(String key,
long value)
throws ConnectionException
- Specified by:
setLong in interface X_C_TYPE
- Throws:
ConnectionException
getByte
public byte getByte(String key)
throws ConnectionException
- Specified by:
getByte in interface X_C_TYPE
- Throws:
ConnectionException
setByte
public void setByte(String key,
byte value)
throws ConnectionException
- Specified by:
setByte in interface X_C_TYPE
- Throws:
ConnectionException
getShortArray
public short[] getShortArray(String key)
throws ConnectionException
- Specified by:
getShortArray in interface X_C_TYPE
- Throws:
ConnectionException
setShortArray
public void setShortArray(String key,
short[] value)
throws ConnectionException
- Specified by:
setShortArray in interface X_C_TYPE
- Throws:
ConnectionException
getLongArray
public long[] getLongArray(String key)
throws ConnectionException
- Specified by:
getLongArray in interface X_C_TYPE
- Throws:
ConnectionException
setLongArray
public void setLongArray(String key,
long[] value)
throws ConnectionException
- Specified by:
setLongArray in interface X_C_TYPE
- Throws:
ConnectionException
getByteArray
public byte[] getByteArray(String key)
throws ConnectionException
- Specified by:
getByteArray in interface X_C_TYPE
- Throws:
ConnectionException
setByteArray
public void setByteArray(String key,
byte[] value)
throws ConnectionException
- Specified by:
setByteArray in interface X_C_TYPE
- Throws:
ConnectionException
getInt
public int getInt(String key)
throws ConnectionException
- Specified by:
getInt in interface X_C_TYPE
- Throws:
ConnectionException
setInt
public void setInt(String key,
int value)
throws ConnectionException
- Specified by:
setInt in interface X_C_TYPE
- Throws:
ConnectionException
getFloat
public float getFloat(String key)
throws ConnectionException
- Specified by:
getFloat in interface X_C_TYPE
- Throws:
ConnectionException
setFloat
public void setFloat(String key,
float value)
throws ConnectionException
- Specified by:
setFloat in interface X_C_TYPE
- Throws:
ConnectionException
getDouble
public double getDouble(String key)
throws ConnectionException
- Specified by:
getDouble in interface X_C_TYPE
- Throws:
ConnectionException
setDouble
public void setDouble(String key,
double value)
throws ConnectionException
- Specified by:
setDouble in interface X_C_TYPE
- Throws:
ConnectionException
getIntArray
public int[] getIntArray(String key)
throws ConnectionException
- Specified by:
getIntArray in interface X_C_TYPE
- Throws:
ConnectionException
setIntArray
public void setIntArray(String key,
int[] value)
throws ConnectionException
- Specified by:
setIntArray in interface X_C_TYPE
- Throws:
ConnectionException
getFloatArray
public float[] getFloatArray(String key)
throws ConnectionException
- Specified by:
getFloatArray in interface X_C_TYPE
- Throws:
ConnectionException
setFloatArray
public void setFloatArray(String key,
float[] value)
throws ConnectionException
- Specified by:
setFloatArray in interface X_C_TYPE
- Throws:
ConnectionException
getDoubleArray
public double[] getDoubleArray(String key)
throws ConnectionException
- Specified by:
getDoubleArray in interface X_C_TYPE
- Throws:
ConnectionException
setDoubleArray
public void setDoubleArray(String key,
double[] value)
throws ConnectionException
- Specified by:
setDoubleArray in interface X_C_TYPE
- Throws:
ConnectionException
getByteArrayArray
public byte[][] getByteArrayArray(String key)
throws ConnectionException
- Specified by:
getByteArrayArray in interface X_C_TYPE
- Throws:
ConnectionException
setByteArrayArray
public void setByteArrayArray(String key,
byte[][] value)
throws ConnectionException
- Specified by:
setByteArrayArray in interface X_C_TYPE
- Throws:
ConnectionException
Copyright © 2013. All Rights Reserved.