|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.ui.ListManager
public class ListManager
The ListManager bean is used to associate one or more JComponents with the fields in a record format. These JComponents must allow a list of items, such as JTable, JList, JComboBox, JFormattedTable and JFormattedComboBox. The record format of a database file is defined in property recordIOManager. To associate a JComponent with a field, the JComponent bean name and the field name must match. If the JComponent bean name cannot be set to the name of the field, use addFieldMapping(String,String) or addFieldMapping(String[],String[]) to explicitly map the fields. If the displayContainer is a JFormattedTable or JTable, then the identifier of the JFormattedTableColumn or TableColumn has to match with the field name. When access to multiple record formats or database files is required, ListManager can join with another instance of ListManager, then only records whose foreign keys matches the key values of the joined record format can be accessed. Foreign keys can be any fields in the record format. All file access is done via RecordIOManager.
Before a ListManager can associate a JComponent to a field, following is required:
If the JComponent is a javax.swing.JTable, and it has no TableColumn defined, then ListManager will automatically create table columns based on the selectedColumnNames defined in recordIOManager.
If the JComponent is a javax.swing.JTable, and the openType of the database file is OPENTYPE_READ_WRITE, then whenever a different row is selected, and data in the previously-selected row has been changed, the previously-selected row will be updated in the database file automatically. If a new row is inserted before or after the current row, you can enter new values to the inserted row, and when the selected item of the table is changed, the inserted row will be added to the database file automatically.
If the JComponent that has field association is a JFormattedComponent, and its data attributes do not match the data type, data length or decimal places of the database field, ListManager will automatically change the attributes of the JFormattedComponent if property autoChangeDataAttributes is set to true. The following table outlines the attributes that can be changed for the different data types:
FIELD TYPE | DATA TYPE | LENGTH | DECIMAL PLACES |
binary (B) | DATATYPE_NUMERIC | no change | 0 |
character (A) | DATATYPE_CHARACTER | field length | 0 |
DBCS Either (E) | DATATYPE_CHARACTER | field length | 0 |
DBCS Graphic (G) | DATATYPE_CHARACTER | field length | 0 |
DBCS Only (J) | DATATYPE_CHARACTER | field length | 0 |
DBCS Open (O) | DATATYPE_CHARACTER | field length | 0 |
date (L) | DATATYPE_CHARACTER | field length | 0 |
float (F) | DATATYPE_CHARACTER | 20 | 0 |
hexadecimal (H) | DATATYPE_CHARACTER | field length x 2, ListManager will display the hexadecimal representation of the field | 0 |
packed decimal (P) | DATATYPE_NUMERIC | field length | field decimal places |
time (T) | DATATYPE_CHARACTER | field length (8 bytes) | 0 |
timestamp (Z) | DATATYPE_CHARACTER | field length (26 bytes) | 0 |
zoned decimal (S) | DATATYPE_NUMERIC | field length | field decimal places |
If ListManager is used inside VisualCompositionEditor, then a RecordIOManager serialized data class will be generated to preserve the RecordIOManager bean properties and the state of the object as serialized data in a generated class. The persistent data can be restored at any time when you want to change or set the bean properties of a new ListManager object.
Sample code:
JFormattedTable itemTable = new JFormattedTable(); JScrollPane scrollPane = new JScrollPane(itemTable); // add the scroll pane to the JFrame getContentPane().add(scrollPane, BorderLayout.CENTER); // set up the list manager ListManager myListManager = new ListManager(); try { myListManager.setRecordIOManager(new RecordIOManager("PRODUCT","ADTSLAB")); // set the scrollPane as the display container myListManager.setDisplayContainer(scrollPane); // read all the records from database PRODUCT in library ADTSLAB myListManager.readAllRecords(); } catch (Throwable e) { e.printStackTrace(); }
RecordIOManager
,
FormManager
,
Serialized FormField Summary | |
---|---|
static String |
Copyright
|
protected PropertyChangeSupport |
propertyChange
|
Fields inherited from interface com.ibm.etools.iseries.ui.ContainerManagement |
---|
copyright |
Constructor Summary | |
---|---|
ListManager()
ListManager constructor. |
Method Summary | |
---|---|
boolean |
addFieldMapping(String[] componentBeanName,
String[] dataFieldName)
To map multiple JComponents with multiple fields in the record format specified in recordIOManager object. |
boolean |
addFieldMapping(String componentBeanName,
String dataFieldName)
To map a single JComponents with a single field in the record format specified in recordIOManager object. |
boolean |
addFirstSelectedRecord()
If multiple items are selected from a JComponent, only the first selected item is added to the database file. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field. |
boolean |
addRecord(int row)
Add the data in row number row of a JComponent to the database file as new record. |
void |
cancelReadAllRecords()
Depends on the size of the file(s), the operation of readAllRecords() may take a long time to complete. |
protected void |
checkTableComponent()
User should never use this method, unexpected result may occur. |
void |
clearAllData()
To clear data of all JComponents that have field associations inside the displayContainer. |
void |
closeFile()
Close database files including joined files, then invoke clearAllData. |
void |
commit()
Invoke RecordIOManager.commit. |
static String |
Copyright()
Copyright notice. |
boolean |
deleteRecord(int row)
The record with the row number will be deleted. |
boolean |
deleteSelectedRecords()
The records of selected rows of a JTable or JList or JComboBox will be deleted. |
void |
displayData(DefaultTableModel resultSetModel)
Display data in resultSetModel onto the components. |
boolean |
endJournalPhysicalFile()
Invoke RecordIOManager.endJournalPhysicalFile. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
The firePropertyChange method was generated to support the propertyChange field. |
boolean |
getAscendingOrder()
Invoke RecordIOManager.getAscendingOrder. |
boolean |
getAutoChangeDataAttributes()
Gets the autoChangeDataAttributes property value. |
String |
getDatabaseFieldValue(String libraryName,
String fileName,
String fieldName,
int row)
Return the database value of a field of the specified row from the result set of last file operation. |
int |
getDebugLevel()
Gets the debugLevel property value. |
Container |
getDisplayContainer()
Gets the displayContainer property (java.awt.Container) value. |
protected PropertyChangeSupport |
getPropertyChange()
Accessor for the propertyChange field. |
boolean |
getReadingAll()
Property readingAll indicates if method readAllRecords is still in action, because method readAllRecords is run in a separate thread. |
RecordIOManager |
getRecordIOManager()
Gets the recordIOManager property value. |
int |
getRecordNumber(int row)
Returns the record number of a row. |
DefaultTableModel |
getResultSetTableModel()
Returns the resultSetTableModel of the last file operation. |
AS400 |
getSystem()
Gets the AS400 system object of the server specified in property server. |
boolean |
getThreadUsed()
Gets the threadUsed property value. |
protected void |
handleException(String messageHeader,
Throwable e)
Print a throwable exception to the console with a message header if debug is greater than 0. |
protected void |
handleException(Throwable e)
Prints the Throwable e and its backtrace to the standard error stream if debug is greater than 0. |
void |
insertAfterCurrentRecord()
Insert a new row of data after the current row in a JTable. |
void |
insertBeforeCurrentRecord()
Insert a new row of data before the current row in a JTable. |
void |
joinDataBase(String[] foreignKeyNames,
ListManager listMgr)
To join the database file specified in property recordIOManager, with another database file specified in another ListManager's RecordIOManager object. |
boolean |
openFile()
Opens a database file based on the property recordIOManager. |
boolean |
positionCursor(int recordNumber)
Invoke RecordIOManager.positionCursor(int). |
boolean |
positionCursor(String[] keyValues)
Invoke RecordIOManager.positionCursor(String[]). |
boolean |
positionCursorAfterLast()
Invoke RecordIOManager.positionCursorAfterLast. |
boolean |
positionCursorBeforeFirst()
Invoke RecordIOManager.positionCursorBeforeFirst. |
boolean |
positionCursorToFirst()
Invoke RecordIOManager.positionCursorToFirst. |
boolean |
positionCursorToLast()
Invoke RecordIOManager.positionCursorToLast. |
boolean |
positionCursorToNext()
Invoke RecordIOManager.positionCursorToNext. |
boolean |
positionCursorToPrevious()
Invoke RecordIOManager.positionCursorToPrevious. |
void |
propertyChange(PropertyChangeEvent e)
Examine the PropertyChangeEvent and decides what to do on a particular event. |
void |
readAllRecords()
Invoke RecordIOManager.readAllRecords and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readAllRecordsEqual(String[] keyValues)
Invoke RecordIOManager.readAllRecordsEqual and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readFirstSetOfRecords()
Invoke RecordIOManager.readFirstSetOfRecords and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readNextRecord()
Invoke RecordIOManager.readNextRecord and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readNextRecordEqual(String[] keyValues)
Invoke RecordIOManager.readNextRecordEqual and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readNextSetOfRecords()
Invoke RecordIOManager.readNextSetOfRecords and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readPreviousRecord()
Invoke RecordIOManager.readPreviousRecord and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readPreviousRecordEqual(String[] keyValues)
Invoke RecordIOManager.readPreviousRecordEqual and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readPreviousSetOfRecords()
Invoke RecordIOManager.readPreviousSetOfRecords and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readRecord()
Invoke RecordIOManager.readRecord and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readRecord(int recordNumber)
Invoke RecordIOManager.readRecord(int) and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readRecord(String[] keyValues)
Invoke RecordIOManager.readRecord(String[]) and the data returned will be displayed on the JComponents that have field associations. |
boolean |
readRecord(String[] keyValues,
int searchType)
Invoke RecordIOManager.readRecord(String[],int) and the data returned will be displayed on the JComponents that have field associations. |
boolean |
removeFieldMapping(String componentBeanName,
String dataFieldName)
To remove a field mapping that was added by addFieldMapping(String,String) or addFieldMapping(String[],String[]). |
void |
removePropertyChangeListener(PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field. |
void |
rollback()
Invoke RecordIOManager.rollback. |
void |
setAscendingOrder(boolean order)
Set the order of record retrieval. |
void |
setAutoChangeDataAttributes(boolean autoChange)
Sets the autoChangeDataAttributes property value. |
void |
setDebugLevel(int value)
Sets the debug property value. |
void |
setDisplayContainer(Container container)
Sets the displayContainer property (java.awt.Component) value. |
void |
setRecordIOManager(RecordIOManager reciomgr)
Sets the recordIOManager property value. |
protected void |
setResultSetTableModel(DefaultTableModel resultSetModel)
Insert the method's description here. |
void |
setSystem(AS400 as400)
Sets the system property value. |
void |
setThreadUsed(boolean useThreads)
Sets whether the bean uses threads in communication with the host servers. |
boolean |
startJournalPhysicalFile()
Invoke RecordIOManager.startJournalPhysicalFile. |
boolean |
updateFirstSelectedRecord()
If multiple items are selected from a JComponent, only the first selected item is updated to the database file. |
boolean |
updateRecord(int row)
Update the data in row number row of a JComponent to the database file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
protected transient PropertyChangeSupport propertyChange
Constructor Detail |
---|
public ListManager()
Method Detail |
---|
public boolean addFieldMapping(String[] componentBeanName, String[] dataFieldName)
componentBeanName
- String array that contains the bean names of
JComponents.dataFieldName
- String array that contains the names of the
fields in record format.
addFieldMapping(String,String)
,
removeFieldMapping(String,String)
public boolean addFieldMapping(String componentBeanName, String dataFieldName)
componentBeanName
- The bean name of a JComponents.dataFieldName
- The name of a field in record format.
addFieldMapping(String[],String[])
,
removeFieldMapping(String,String)
public boolean addFirstSelectedRecord() throws AS400Exception, AS400SecurityException, InterruptedException, IOException, InvalidFieldDataException
DATA TYPE | DEFAULT VALUE |
binary (B) | 0 |
character (A) | "" |
DBCS Either (E) | "" |
DBCS Graphic (G) | "" |
DBCS Only (J) | "" |
DBCS Open (O) | "" |
date (L) | "0001-01-01" |
float (F) | 0 |
hexadecimal (H) | 0x40 |
packed decimal (P) | 0 |
time (T) | "00.00.00" |
timestamp (Z) | "0001-01-01-00.00.00.000000" |
zoned decimal (S) | 0 |
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
InvalidFieldDataException
- Invalid data in one or more fields.
AS400Exception
AS400SecurityException
InterruptedException
IOException
addRecord(int)
public void addPropertyChangeListener(PropertyChangeListener listener)
public boolean addRecord(int row) throws AS400Exception, AS400SecurityException, InterruptedException, IOException, InvalidFieldDataException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
InvalidFieldDataException
- Invalid data in one or more fields.
AS400Exception
AS400SecurityException
InterruptedException
IOException
addFirstSelectedRecord()
public void cancelReadAllRecords()
readAllRecords()
protected void checkTableComponent()
public void clearAllData()
public void closeFile() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
openFile()
public void commit() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
rollback()
,
RecordIOManager.commit()
public static String Copyright()
public boolean deleteRecord(int row) throws RecordNotFoundException, AS400Exception, AS400SecurityException, InterruptedException, IOException
row
- The row number of a JTable or JList or JComboBox. row 0
is the first row.
RecordNotFoundException
- Records of
the specified row are not found.
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
public boolean deleteSelectedRecords() throws RecordNotFoundException, AS400Exception, AS400SecurityException, InterruptedException, IOException
RecordNotFoundException
- Records of
selected items are not found.
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
public void displayData(DefaultTableModel resultSetModel)
DefaultTableModel
- resultSetTableModelpublic boolean endJournalPhysicalFile() throws AS400Exception, AS400SecurityException, InterruptedException, IOException, ErrorCompletingRequestException, ExtendedIllegalStateException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while
communicating with the AS/400.
com.ibm.as400.access.ErrorCompletingRequestException
- If an
error occurs before the request is completed.
com.ibm.as400.access.ExtendedIllegalStateException
- An object
is not in the proper state to perform the requested operation.
AS400Exception
AS400SecurityException
InterruptedException
IOException
ErrorCompletingRequestException
ExtendedIllegalStateException
startJournalPhysicalFile()
,
RecordIOManager.endJournalPhysicalFile()
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public boolean getAscendingOrder()
setAscendingOrder(boolean)
,
RecordIOManager.getAscendingOrder()
public boolean getAutoChangeDataAttributes()
setAutoChangeDataAttributes(boolean)
public String getDatabaseFieldValue(String libraryName, String fileName, String fieldName, int row)
libraryName
- java.lang.StringfileName
- java.lang.StringfieldName
- java.lang.String
public int getDebugLevel()
public Container getDisplayContainer()
getDisplayContainer
in interface ContainerManagement
setDisplayContainer(java.awt.Container)
protected PropertyChangeSupport getPropertyChange()
public boolean getReadingAll()
public RecordIOManager getRecordIOManager()
getRecordIOManager
in interface ContainerManagement
setRecordIOManager(com.ibm.etools.iseries.ui.RecordIOManager)
public int getRecordNumber(int row)
row
- int
public DefaultTableModel getResultSetTableModel()
public AS400 getSystem()
setSystem(AS400)
public boolean getThreadUsed()
setThreadUsed(boolean)
protected void handleException(String messageHeader, Throwable e)
messageHeader
- java.lang.Stringe
- java.lang.Throwableprotected void handleException(Throwable e)
e
- java.lang.Throwablepublic void insertAfterCurrentRecord()
jtable
- com.sun.java.swing.JTablepublic void insertBeforeCurrentRecord()
jtable
- com.sun.java.swing.JTablepublic void joinDataBase(String[] foreignKeyNames, ListManager listMgr)
foreignKeyNames
- A string array that contains the names of the
foreign keys, the field names that join the two database files
together with equal values.listMgr
- ListManager object to be joined. It is actually
joining the database file defined in the property recordIOManager
of listMgr.RecordIOManager.joinDataBase(java.lang.String[], com.ibm.etools.iseries.ui.RecordIOManager)
public boolean openFile() throws DisplayContainerNotFoundException, AS400Exception, AS400SecurityException, InterruptedException, IOException, IllegalPathNameException
DisplayContainerNotFoundException
- Display
container is not defined or not found.
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
com.ibm.as400.access.IllegalPathNameException
- Indicates
that the integrated file system path name is not valid.
AS400Exception
AS400SecurityException
InterruptedException
IOException
IllegalPathNameException
closeFile()
,
RecordIOManager.openFile()
public boolean positionCursor(String[] keyValues) throws AS400Exception, AS400SecurityException, InterruptedException, IOException
keyValues
- The String array that contains the string values
which make up the key with which to find the record.
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.positionCursor(String[])
public boolean positionCursor(int recordNumber) throws AS400Exception, AS400SecurityException, InterruptedException, IOException
recordNumber
- The record number of the record to which
cursor is positioned.
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.positionCursor(int)
public boolean positionCursorAfterLast() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.positionCursorAfterLast()
public boolean positionCursorBeforeFirst() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.positionCursorBeforeFirst()
public boolean positionCursorToFirst() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.positionCursorToFirst()
public boolean positionCursorToLast() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.positionCursorToLast()
public boolean positionCursorToNext() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.positionCursorToNext()
public boolean positionCursorToPrevious() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.positionCursorToPrevious()
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
e
- PropertyChangeEventpublic void readAllRecords() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readAllRecords()
,
cancelReadAllRecords()
public boolean readAllRecordsEqual(String[] keyValues) throws AS400Exception, AS400SecurityException, InterruptedException, IOException
keyValues
- The String array that contains the string values
which make up the key with which to find the record. The keyValues
may be a partial key.
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readAllRecordsEqual(java.lang.String[])
,
RecordIOManager.readRecord(String[])
public boolean readFirstSetOfRecords() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readFirstSetOfRecords()
public boolean readNextRecord() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readNextRecord()
public boolean readNextRecordEqual(String[] keyValues) throws AS400Exception, AS400SecurityException, InterruptedException, IOException
keyValues
- The String array that contains the string values
which make up the key with which to find the record. The keyValues
may be a partial key.
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readNextRecordEqual(java.lang.String[])
,
RecordIOManager.readRecord(String[])
public boolean readNextSetOfRecords() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readNextSetOfRecords()
public boolean readPreviousRecord() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readPreviousRecord()
public boolean readPreviousRecordEqual(String[] keyValues) throws AS400Exception, AS400SecurityException, InterruptedException, IOException
keyValues
- The String array that contains the string values
which make up the key with which to find the record. The keyValues
may be a partial key.
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readPreviousRecordEqual(java.lang.String[])
,
RecordIOManager.readRecord(String[])
public boolean readPreviousSetOfRecords() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readPreviousSetOfRecords()
public boolean readRecord() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readRecord()
public boolean readRecord(String[] keyValues) throws AS400Exception, AS400SecurityException, InterruptedException, IOException
keyValues
- The String array that contains the string values
which make up the key with which to find the record.
The key may be a partial key.
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readRecord(String[])
public boolean readRecord(String[] keyValues, int searchType) throws AS400Exception, AS400SecurityException, InterruptedException, IOException
keyValues
- The String array that contains the string values
which make up the key with which to find the record.
The key may be a partial key.searchType
- Valid values are:
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readRecord(String[],int)
public boolean readRecord(int recordNumber) throws AS400Exception, AS400SecurityException, InterruptedException, IOException
recordNumber
- Record with this record number will be read.
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
RecordIOManager.readRecord(int)
public boolean removeFieldMapping(String componentBeanName, String dataFieldName)
componentBeanName
- The bean name of a JComponents.dataFieldName
- The name of a field in record format.
addFieldMapping(String[],String[])
,
addFieldMapping(String,String)
,
removeFieldMapping(String,String)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void rollback() throws AS400Exception, AS400SecurityException, InterruptedException, IOException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
AS400Exception
AS400SecurityException
InterruptedException
IOException
commit()
,
RecordIOManager.rollback()
public void setAscendingOrder(boolean order)
ascendingOrder
- True for ascending order,
false for descending order.RecordIOManager.setAscendingOrder(boolean)
public void setAutoChangeDataAttributes(boolean autoChange)
autoChange
- - true to change dataAttributes automatically; false not to change even if there is mismatch.getAutoChangeDataAttributes()
public void setDebugLevel(int value)
value
- getDebugLevel()
,
RecordIOManager.setDebugLevel(int)
public void setDisplayContainer(Container container)
setDisplayContainer
in interface ContainerManagement
container
- Can be any java.awt.Container, thus can be any
JComponents, such as JPanel, JFrame, JDialog, JTable, JList, etc.getDisplayContainer()
public void setRecordIOManager(RecordIOManager reciomgr)
setRecordIOManager
in interface ContainerManagement
reciomgr
- RecordIOManager object for defining fields to work with in a
record format, and attributes of a database file, and conditions
in selecting records.getRecordIOManager()
protected void setResultSetTableModel(DefaultTableModel resultSetModel)
resultSetModel
- javax.swing.table.DefaultTableModelpublic void setSystem(AS400 as400)
system
- The com.ibm.as400.access.AS400 system object of the server specified in property server.getSystem()
,
RecordIOManager.setSystem(AS400)
public void setThreadUsed(boolean useThreads)
useThreads
- - true to use threads; false otherwise.getThreadUsed()
public boolean startJournalPhysicalFile() throws AS400Exception, AS400SecurityException, InterruptedException, IOException, ErrorCompletingRequestException, ExtendedIllegalStateException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while
communicating with the AS/400.
com.ibm.as400.access.ErrorCompletingRequestException
- If an
error occurs before the request is completed.
com.ibm.as400.access.ExtendedIllegalStateException
- An object
is not in the proper state to perform the requested operation.
AS400Exception
AS400SecurityException
InterruptedException
IOException
ErrorCompletingRequestException
ExtendedIllegalStateException
endJournalPhysicalFile()
,
RecordIOManager.startJournalPhysicalFile()
public boolean updateFirstSelectedRecord() throws RecordNotFoundException, AS400Exception, AS400SecurityException, InterruptedException, IOException, InvalidFieldDataException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
InvalidFieldDataException
- Invalid data in one or more fields.
RecordNotFoundException
AS400Exception
AS400SecurityException
InterruptedException
IOException
updateRecord(int)
public boolean updateRecord(int row) throws RecordNotFoundException, AS400Exception, AS400SecurityException, InterruptedException, IOException, InvalidFieldDataException
com.ibm.as400.access.AS400Exception
- If the AS/400 system returns an error message.
com.ibm.as400.access.AS400SecurityException
- If a security or authority error occurs.
com.ibm.as400.access.InterruptedException
- If this thread is interrupted.
com.ibm.as400.access.IOException
- If an error occurs while communicating with the
AS/400.
InvalidFieldDataException
- Invalid data in one or more fields.
RecordNotFoundException
AS400Exception
AS400SecurityException
InterruptedException
IOException
updateFirstSelectedRecord()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |