|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.SoftWoehr.JTOpenContrib.MEU.MEUFileMember
Represents the AS400 file member which is being edited.
Field Summary | |
static java.math.BigDecimal |
ONE_POINT_OH_OH
Used in resequencing |
static int |
SRCDAT_INDEX
Record field |
static int |
SRCDTA_INDEX
Record field |
static int |
SRCSEQ_INDEX
Record field |
Constructor Summary | |
MEUFileMember(com.ibm.as400.access.AS400 as400,
java.lang.String lib,
java.lang.String file,
java.lang.String member)
Creates new MEUFileMember |
Method Summary | |
void |
appendRecord(com.ibm.as400.access.Record r)
Append a record to the working vector of records |
void |
close()
Close the file. |
void |
createMember(com.ibm.as400.access.RecordFormat rf,
java.lang.String textDescription)
Run this on an un-open'ed MEUFileMember that doesn't yet exist on the server to create this member. |
void |
createMember(java.lang.String textDescription)
Run this on an un-open'ed MEUFileMember that doesn't yet exist on the server to create this member. |
void |
displayRecordFormat()
Display record format of a SRCPFM. |
java.util.Enumeration |
elements()
Return all records in an enumeration |
java.lang.String |
getIFSPath()
Return the IFS path for the file member represented by this instance. |
java.lang.String |
getLibraryName()
Return the name of the which this MEUFileMember represents |
java.lang.String |
getMemberName()
Return the name of the member which this MEUFileMember represents |
com.ibm.as400.access.Record |
getNewRecord()
Return a new record in this file's format. |
com.ibm.as400.access.Record |
getNewRecord(java.math.BigDecimal srcseq,
java.math.BigDecimal srcdat,
java.lang.String srcdta)
Get a new record with its fields filled in |
int |
getNumberOfRecords()
How many records are there? |
java.lang.String |
getObjectName()
Return the name of the object (file) which this MEUFileMember represents |
com.ibm.as400.access.QSYSObjectPathName |
getObjectPath()
Return the object path object which holds the name of the file member |
com.ibm.as400.access.Record |
getRecordAt(int index)
Get a specific record (from 0 to numrecs - 1). |
com.ibm.as400.access.RecordFormat |
getRecordFormat()
|
com.ibm.as400.access.RecordFormat |
getRecordFormatTheHardWay()
Get the record format for this source member. |
static java.math.BigDecimal |
getSRCDAT(com.ibm.as400.access.Record r)
Get the date field |
static java.lang.String |
getSRCDTA(com.ibm.as400.access.Record r)
Get the text field |
java.lang.String |
getSRCDTAcontents(int recnum)
Get the text field by row number |
int |
getSRCDTAlength()
Return the length of the source text field |
static java.math.BigDecimal |
getSRCSEQ(com.ibm.as400.access.Record r)
Get the sequence field |
com.ibm.as400.access.AS400 |
getSystem()
Return server file resides on. |
void |
insertRecord(com.ibm.as400.access.Record r,
int index)
Insert a record into the working vector of records |
boolean |
isOpen()
Check if the file has been opened |
static void |
main(java.lang.String[] argv)
Just a quick test of record access |
void |
open()
Open the file on the host sytsem |
static boolean |
pathExists(com.ibm.as400.access.AS400 sys,
com.ibm.as400.access.QSYSObjectPathName qPath)
Return true if the system object referred to by the ifsPath exists |
void |
readAll()
Read in all records |
java.lang.String |
recordsToString()
Diagnostic dump of all records to a string |
void |
removeAllRecords()
Remove all records from our working vector of records |
void |
removeRecord(int index)
Remove a record from our working vector of records |
void |
resequence()
Reset the sequence numbers of all records |
void |
resequenceFrom(int index,
int postindex,
java.math.BigDecimal seqnum,
java.math.BigDecimal increment)
Resequence a range of records. |
boolean |
setRecordFormat()
Cause fetch of record format |
boolean |
setRecordFormat(com.ibm.as400.access.RecordFormat rf)
Set record format if not open, also clearing records. |
void |
setSRCDAT(com.ibm.as400.access.Record r,
java.math.BigDecimal datum)
Set the date field |
void |
setSRCDTA(com.ibm.as400.access.Record r,
java.lang.String datum)
Set the text field |
void |
setSRCSEQ(com.ibm.as400.access.Record r,
java.math.BigDecimal datum)
Set the sequence field |
static void |
testRead(java.lang.String server,
java.lang.String lib,
java.lang.String file,
java.lang.String member)
Read in records and display |
static void |
testWrite(java.lang.String server,
java.lang.String lib,
java.lang.String file,
java.lang.String member)
Read in records, modify, and write out |
void |
writeAll()
Write out all records. |
void |
writeAllClearingMember()
Clear the member and refill fresh will all records. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SRCSEQ_INDEX
public static final int SRCDAT_INDEX
public static final int SRCDTA_INDEX
public static final java.math.BigDecimal ONE_POINT_OH_OH
Constructor Detail |
public MEUFileMember(com.ibm.as400.access.AS400 as400, java.lang.String lib, java.lang.String file, java.lang.String member)
Method Detail |
public com.ibm.as400.access.AS400 getSystem()
public com.ibm.as400.access.QSYSObjectPathName getObjectPath()
public java.lang.String getIFSPath()
public java.lang.String getLibraryName()
public java.lang.String getObjectName()
public java.lang.String getMemberName()
public com.ibm.as400.access.RecordFormat getRecordFormatTheHardWay() throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException
public com.ibm.as400.access.RecordFormat getRecordFormat() throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException, java.beans.PropertyVetoException
AS400Exception
- AS400SecurityException
- java.lang.InterruptedException
- IOException
- PropertyVetoException
- public boolean setRecordFormat()
public boolean setRecordFormat(com.ibm.as400.access.RecordFormat rf) throws java.beans.PropertyVetoException
public int getSRCDTAlength()
public java.lang.String getSRCDTAcontents(int recnum)
public com.ibm.as400.access.Record getNewRecord() throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException, java.beans.PropertyVetoException
public com.ibm.as400.access.Record getNewRecord(java.math.BigDecimal srcseq, java.math.BigDecimal srcdat, java.lang.String srcdta) throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException, java.beans.PropertyVetoException
public void setSRCSEQ(com.ibm.as400.access.Record r, java.math.BigDecimal datum)
public void setSRCDAT(com.ibm.as400.access.Record r, java.math.BigDecimal datum)
public void setSRCDTA(com.ibm.as400.access.Record r, java.lang.String datum)
public static java.math.BigDecimal getSRCSEQ(com.ibm.as400.access.Record r) throws java.io.UnsupportedEncodingException
public static java.math.BigDecimal getSRCDAT(com.ibm.as400.access.Record r) throws java.io.UnsupportedEncodingException
public static java.lang.String getSRCDTA(com.ibm.as400.access.Record r) throws java.io.UnsupportedEncodingException
public void insertRecord(com.ibm.as400.access.Record r, int index) throws java.lang.ArrayIndexOutOfBoundsException
public void appendRecord(com.ibm.as400.access.Record r)
public void removeRecord(int index) throws java.lang.ArrayIndexOutOfBoundsException
public void removeAllRecords()
public int getNumberOfRecords()
public java.util.Enumeration elements()
public com.ibm.as400.access.Record getRecordAt(int index)
public void resequence()
public void resequenceFrom(int index, int postindex, java.math.BigDecimal seqnum, java.math.BigDecimal increment)
public static boolean pathExists(com.ibm.as400.access.AS400 sys, com.ibm.as400.access.QSYSObjectPathName qPath) throws java.io.IOException
public void createMember(com.ibm.as400.access.RecordFormat rf, java.lang.String textDescription) throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException, java.beans.PropertyVetoException
public void createMember(java.lang.String textDescription) throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException, java.beans.PropertyVetoException
public boolean isOpen()
public void open() throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException, java.beans.PropertyVetoException
public void readAll() throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException, java.beans.PropertyVetoException
public void writeAll() throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException
public void writeAllClearingMember() throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException, com.ibm.as400.access.ErrorCompletingRequestException, com.ibm.as400.access.ExtendedIllegalStateException, java.beans.PropertyVetoException
public void close() throws com.ibm.as400.access.AS400Exception, com.ibm.as400.access.AS400SecurityException, java.lang.InterruptedException, java.io.IOException
public void displayRecordFormat()
public static void testRead(java.lang.String server, java.lang.String lib, java.lang.String file, java.lang.String member)
public static void testWrite(java.lang.String server, java.lang.String lib, java.lang.String file, java.lang.String member)
public java.lang.String recordsToString()
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |