public abstract class DataArea
extends java.lang.Object
implements java.io.Serializable
DataArea objects generate the following events:
Constructor and Description |
---|
DataArea()
Constructs a DataArea object.
|
DataArea(AS400 system,
java.lang.String path)
Constructs a DataArea object.
|
Modifier and Type | Method and Description |
---|---|
void |
addDataAreaListener(DataAreaListener listener)
Adds a data area listener to receive data area events from this data area.
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener.
|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds the VetoableChangeListener.
|
int |
getLength()
Returns the size of the data area.
|
java.lang.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(java.beans.PropertyChangeListener listener)
Removes the PropertyChangeListener from the internal list.
|
void |
removeVetoableChangeListener(java.beans.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, java.lang.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(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The VetoableChangeListener.removeVetoableChangeListener(java.beans.VetoableChangeListener)
public int getLength() throws AS400SecurityException, ErrorCompletingRequestException, IllegalObjectTypeException, java.lang.InterruptedException, java.io.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.java.lang.InterruptedException
- If this thread is interrupted.java.io.IOException
- If an error occurs while communicating with the system.ObjectDoesNotExistException
- If the system object does not exist.public java.lang.String getName()
public AS400 getSystem()
public void refreshAttributes() throws AS400SecurityException, ErrorCompletingRequestException, IllegalObjectTypeException, java.lang.InterruptedException, java.io.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.java.lang.InterruptedException
- If this thread is interrupted.java.io.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(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The VetoableChangeListener.addVetoableChangeListener(java.beans.VetoableChangeListener)
public void setSystem(AS400 system) throws java.beans.PropertyVetoException
system
- The system on which the data area exists.java.beans.PropertyVetoException
- If the change is vetoed.