com.ibm.as400.access

Class ObjectReferences

  • java.lang.Object
    • com.ibm.as400.access.ObjectReferences


  • public class ObjectReferences
    extends java.lang.Object
    Represents the set of information about integrated file system references on an object that can be retrieved through the QP0LROR API.

    A reference is an individual type of access or lock obtained on the object when using integrated file system interfaces. An object may have multiple references concurrently held, provided that the reference types do not conflict with one another.

    This class will not return information about byte range locks that may currently be held on an object.

    The user must have execute (*X) data authority to each directory preceding the object whose references are to be obtained. The user must have read (*R) data authority to the object whose references are to be obtained.

    • Constructor Detail

      • ObjectReferences

        public ObjectReferences(AS400 system,
                        java.lang.String path)
        Constructs an ObjectReferences object.
        Parameters:
        system - The system object representing the system on which the object exists.
        path - The path name of the object for which object reference information is retrieved.
    • Method Detail

      • getCheckedOut

        public long getCheckedOut()
                           throws AS400SecurityException,
                                  ErrorCompletingRequestException,
                                  java.lang.InterruptedException,
                                  java.io.IOException,
                                  ObjectDoesNotExistException
        Returns an indication of whether the object is currently checked out. If it is checked out, then getCheckedOutUserName() returns the name of the user who has it checked out.
        Returns:
        An indication of whether the object is currently checked out.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getCurrentDirectory

        public long getCurrentDirectory()
                                 throws AS400SecurityException,
                                        ErrorCompletingRequestException,
                                        java.lang.InterruptedException,
                                        java.io.IOException,
                                        ObjectDoesNotExistException
        Returns the number of references of the current directory type. The current directory type indicates that object is a directory that is being used as the current directory of the job.
        Returns:
        The number of references of the current directory type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getExecuteShareWithReadersOnly

        public long getExecuteShareWithReadersOnly()
                                            throws AS400SecurityException,
                                                   ErrorCompletingRequestException,
                                                   java.lang.InterruptedException,
                                                   java.io.IOException,
                                                   ObjectDoesNotExistException
        Returns the number of references of the execute, share with readers only type. The execute, share with readers only type indicates that the reference has execute only access. The sharing mode allows sharing with read and execute access intents only.
        Returns:
        The number of references of the execute, share with readers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getExecuteShareWithReadersAndWriters

        public long getExecuteShareWithReadersAndWriters()
                                                  throws AS400SecurityException,
                                                         ErrorCompletingRequestException,
                                                         java.lang.InterruptedException,
                                                         java.io.IOException,
                                                         ObjectDoesNotExistException
        Returns the number of references of the execute, share with readers and writers type. The execute, share with readers and writers type indicates that the reference has execute only access. The sharing mode allows sharing with read, execute, and write access intents.
        Returns:
        The number of references of the execute, share with readers and writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getExecuteShareWithWritersOnly

        public long getExecuteShareWithWritersOnly()
                                            throws AS400SecurityException,
                                                   ErrorCompletingRequestException,
                                                   java.lang.InterruptedException,
                                                   java.io.IOException,
                                                   ObjectDoesNotExistException
        Returns the number of references of the execute, share with writers only type. The execute, share with writers only type indicates that the reference has execute only access. The sharing mode allows sharing with write access intents only.
        Returns:
        The number of references of the execute, share with writers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getExecuteShareWithNeitherReadersNorWriters

        public long getExecuteShareWithNeitherReadersNorWriters()
                                                         throws AS400SecurityException,
                                                                ErrorCompletingRequestException,
                                                                java.lang.InterruptedException,
                                                                java.io.IOException,
                                                                ObjectDoesNotExistException
        Returns the number of references of the execute, share with neither readers nor writers type. The execute, share with neither readers nor writers type indicates that the reference has execute only access. The sharing mode allows sharing with no other access intents.
        Returns:
        The number of references of the execute, share with neither readers nor writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getExecuteReadShareWithReadersOnly

        public long getExecuteReadShareWithReadersOnly()
                                                throws AS400SecurityException,
                                                       ErrorCompletingRequestException,
                                                       java.lang.InterruptedException,
                                                       java.io.IOException,
                                                       ObjectDoesNotExistException
        Returns the number of references of the execute/read, share with readers only type. The execute/read, share with readers only type indicates that the reference has execute and read access. The sharing mode allows sharing with read and execute access intents only.
        Returns:
        The number of references of the execute/read, share with readers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getExecuteReadShareWithReadersAndWriters

        public long getExecuteReadShareWithReadersAndWriters()
                                                      throws AS400SecurityException,
                                                             ErrorCompletingRequestException,
                                                             java.lang.InterruptedException,
                                                             java.io.IOException,
                                                             ObjectDoesNotExistException
        Returns the number of references of the execute/read, share with readers and writers type. The execute/read, share with readers and writers type indicates that the reference has execute and read access. The sharing mode allows sharing with read, execute, and write access intents.
        Returns:
        The number of references of the execute/read, share with readers and writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getExecuteReadShareWithWritersOnly

        public long getExecuteReadShareWithWritersOnly()
                                                throws AS400SecurityException,
                                                       ErrorCompletingRequestException,
                                                       java.lang.InterruptedException,
                                                       java.io.IOException,
                                                       ObjectDoesNotExistException
        Returns the number of references of the execute/read, share with writers only type. The execute/read, share with writers only type indicates that the reference has execute and read access. The sharing mode allows sharing with write access intents only.
        Returns:
        The number of references of the execute/read, share with writers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getExecuteReadShareWithNeitherReadersNorWriters

        public long getExecuteReadShareWithNeitherReadersNorWriters()
                                                             throws AS400SecurityException,
                                                                    ErrorCompletingRequestException,
                                                                    java.lang.InterruptedException,
                                                                    java.io.IOException,
                                                                    ObjectDoesNotExistException
        Returns the number of references of the execute/read, share with neither readers nor writers type. The execute/read, share with neither readers nor writers type indicates that the reference has execute and read access. The sharing mode allows sharing with no other access intents.
        Returns:
        The number of references of the execute/read, share with neither readers nor writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getFileServerReference

        public long getFileServerReference()
                                    throws AS400SecurityException,
                                           ErrorCompletingRequestException,
                                           java.lang.InterruptedException,
                                           java.io.IOException,
                                           ObjectDoesNotExistException
        Returns the number of references of the file server reference type. The file server reference type indicates that the File Server is holding a generic reference on the object on behalf of a client. If this field is not 0, then session information may have been returned.
        Returns:
        The number of references of the file server reference type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getFileServerWorkingDirectory

        public long getFileServerWorkingDirectory()
                                           throws AS400SecurityException,
                                                  ErrorCompletingRequestException,
                                                  java.lang.InterruptedException,
                                                  java.io.IOException,
                                                  ObjectDoesNotExistException
        Returns the number of references of the file server working directory type. The file server working directory type indicates that the object is a directory, and the File Server is holding a working directory reference on it on behalf of a client. If this field is not 0, then session information may have been returned.
        Returns:
        The number of references of the file server working directory type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • isInUseIndicator

        public boolean isInUseIndicator()
                                 throws AS400SecurityException,
                                        ErrorCompletingRequestException,
                                        java.lang.InterruptedException,
                                        java.io.IOException,
                                        ObjectDoesNotExistException
        Returns whether the object is currently in-use. If the object is not in use, all of the reference type fields returned are 0. If the object is in use, at least one of the reference type fields is greater than 0. This condition may occur even if the getReferenceCount() value is 0.
        Returns:
        true if the object is currently in-use; false otherwise.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getInternalSaveLock

        public long getInternalSaveLock()
                                 throws AS400SecurityException,
                                        ErrorCompletingRequestException,
                                        java.lang.InterruptedException,
                                        java.io.IOException,
                                        ObjectDoesNotExistException
        Returns the number of references of the internal save lock type. The internal save lock type indicates that object is being referenced internally during a save operation on a different object.
        Returns:
        The number of references of the internal save lock type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getReadOnlyShareWithReadersOnly

        public long getReadOnlyShareWithReadersOnly()
                                             throws AS400SecurityException,
                                                    ErrorCompletingRequestException,
                                                    java.lang.InterruptedException,
                                                    java.io.IOException,
                                                    ObjectDoesNotExistException
        Returns the number of references of the read only, share with readers only type. The read only, share with readers only type indicates that the reference has read only access. The sharing mode allows sharing with read and execute access intents only.
        Returns:
        The number of references of the read only, share with readers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getReadOnlyShareWithReadersAndWriters

        public long getReadOnlyShareWithReadersAndWriters()
                                                   throws AS400SecurityException,
                                                          ErrorCompletingRequestException,
                                                          java.lang.InterruptedException,
                                                          java.io.IOException,
                                                          ObjectDoesNotExistException
        Returns the number of references of the read only, share with readers and writers type. The read only, share with readers and writers type indicates that the reference has read only access. The sharing mode allows sharing with read, execute, and write access intents.
        Returns:
        The number of references of the read only, share with readers and writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getReadOnlyShareWithWritersOnly

        public long getReadOnlyShareWithWritersOnly()
                                             throws AS400SecurityException,
                                                    ErrorCompletingRequestException,
                                                    java.lang.InterruptedException,
                                                    java.io.IOException,
                                                    ObjectDoesNotExistException
        Returns the number of references of the read only, share with writers only type. The read only, share with writers only type indicates that the reference has read only access. The sharing mode allows sharing with write access intents only.
        Returns:
        The number of references of the read only, share with writers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getReadOnlyShareWithNeitherReadersNorWriters

        public long getReadOnlyShareWithNeitherReadersNorWriters()
                                                          throws AS400SecurityException,
                                                                 ErrorCompletingRequestException,
                                                                 java.lang.InterruptedException,
                                                                 java.io.IOException,
                                                                 ObjectDoesNotExistException
        Returns the number of references of the read only, share with neither readers nor writers type. The read only, share with neither readers nor writers type indicates that the reference has read only access. The sharing mode allows sharing with no other access intents.
        Returns:
        The number of references of the read only, share with neither readers nor writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getReadWriteShareWithReadersOnly

        public long getReadWriteShareWithReadersOnly()
                                              throws AS400SecurityException,
                                                     ErrorCompletingRequestException,
                                                     java.lang.InterruptedException,
                                                     java.io.IOException,
                                                     ObjectDoesNotExistException
        Returns the number of references of the read/write, share with readers only type. The read/write, share with readers only type indicates that the reference has read and write access. The sharing mode allows sharing with read and execute access intents only.
        Returns:
        The number of references of the read/write, share with readers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getReadWriteShareWithReadersAndWriters

        public long getReadWriteShareWithReadersAndWriters()
                                                    throws AS400SecurityException,
                                                           ErrorCompletingRequestException,
                                                           java.lang.InterruptedException,
                                                           java.io.IOException,
                                                           ObjectDoesNotExistException
        Returns the number of references of the read/write, share with readers and writers type. The read/write, share with readers and writers type indicates that the reference has read and write access. The sharing mode allows sharing with read, execute, and write access intents.
        Returns:
        The number of references of the read/write, share with readers and writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getReadWriteShareWithWritersOnly

        public long getReadWriteShareWithWritersOnly()
                                              throws AS400SecurityException,
                                                     ErrorCompletingRequestException,
                                                     java.lang.InterruptedException,
                                                     java.io.IOException,
                                                     ObjectDoesNotExistException
        Returns the number of references of the read/write, share with writers only type. The read/write, share with writers only type indicates that the reference has read and write access. The sharing mode allows sharing with write access intents only.
        Returns:
        The number of references of the read/write, share with writers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getReadWriteShareWithNeitherReadersNorWriters

        public long getReadWriteShareWithNeitherReadersNorWriters()
                                                           throws AS400SecurityException,
                                                                  ErrorCompletingRequestException,
                                                                  java.lang.InterruptedException,
                                                                  java.io.IOException,
                                                                  ObjectDoesNotExistException
        Returns the number of references of the read/write, share with neither readers nor writers type. The read/write, share with neither readers nor writers type indicates that the reference has read and write access. The sharing mode allows sharing with no other access intents.
        Returns:
        The number of references of the read/write, share with neither readers nor writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getRootDirectory

        public long getRootDirectory()
                              throws AS400SecurityException,
                                     ErrorCompletingRequestException,
                                     java.lang.InterruptedException,
                                     java.io.IOException,
                                     ObjectDoesNotExistException
        Returns the number of references of the root directory type. The root directory type indicates that object is a directory that is being used as the root directory of the job.
        Returns:
        The number of references of the root directory type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getShareWithReadersOnly

        public long getShareWithReadersOnly()
                                     throws AS400SecurityException,
                                            ErrorCompletingRequestException,
                                            java.lang.InterruptedException,
                                            java.io.IOException,
                                            ObjectDoesNotExistException
        Returns the number of references of the share with readers only type. The share with readers only type indicates that the sharing mode allows sharing with read and execute access intents only.
        Returns:
        The number of references of the share with readers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getShareWithReadersAndWriters

        public long getShareWithReadersAndWriters()
                                           throws AS400SecurityException,
                                                  ErrorCompletingRequestException,
                                                  java.lang.InterruptedException,
                                                  java.io.IOException,
                                                  ObjectDoesNotExistException
        Returns the number of references of the share with readers and writers type. The share with readers and writers type indicates that the sharing mode allows sharing with read, execute, and write access intents.
        Returns:
        The number of references of the share with readers and writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getShareWithWritersOnly

        public long getShareWithWritersOnly()
                                     throws AS400SecurityException,
                                            ErrorCompletingRequestException,
                                            java.lang.InterruptedException,
                                            java.io.IOException,
                                            ObjectDoesNotExistException
        Returns the number of references of the share with writers only type. The share with writers only type indicates that the sharing mode allows sharing with write access intents only.
        Returns:
        The number of references of the share with writers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getShareWithNeitherReadersNorWriters

        public long getShareWithNeitherReadersNorWriters()
                                                  throws AS400SecurityException,
                                                         ErrorCompletingRequestException,
                                                         java.lang.InterruptedException,
                                                         java.io.IOException,
                                                         ObjectDoesNotExistException
        Returns the number of references of the share with neither readers nor writers type. The share with neither readers nor writers type indicates that the sharing mode allows sharing with no other access intents.
        Returns:
        The number of references of the share with neither readers nor writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getWriteOnlyShareWithReadersOnly

        public long getWriteOnlyShareWithReadersOnly()
                                              throws AS400SecurityException,
                                                     ErrorCompletingRequestException,
                                                     java.lang.InterruptedException,
                                                     java.io.IOException,
                                                     ObjectDoesNotExistException
        Returns the number of references of the write only, share with readers only type. The write only, share with readers only type indicates that the reference has write only access. The sharing mode allows sharing with read and execute access intents only.
        Returns:
        The number of references of the write only, share with readers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getWriteOnlyShareWithReadersAndWriters

        public long getWriteOnlyShareWithReadersAndWriters()
                                                    throws AS400SecurityException,
                                                           ErrorCompletingRequestException,
                                                           java.lang.InterruptedException,
                                                           java.io.IOException,
                                                           ObjectDoesNotExistException
        Returns the number of references of the write only, share with readers and writers type. The write only, share with readers and writers type indicates that the reference has write only access. The sharing mode allows sharing with read, execute, and write access intents.
        Returns:
        The number of references of the write only, share with readers and writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getWriteOnlyShareWithWritersOnly

        public long getWriteOnlyShareWithWritersOnly()
                                              throws AS400SecurityException,
                                                     ErrorCompletingRequestException,
                                                     java.lang.InterruptedException,
                                                     java.io.IOException,
                                                     ObjectDoesNotExistException
        Returns the number of references of the write only, share with writers only type. The write only, share with writers only type indicates that the reference has write only access. The sharing mode allows sharing with write access intents only.
        Returns:
        The number of references of the write only, share with writers only type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.
      • getWriteOnlyShareWithNeitherReadersNorWriters

        public long getWriteOnlyShareWithNeitherReadersNorWriters()
                                                           throws AS400SecurityException,
                                                                  ErrorCompletingRequestException,
                                                                  java.lang.InterruptedException,
                                                                  java.io.IOException,
                                                                  ObjectDoesNotExistException
        Returns the number of references of the write only, share with neither readers nor writers type. The write only, share with neither readers nor writers type indicates that the reference has write only access. The sharing mode allows sharing with no other access intents.
        Returns:
        The number of references of the write only, share with neither readers nor writers type.
        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 system.
        ObjectDoesNotExistException - If the object does not exist on the system.