|
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.FormManager
public class FormManager
The FormManager bean is used to associate a form with a record format. The form can have one or more JComponents that have single data elements, such as javax.swing.JTextField, javax.swing.JLabel, javax.swing.JTextArea, and com.ibm.etools.iseries.ui.JFormattedTextField. 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 field. When access to multiple record formats or database files is required, FormManager can join with another instance of FormManager, 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 the record-level access is done via RecordIOManager.
Before a FormManager can associate a JComponent to a field, following is required:
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, FormManager 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, FormManager 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 FormManager 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 FormManager object.
RecordIOManager
,
ListManager
,
JFormattedComponent
,
JFormattedTextField
,
JFormattedLabel
,
JFormattedComboBox
,
Serialized FormField Summary | |
---|---|
static String |
Copyright
|
protected PropertyChangeSupport |
propertyChange
|
Fields inherited from interface com.ibm.etools.iseries.ui.ContainerManagement |
---|
copyright |
Constructor Summary | |
---|---|
FormManager()
FormManager constructor. |
Method Summary | |
---|---|
boolean |
addFieldMapping(String[] componentBeanName,
String[] dataFieldName)
To map multiple JComponents with multiple fields in a record format specified in recordIOManager object. |
boolean |
addFieldMapping(String componentBeanName,
String dataFieldName)
To map a single JComponent with a single field in a record format specified in recordIOManager object. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field. |
boolean |
addRecord()
Add the data in the displayContainer to the database file as a new record. |
void |
clearAllData()
To clear data of all JComponents that have associations with fields 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()
Delete the record in the displayContainer from the database file. |
void |
displayData(DefaultTableModel resultSetModel,
int row)
Display a particular row of data in resultSetTableModel on the form. |
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)
Return the database value of a field 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. |
RecordIOManager |
getRecordIOManager()
Gets the recordIOManager property value. |
DefaultTableModel |
getResultSetTableModel()
Returns the resultSetTableModel DefaultTableModel 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 |
joinDataBase(String[] foreignKeyNames,
FormManager formMgr)
To join the database file specified in property recordIOManager, with another database file specified in another FormManager'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. |
boolean |
readNextRecord()
Invoke RecordIOManager.readNextRecord 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 |
readRecord()
Whatever values in the JComponents that have field associations to the key of a record format (key components) will be used as search key values. |
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. |
protected String[] |
retrieveCurrentKeyValuesFromForm()
Get the current value of key components from the form. |
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)
|
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 |
updateRecord()
Update the data in the displayContainer 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 FormManager()
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 void addPropertyChangeListener(PropertyChangeListener listener)
public boolean addRecord() 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
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() throws RecordNotFoundException, AS400Exception, AS400SecurityException, InterruptedException, IOException
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 void displayData(DefaultTableModel resultSetModel, int row)
resultSetModel
- com.sun.java.swing.table.DefaultTableModelrow
- intpublic 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)
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 RecordIOManager getRecordIOManager()
getRecordIOManager
in interface ContainerManagement
setRecordIOManager(com.ibm.etools.iseries.ui.RecordIOManager)
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 joinDataBase(String[] foreignKeyNames, FormManager formMgr)
foreignKeyNames
- A string array that contains the name of the
foreign keys, the field names that join the two database files
together with equal values.formMgr
- FormManager object to be joined. It is actually
joining the database file defined in the property recordIOManager
of formMgr.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 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 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 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
readRecord(String[])
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)
protected String[] retrieveCurrentKeyValuesFromForm()
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, JTextField, JLabel, 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 updateRecord() 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
InvalidFieldDataException
- Invalid data in one or more fields.
AS/400.
RecordNotFoundException
AS400Exception
AS400SecurityException
InterruptedException
IOException
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |