com.ibm.as400.resource

Class RIFSFile

    • Field Detail

      • ABSOLUTE_PATH

        public static final String ABSOLUTE_PATH
        Deprecated. 
        Attribute ID for absolute path. This identifies a read-only String attribute, which represents the absolute path name.
        See Also:
        Constant Field Values
      • CANONICAL_PATH

        public static final String CANONICAL_PATH
        Deprecated. 
        Attribute ID for canonical path. This identifies a read-only String attribute, which represents the canonical path name.
        See Also:
        Constant Field Values
      • CAN_READ

        public static final String CAN_READ
        Deprecated. 
        Attribute ID for can read. This identifies a read-only Boolean attribute, which indicates whether this file can be read.
        See Also:
        Constant Field Values
      • CAN_WRITE

        public static final String CAN_WRITE
        Deprecated. 
        Attribute ID for can write. This identifies a read-only Boolean attribute, which indicates whether this file can be written.
        See Also:
        Constant Field Values
      • CCSID

        public static final String CCSID
        Deprecated. 
        Attribute ID for CCSID. This identifies a read-only Integer attribute, which represents the coded character set identifier for the file.
        See Also:
        Constant Field Values
      • CREATED

        public static final String CREATED
        Deprecated. 
        Attribute ID for created. This identifies a read-only Date attribute, which represents the date and time that the file was created.
        See Also:
        Constant Field Values
      • EXISTS

        public static final String EXISTS
        Deprecated. 
        Attribute ID for exists. This identifies a read-only Boolean attribute, which indicates whether the file exists.
        See Also:
        Constant Field Values
      • IS_ABSOLUTE

        public static final String IS_ABSOLUTE
        Deprecated. 
        Attribute ID for is absolute. This identifies a read-only Boolean attribute, which indicates whether the path name is absolute.
        See Also:
        Constant Field Values
      • IS_DIRECTORY

        public static final String IS_DIRECTORY
        Deprecated. 
        Attribute ID for is directory. This identifies a read-only Boolean attribute, which indicates whether this is a directory.
        See Also:
        Constant Field Values
      • IS_FILE

        public static final String IS_FILE
        Deprecated. 
        Attribute ID for is file. This identifies a read-only Boolean attribute, which indicates whether this is a file.
        See Also:
        Constant Field Values
      • IS_HIDDEN

        public static final String IS_HIDDEN
        Deprecated. 
        Attribute ID for is hidden. This identifies a Boolean attribute, which indicates whether this file is hidden.
        See Also:
        Constant Field Values
      • IS_READ_ONLY

        public static final String IS_READ_ONLY
        Deprecated. 
        Attribute ID for is read only. This identifies a Boolean attribute, which indicates whether this file is read only.
        See Also:
        Constant Field Values
      • LAST_ACCESSED

        public static final String LAST_ACCESSED
        Deprecated. 
        Attribute ID for last accessed. This identifies a read-only Date attribute, which represents the date and time the file was last accessed.
        See Also:
        Constant Field Values
      • LAST_MODIFIED

        public static final String LAST_MODIFIED
        Deprecated. 
        Attribute ID for last modified. This identifies a Date attribute, which represents the date and time the file was last modified. Setting this to 0 will leave the last modified date unchanged.
        See Also:
        Constant Field Values
      • LENGTH

        public static final String LENGTH
        Deprecated. 
        Attribute ID for length. This identifies a read-only Long attribute, which represents the length of the file in bytes.
        See Also:
        Constant Field Values
      • NAME

        public static final String NAME
        Deprecated. 
        Attribute ID for name. This identifies a read-only String attribute, which represents the name of the file.
        See Also:
        Constant Field Values
      • OWNERID

        public static final String OWNERID
        Deprecated. 
        Attribute ID for owner ID. This identifies a read-only Integer attribute, which represents the owner ID number of the file.
        See Also:
        Constant Field Values
      • PARENT

        public static final String PARENT
        Deprecated. 
        Attribute ID for parent. This identifies a read-only String attribute, which represents the name of the parent directory.
        See Also:
        Constant Field Values
      • PATH

        public static final String PATH
        Deprecated. 
        Attribute ID for path. This identifies a read-only String attribute, which represents the path name of the file.
        See Also:
        Constant Field Values
      • TYPE

        public static final String TYPE
        Deprecated. 
        Attribute ID for type. This identifies a read-only String attribute, which indicates whether this is a directory or a file. Possible values are:
        See Also:
        Constant Field Values
      • TYPE_DIRECTORY

        public static final String TYPE_DIRECTORY
        Deprecated. 
        Attribute value indicating that this is a directory.
        See Also:
        TYPE, Constant Field Values
      • TYPE_UNKNOWN

        public static final String TYPE_UNKNOWN
        Deprecated. 
        Attribute value indicating that the tyype is unknown.
        See Also:
        TYPE, Constant Field Values
    • Constructor Detail

      • RIFSFile

        public RIFSFile()
        Deprecated. 
        Constructs an RIFSFile object.
      • RIFSFile

        public RIFSFile(AS400 system,
                String path)
        Deprecated. 
        Constructs an RIFSFile object.
        Parameters:
        system - The system.
        path - The file path name.

    • Method Detail

      • establishConnection

        protected void establishConnection()
                                    throws ResourceException
        Deprecated. 
        Establishes the connection to the system.

        The method is called by the resource framework automatically when the connection needs to be established.

        Overrides:
        establishConnection in class Resource
        Throws:
        ResourceException - If an error occurs.
      • freezeProperties

        protected void freezeProperties()
                                 throws ResourceException
        Deprecated. 
        Freezes any property changes. After this is called, property changes should not be made. Properties are not the same thing as attributes. Properties are basic pieces of information which must be set to make the object usable, such as the system and the name.

        The method is called by the resource framework automatically when the properties need to be frozen.

        Overrides:
        freezeProperties in class Resource
        Throws:
        ResourceException - If an error occurs.
      • getAttributeUnchangedValue

        public Object getAttributeUnchangedValue(Object attributeID)
                                          throws ResourceException
        Deprecated. 
        Returns the unchanged value of an attribute. If the attribute value has an uncommitted change, this returns the unchanged value. If the attribute value does not have an uncommitted change, this returns the same value as getAttributeValue().
        Overrides:
        getAttributeUnchangedValue in class ChangeableResource
        Parameters:
        attributeID - Identifies the attribute.
        Returns:
        The attribute value, or null if the attribute value is not available.
        Throws:
        ResourceException - If an error occurs.
        See Also:
        Subclass notes
      • getPath

        public String getPath()
        Deprecated. 
        Returns the file path name.
        Returns:
        The file path name.
      • setPath

        public void setPath(String path)
        Deprecated. 
        Sets the file path name. This does not change the file on the system. Instead, it changes the file to which this object references. This cannot be changed if the object has established a connection to the system.
        Parameters:
        path - The file path name.
      • setSystem

        public void setSystem(AS400 system)
                       throws PropertyVetoException
        Deprecated. 
        Sets the system. This does not change the job on the system. Instead, it changes the system to which this object references. This cannot be changed if the object has established a connection to the system.
        Overrides:
        setSystem in class Resource
        Parameters:
        system - The system.
        Throws:
        PropertyVetoException - If the property change is vetoed.