|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.SoftWoehr.JTOpenContrib.MEU.MEUEditRow
Class originally intended to represent one row of the document, now mostly consists of methods for the border between the "record" metaphor and the "row" being edited in unicode in a hightly stream-oriented document architecture.
Method Summary | |
boolean |
appendCopyOf(com.ibm.as400.access.Record sourceRecord)
Append a copy of a record a last record. |
boolean |
appendRow(com.ibm.as400.access.Record record)
Append a record to the file. |
boolean |
appendRow(java.lang.String contents)
Append a record to the file with srcdta contents. |
java.math.BigDecimal |
calcSRCDAT()
Make the big decimal needed to create a SRCDAT timestamp (YYMMDD) |
java.math.BigDecimal |
calcSRCSEQ(int pos)
Calcs next srcseq by 1.00 increments |
void |
close()
Close and discard |
boolean |
copyRowAfter(int fromPos,
int precederPos)
Copy a record after a specific position. |
boolean |
copyRowBefore(int fromPos,
int followerPos)
Copy a row to before another row |
boolean |
createMember(java.lang.String description)
Create the new member. |
java.lang.String |
fromRow(int pos)
Get the contents of a row in a form suitable for editing. |
java.lang.String |
fromRows(int pos,
int postindex)
Make a string equivalent to all the rows desired, appending newlines to each but the last. |
MEUFileMember |
getFileMember()
Return the filemember associated with this object. |
java.lang.String |
getIFSPath()
Get path of file member |
int |
getNumberOfDisplayColumns()
Return number of columns used to display a row including sequence and date |
int |
getNumberOfRows()
Get number of records, really |
com.ibm.as400.access.RecordFormat |
getRecordFormat()
Return the record format or null if it couldn't be gotten. |
java.lang.String |
getSRCDTAcontents(int rownum)
Return the contents of a SRCDTA field |
int |
getSRCDTAlength()
Return length of SRCDTA field |
boolean |
insertAllRowsFrom(int rownum,
MEUEditRow rows)
|
boolean |
insertCopyOf(com.ibm.as400.access.Record sourceRecord,
int pos)
Insert a copy of a record at the position indicated, pushing all after back. |
boolean |
insertRow(com.ibm.as400.access.Record record,
int pos)
Create a new row at pos using record as the source |
boolean |
insertRow(java.lang.String row,
int pos)
Insert a new row into the records of the MEUFileMember based on a string to be the data contents. |
static void |
main(java.lang.String[] argv)
Just a quick test of record access |
java.lang.String |
messageRow(java.lang.String msg)
Return a **** MESSAGE **** row. |
boolean |
moveRowAfter(int fromPos,
int precederPos)
Move a record after a specific position. |
boolean |
moveRowBefore(int fromPos,
int followerPos)
Move a record before a specific position. |
boolean |
readAll()
Load all rows from the file member on server. |
java.lang.String |
recordsToString()
Return all records as a string |
boolean |
removeRow(int pos)
Delete a row. |
boolean |
replaceWithAllFrom(MEUEditRow rows)
Empty and replace with copies of all the rows from another MEUEditRow object. |
boolean |
setRecordFormat()
Cause the record format to be fetched |
boolean |
setRecordFormat(com.ibm.as400.access.RecordFormat rf)
Set record format if not open, also clearing records. |
static void |
testRead(java.lang.String server,
java.lang.String lib,
java.lang.String file,
java.lang.String member)
Read in rows and display |
static void |
testWrite(java.lang.String server,
java.lang.String lib,
java.lang.String file,
java.lang.String member)
Read in rows, display, modify, and write out |
boolean |
updateRow(int pos,
java.lang.String contents)
Give new contents to a row. |
boolean |
writeAll()
Clear member on the server and write all rows out fresh into empty member. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getIFSPath()
public boolean readAll()
public boolean createMember(java.lang.String description)
public boolean writeAll()
public MEUFileMember getFileMember()
public boolean setRecordFormat()
public boolean setRecordFormat(com.ibm.as400.access.RecordFormat rf) throws java.beans.PropertyVetoException
public com.ibm.as400.access.RecordFormat getRecordFormat()
public int getSRCDTAlength()
public java.lang.String getSRCDTAcontents(int rownum)
public int getNumberOfRows()
public int getNumberOfDisplayColumns()
public java.lang.String recordsToString()
public java.lang.String fromRow(int pos)
public java.lang.String messageRow(java.lang.String msg)
public java.lang.String fromRows(int pos, int postindex)
public java.math.BigDecimal calcSRCDAT()
public java.math.BigDecimal calcSRCSEQ(int pos)
public boolean replaceWithAllFrom(MEUEditRow rows)
public boolean insertAllRowsFrom(int rownum, MEUEditRow rows)
public boolean appendCopyOf(com.ibm.as400.access.Record sourceRecord)
public boolean appendRow(com.ibm.as400.access.Record record)
public boolean appendRow(java.lang.String contents)
public boolean insertCopyOf(com.ibm.as400.access.Record sourceRecord, int pos)
public boolean insertRow(com.ibm.as400.access.Record record, int pos)
public boolean insertRow(java.lang.String row, int pos)
public boolean updateRow(int pos, java.lang.String contents)
public boolean removeRow(int pos)
public boolean copyRowBefore(int fromPos, int followerPos)
public boolean moveRowBefore(int fromPos, int followerPos)
public boolean copyRowAfter(int fromPos, int precederPos)
public boolean moveRowAfter(int fromPos, int precederPos)
public void close()
public static void testWrite(java.lang.String server, java.lang.String lib, java.lang.String file, java.lang.String member)
public static void testRead(java.lang.String server, java.lang.String lib, java.lang.String file, java.lang.String member)
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |