|
CICS® Transaction Gateway Base API Programming Reference v8.1.0.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Container
A container is a uniquely named block of data that can be passed to a subsequent program or transaction. It refers to a particular parameter data structure that exists within a collection of virtually any form of application parameter data.
You can choose a container name which has a meaningful representation of the data structure. For example, in a human resource application, the container name might be <employee-name>
Nested Class Summary | |
---|---|
static class |
Container.ContainerType
Defines the type of data in a Container and whether it
is subject to code page conversion. |
Method Summary | |
---|---|
byte[] |
getBITData()
Gets binary data from a BIT container. |
int |
getCCSID()
Returns the CCSID of the data in the container. |
java.lang.String |
getCHARData()
Gets character data from a CHAR container. |
java.lang.String |
getName()
Gets the name of the container |
Container.ContainerType |
getType()
Gets the ContainerType of the container. |
boolean |
isCicsContainer()
Gets a value indicating whether the container was created by CICS. |
boolean |
isReadOnly()
Gets a value indicating whether the container was marked as read-only by CICS. |
void |
setBITData(byte[] data)
Puts binary data into a BIT container. |
void |
setCHARData(java.lang.String data)
Puts character data into a CHAR container. |
Method Detail |
---|
java.lang.String getName()
Container.ContainerType getType()
ContainerType
of the container.
Containers are one of two types. A BIT
container
is a block of binary data, much like a COMMAREA. There is no automatic
code page conversion of the data.
A CHAR
container has an associated code page.
When the data in the container is read, it is automatically converted from
the container code page to the code page of the platform.
Container.ContainerType
int getCCSID()
CHAR
, automatic code page conversion occurs
when the data is the container is modified or accessed. If the container
type is BIT
, no code page conversion occurs and
the CCSID is ignored.
Container.ContainerType
boolean isReadOnly()
true
, this implies that
isCicsContainer
is also
true
.
User programs cannot create read-only containers.
true
if the container is marked as read-only;
false
otherwise.boolean isCicsContainer()
true
if the container was created by CICS;
false
otherwise.byte[] getBITData() throws ContainerException
BIT
container.
ContainerException
- if the container type is not BIT
or
the container has been deleted.void setBITData(byte[] data) throws ContainerException
BIT
container.
data
- the data to put into the container.
ContainerException
- if the container type is not BIT
, or
the container is read-only.java.lang.String getCHARData() throws ContainerException, java.io.UnsupportedEncodingException
CHAR
container. Data
is automatically converted from the code page of the container.
ContainerException
- if the container type is not CHAR
or
the container has been deleted.
java.io.UnsupportedEncodingException
- if code page conversion of the container data cannot be
completed.void setCHARData(java.lang.String data) throws ContainerException
CHAR
container. Data
is automatically converted to the code page of the container.
data
- the data to put into the container.
ContainerException
- if the container type is not CHAR
,
or the container is read-only.
|
©Copyright IBM Corp. 1994, 2012 Legal |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |