|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.technical.as400.AS400FileBase
net.sf.xbus.technical.as400.AS400FileSender
public class AS400FileSender
AS400AS400FileSender manages writing a file on the iSeries
integrated file System.
Configuration:
| Chapter | Section | Key | Content |
|---|---|---|---|
| System | Interface | Filename | Path name that represents an object in the QSYS library file system on the AS400 machine< |
| System | Interface | ConflictResolution | Three actions must be possible when a file already exists apend, overwrite or error |
| System | Interface | Encoding | Specified character encoding of the interface (Optional) |
| Field Summary | |
|---|---|
protected com.ibm.as400.access.SequentialFile |
mOriginFile
Represents an AS/400 physical or logical file. |
| Fields inherited from class net.sf.xbus.technical.as400.AS400FileBase |
|---|
mConverter |
| Constructor Summary | |
|---|---|
AS400FileSender(XBUSSystem system)
Constructs a AS400FileSender object giving all necessary data from the standard configuration, connecting to the iSeries and registering current resource by the TAManager. |
|
| Method Summary | |
|---|---|
void |
close()
Is not implemented for iSeries integrated file system |
void |
commit()
Performs a commit on the resource. |
java.lang.String |
execute(java.lang.String function,
java.lang.String callData)
Implemented method execute from TextSender sends the given
string callData to the AS400-system. |
java.lang.String |
getResolution(Configuration config,
java.lang.String system)
Reads conflict resolution (resolved action when the file already exists) for the given system name from the configuration and checks its conformity with the allowed ones: Append Overwrite Error |
java.lang.String |
getType()
A Sender can send data either as a String
or as an Object to the neighboring system. |
void |
open()
Is not implemented for iSeries integrated file system |
com.ibm.as400.access.RecordFormat |
prepareWriting()
|
void |
rollback()
Performs a rollback on the resource. |
| Methods inherited from class net.sf.xbus.technical.as400.AS400FileBase |
|---|
callAS400Program, copyFile, deleteFile, deleteMember, getEncoding, getRenamedMember, releaseLock, renameFile, setLock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.ibm.as400.access.SequentialFile mOriginFile
| Constructor Detail |
|---|
public AS400FileSender(XBUSSystem system)
throws XException
TAManager.
XException - - If any error occursAS400Connection| Method Detail |
|---|
public java.lang.String execute(java.lang.String function,
java.lang.String callData)
throws XException
execute from TextSender sends the given
string callData to the AS400-system. Three actions must be taking
into account when a file already exists:
Append |
append new data to the existing file | |
Overwrite |
overwrite existing file with the new data | |
Error |
throw XException |
execute in interface TextSenderfunction - - name of the interfacecallData - - String to be written
XException - if any error occurs
public com.ibm.as400.access.RecordFormat prepareWriting()
throws XException
XException
public java.lang.String getResolution(Configuration config,
java.lang.String system)
throws XException
config - Instanze of the configurationsystem - Sytem name which resoltion must be read.
XException - if resolution is falsh or any errors occurspublic void commit()
TAResource
commit in interface TAResourcepublic void rollback()
TAResource
rollback in interface TAResourcepublic void open()
open in interface TAResourcepublic void close()
close in interface TAResourcepublic java.lang.String getType()
SenderSender can send data either as a String
or as an Object to the neighboring system.Strings the Sender must fulfill two
preconditions:
getType returns Constants.TYPE_TEXTTextSenderObjects the Sender must also fulfill two
preconditions:
getType returns Constants.TYPE_OBJECTObjectSender
getType in interface Sender
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||