com.ibm.as400.access
Class SystemValueList

java.lang.Object
  |
  +--com.ibm.as400.access.SystemValueList
All Implemented Interfaces:
java.io.Serializable

public class SystemValueList
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int GROUP_ALC
          Constant indicating the system value's group is *ALC (Allocation).
static int GROUP_ALL
          Constant indicating the system value's group is *ALL (All).
static int GROUP_DATTIM
          Constant indicating the system value's group is *DATTIM (Date and Time).
static int GROUP_EDT
          Constant indicating the system value's group is *EDT (Editing).
static int GROUP_LIBL
          Constant indicating the system value's group is *LIBL (Library List).
static int GROUP_MSG
          Constant indicating the system value's group is *MSG (Message and Logging).
static int GROUP_NET
          Constant indicating the system value's group is *NET (Net Attribute).
static int GROUP_SEC
          Constant indicating the system value's group is *SEC (Security).
static int GROUP_STG
          Constant indicating the system value's group is *STG (Storage).
static int GROUP_SYSCTL
          Constant indicating the system value's group is *SYSCTL (System control).
static int TYPE_ARRAY
          Constant indicating the returned system value type is String[].
static int TYPE_DATE
          Constant indicating the returned system value type is Date.
static int TYPE_DECIMAL
          Constant indicating the returned system value type is BigDecimal.
static int TYPE_INTEGER
          Constant indicating the returned system value type is Integer.
static int TYPE_STRING
          Constant indicating the returned system value type is String.
 
Constructor Summary
SystemValueList()
          Constructs a SystemValueList object.
SystemValueList(AS400 system)
          Constructs a SystemValueList object.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a PropertyChangeListener.
 void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
          Adds the VetoableChangeListener.
 java.util.Vector getGroup(int group)
          Returns a set of SystemValue objects.
static int getGroupCount()
          Returns the total number of possible groups.
static java.lang.String getGroupDescription(int group)
          Returns the description for the specified system value group.
static java.lang.String getGroupName(int group)
          Returns the name of the specified system value group.
 AS400 getSystem()
          Returns the system.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes this listener from being notified when a bound property changes.
 void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
          Removes this listener from being notified when a constrained property changes.
 void setSystem(AS400 system)
          Sets the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_ALC

public static final int GROUP_ALC
Constant indicating the system value's group is *ALC (Allocation).

GROUP_ALL

public static final int GROUP_ALL
Constant indicating the system value's group is *ALL (All).

GROUP_DATTIM

public static final int GROUP_DATTIM
Constant indicating the system value's group is *DATTIM (Date and Time).

GROUP_EDT

public static final int GROUP_EDT
Constant indicating the system value's group is *EDT (Editing).

GROUP_LIBL

public static final int GROUP_LIBL
Constant indicating the system value's group is *LIBL (Library List).

GROUP_MSG

public static final int GROUP_MSG
Constant indicating the system value's group is *MSG (Message and Logging).

GROUP_NET

public static final int GROUP_NET
Constant indicating the system value's group is *NET (Net Attribute).

GROUP_SEC

public static final int GROUP_SEC
Constant indicating the system value's group is *SEC (Security).

GROUP_STG

public static final int GROUP_STG
Constant indicating the system value's group is *STG (Storage).

GROUP_SYSCTL

public static final int GROUP_SYSCTL
Constant indicating the system value's group is *SYSCTL (System control).

TYPE_ARRAY

public static final int TYPE_ARRAY
Constant indicating the returned system value type is String[].

TYPE_DATE

public static final int TYPE_DATE
Constant indicating the returned system value type is Date.

TYPE_DECIMAL

public static final int TYPE_DECIMAL
Constant indicating the returned system value type is BigDecimal.

TYPE_INTEGER

public static final int TYPE_INTEGER
Constant indicating the returned system value type is Integer.

TYPE_STRING

public static final int TYPE_STRING
Constant indicating the returned system value type is String.
Constructor Detail

SystemValueList

public SystemValueList()
Constructs a SystemValueList object. It creates a default SystemValueList object. The system property must be set before attempting a connection.

SystemValueList

public SystemValueList(AS400 system)
Constructs a SystemValueList object. It creates a SystemValueList instance that represents a list of system values on system.
Parameters:
system - The AS/400 that contains the system values.
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener.
Parameters:
listener - The PropertyChangeListener.
See Also:
removePropertyChangeListener(java.beans.PropertyChangeListener)

addVetoableChangeListener

public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds the VetoableChangeListener.
Parameters:
listener - The VetoableChangeListener.
See Also:
removeVetoableChangeListener(java.beans.VetoableChangeListener)

getGroup

public java.util.Vector getGroup(int group)
                          throws AS400SecurityException,
                                 ErrorCompletingRequestException,
                                 java.lang.InterruptedException,
                                 java.io.IOException,
                                 ObjectDoesNotExistException,
                                 java.net.UnknownHostException
Returns a set of SystemValue objects. Returns the system values that belong to the system value group specified by group and sorted by name.
Parameters:
group - The system value group.
Returns:
A Vector of SystemValue objects.
Throws:
AS400SecurityException - If a security or authority error occurs.
ErrorCompletingRequestException - If an error occurs before the request is completed.
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.
java.net.UnknownHostException - If the AS/400 system cannot be located.

getGroupCount

public static int getGroupCount()
Returns the total number of possible groups.
Returns:
The number of groups.

getGroupDescription

public static java.lang.String getGroupDescription(int group)
Returns the description for the specified system value group.
Parameters:
group - The system value group.
Returns:
The description of the system value group.

getGroupName

public static java.lang.String getGroupName(int group)
Returns the name of the specified system value group.
Parameters:
group - The system value group.
Returns:
The name of the system value group.

getSystem

public AS400 getSystem()
Returns the system.
Returns:
The AS/400.

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes this listener from being notified when a bound property changes.
Parameters:
listener - The PropertyChangeListener.
See Also:
addPropertyChangeListener(java.beans.PropertyChangeListener)

removeVetoableChangeListener

public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes this listener from being notified when a constrained property changes.
Parameters:
listener - The VetoableChangeListener.
See Also:
addVetoableChangeListener(java.beans.VetoableChangeListener)

setSystem

public void setSystem(AS400 system)
               throws java.beans.PropertyVetoException
Sets the system.
Parameters:
system - The AS/400.
Throws:
java.beans.PropertyVetoException - If the change is vetoed.