Package com.dnanexus

Class DXRecord


  • public class DXRecord
    extends DXDataObject
    A record (the minimal data object class).
    • Method Detail

      • getInstance

        public static DXRecord getInstance​(String recordId)
        Returns a DXRecord associated with an existing record.
        Throws:
        NullPointerException - If recordId is null
      • getInstance

        public static DXRecord getInstance​(String recordId,
                                           DXContainer project)
        Returns a DXRecord associated with an existing record in a particular project or container.
        Throws:
        NullPointerException - If recordId or container is null
      • getInstanceWithEnvironment

        public static DXRecord getInstanceWithEnvironment​(String recordId,
                                                          DXContainer project,
                                                          DXEnvironment env)
        Returns a DXRecord associated with an existing record in a particular project using the specified environment.
      • getInstanceWithEnvironment

        public static DXRecord getInstanceWithEnvironment​(String recordId,
                                                          DXEnvironment env)
        Returns a DXRecord associated with an existing record using the specified environment.
        Throws:
        NullPointerException - If recordId is null
      • newRecord

        public static DXRecord.Builder newRecord()
        Returns a Builder object for creating a new DXRecord.

        Example use:

         DXRecord r = DXRecord.newRecord().inProject("proj-0000").setName("foo").build();
         
        Returns:
        a newly initialized builder object
      • newRecordWithEnvironment

        public static DXRecord.Builder newRecordWithEnvironment​(DXEnvironment env)
        Returns a Builder object for creating a new DXRecord using the specified environment.

        Example use:

         DXRecord r = DXRecord.newRecordWithEnvironment(DXEnvironment.create()).inProject("proj-0000").setName("foo").build();
         
        Parameters:
        env - environment to use to make API calls
        Returns:
        a newly initialized builder object
      • close

        public DXRecord close()
        Description copied from class: DXDataObject
        Closes the data object.

        Returns the same object so you can chain calls.

        Overrides:
        close in class DXDataObject
        Returns:
        the same DXDataObject
      • closeAndWait

        public DXRecord closeAndWait()
        Description copied from class: DXDataObject
        Closes the data object and waits until the close operation is complete.

        Returns the same object so you can chain calls.

        Overrides:
        closeAndWait in class DXDataObject
        Returns:
        the same DXDataObject
      • describe

        public DXRecord.Describe describe()
        Description copied from class: DXDataObject
        Returns metadata about the data object.

        The properties and details fields will not be returned, and any project-specific metadata fields will be selected from an arbitrary project in which the requesting user has access to this object. To change either of these aspects of this behavior, use DXDataObject.describe(DescribeOptions) instead.

        Overrides:
        describe in class DXDataObject
        Returns:
        a Describe containing the data object's metadata.
      • describe

        public DXRecord.Describe describe​(DXDataObject.DescribeOptions options)
        Description copied from class: DXDataObject
        Returns metadata about the data object, specifying which optional fields are to be returned and what project to obtain project-specific metadata from.
        Overrides:
        describe in class DXDataObject
        Parameters:
        options - DescribeOptions object specifying how the describe request is to be made.
        Returns:
        a Describe containing the data object's metadata.