|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a data container for all data that will be passed to the ABAP function module when synchronized to the backend
Field Summary | |
static java.lang.String |
TYPE_OUTBOUND
Default type. |
static java.lang.String |
TYPE_REQUEST
will cause the inbound container to be provided during Sync |
Method Summary | |
void |
addItem(java.lang.String fieldname,
int linenumber,
java.lang.String fieldvalue)
Deprecated. use addItem(String fieldname, String fieldvalue)
instead. The line number will be increased automatically. |
void |
addItem(java.lang.String fieldname,
java.lang.String fieldvalue)
Adds an item to the container. |
void |
close()
Writes the content of the container to the current outbound file |
java.lang.String |
getContainerId()
Gets the unique identifier of the OutboundContainer object |
int |
getNextLineNumberForFieldname(java.lang.String fieldname)
Gets the next line number for a field. |
boolean |
setInitialItemCount(int initialItemCount)
Initially reserves space for given number of items. |
Field Detail |
public static final java.lang.String TYPE_OUTBOUND
public static final java.lang.String TYPE_REQUEST
Method Detail |
public java.lang.String getContainerId()
public void addItem(java.lang.String fieldname, int linenumber, java.lang.String fieldvalue) throws SyncException
addItem(String fieldname, String fieldvalue)
instead. The line number will be increased automatically.
null
and field name cannot be empty (IllegalArgumentException will be thrown).
fieldname
- the field namelinenumber
- the line numberfieldvalue
- the value of this field
SyncException
- Will be thrown if container was already closedpublic void addItem(java.lang.String fieldname, java.lang.String fieldvalue) throws SyncException
null
and field name cannot be empty (IllegalArgumentException will be thrown).
fieldname
- the fiel namefieldvalue
- the value of this field
SyncException
- Will be thrown if container was already closedpublic void close() throws SyncException
SyncException
- Will be thrown if container can not be written to
the outbound filepublic int getNextLineNumberForFieldname(java.lang.String fieldname)
null
(IllegalArgumentException will be thrown).
fieldname
- the field name
public boolean setInitialItemCount(int initialItemCount)
addItem
. Otherwise the call will be ignored and false
will be
returned. Only if the inital size could be set successfully true
will be returned.
initialItemCount
- The new initial number of items. Only values > 0
are allowed. Other values will be ignored
true
iff the initial number of items
could be set successfully
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |