SerializableCharacterDataArea, DecimalDataArea, LocalDataArea, LogicalDataAreapublic abstract class DataArea extends Object implements Serializable
DataArea objects generate the following events:
| Constructor | Description |
|---|---|
DataArea() |
Constructs a DataArea object.
|
DataArea(AS400 system,
String path) |
Constructs a DataArea object.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addDataAreaListener(DataAreaListener listener) |
Adds a data area listener to receive data area events from this data area.
|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
Adds a PropertyChangeListener.
|
void |
addVetoableChangeListener(VetoableChangeListener listener) |
Adds the VetoableChangeListener.
|
int |
getLength() |
Returns the size of the data area.
|
String |
getName() |
Returns the data area name.
|
AS400 |
getSystem() |
Returns the AS400 system object for the data area.
|
void |
refreshAttributes() |
Refreshes the attributes of the data area.
|
void |
removeDataAreaListener(DataAreaListener listener) |
Removes the DataAreaListener from the internal list.
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
Removes the PropertyChangeListener from the internal list.
|
void |
removeVetoableChangeListener(VetoableChangeListener listener) |
Removes the VetoableChangeListener from the internal list.
|
void |
setSystem(AS400 system) |
Sets the system on which the data area exists.
|
public DataArea()
public DataArea(AS400 system, String path)
system - The system that contains the data area.path - The fully qualified integrated file system path name. The
integrated file system file extension for a data area is DTAARA. An example of a
fully qualified integrated file system path to a data area "MYDATA" in library
"MYLIB" is: /QSYS.LIB/MYLIB.LIB/MYDATA.DTAARApublic void addDataAreaListener(DataAreaListener listener)
listener - The data area listener.removeDataAreaListener(com.ibm.as400.access.DataAreaListener)public void addPropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener.removePropertyChangeListener(java.beans.PropertyChangeListener)public void addVetoableChangeListener(VetoableChangeListener listener)
listener - The VetoableChangeListener.removeVetoableChangeListener(java.beans.VetoableChangeListener)public int getLength()
throws AS400SecurityException,
ErrorCompletingRequestException,
IllegalObjectTypeException,
InterruptedException,
IOException,
ObjectDoesNotExistException
AS400SecurityException - If a security or authority error occurs.ErrorCompletingRequestException - If an error occurs before the request is completed.IllegalObjectTypeException - If the system object is not the required type.InterruptedException - If this thread is interrupted.IOException - If an error occurs while communicating with the system.ObjectDoesNotExistException - If the system object does not exist.public String getName()
public AS400 getSystem()
public void refreshAttributes()
throws AS400SecurityException,
ErrorCompletingRequestException,
IllegalObjectTypeException,
InterruptedException,
IOException,
ObjectDoesNotExistException
AS400SecurityException - If a security or authority error occurs.ErrorCompletingRequestException - If an error occurs before the request is completed.IllegalObjectTypeException - If the system object is not the required type.InterruptedException - If this thread is interrupted.IOException - If an error occurs while communicating with the system.ObjectDoesNotExistException - If the system object does not exist.public void removeDataAreaListener(DataAreaListener listener)
listener - The data area listener.addDataAreaListener(com.ibm.as400.access.DataAreaListener)public void removePropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener.addPropertyChangeListener(java.beans.PropertyChangeListener)public void removeVetoableChangeListener(VetoableChangeListener listener)
listener - The VetoableChangeListener.addVetoableChangeListener(java.beans.VetoableChangeListener)public void setSystem(AS400 system) throws PropertyVetoException
system - The system on which the data area exists.PropertyVetoException - If the change is vetoed.Copyright © 2024. All rights reserved.