|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.as400.access.DataArea
The DataArea class is an abstract base class that represents an AS/400 data area object.
DataArea objects generate the following events:
| Constructor Summary | |
DataArea()
Constructs a DataArea object. |
|
DataArea(AS400 system,
java.lang.String path)
Constructs a DataArea object. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataArea()
public DataArea(AS400 system,
java.lang.String path)
system - The AS/400 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.DTAARA| Method Detail |
public 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 AS/400 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 AS/400.ObjectDoesNotExistException - If the AS/400 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 AS/400 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 AS/400.ObjectDoesNotExistException - If the AS/400 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 AS/400 system on which the data area exists.java.beans.PropertyVetoException - If the change is vetoed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||