public class DXRecord extends DXDataObject
| Modifier and Type | Class and Description |
|---|---|
static class |
DXRecord.Builder
Builder class for creating a new
DXRecord object. |
static class |
DXRecord.Describe
Contains metadata for a record.
|
DXDataObject.DescribeOptionscachedDescribe| Modifier and Type | Method and Description |
|---|---|
DXRecord |
close()
Closes the data object.
|
DXRecord |
closeAndWait()
Closes the data object and waits until the close operation is complete.
|
DXRecord.Describe |
describe()
Returns metadata about the data object.
|
DXRecord.Describe |
describe(DXDataObject.DescribeOptions options)
Returns metadata about the data object, specifying which optional fields are to be returned
and what project to obtain project-specific metadata from.
|
DXRecord.Describe |
getCachedDescribe()
Returns metadata about the data object, like
DXDataObject.describe(), but without
making an API call. |
static DXRecord |
getInstance(String recordId)
Returns a
DXRecord associated with an existing record. |
static DXRecord |
getInstance(String recordId,
DXContainer project)
Returns a
DXRecord associated with an existing record in a particular project or
container. |
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. |
static DXRecord |
getInstanceWithEnvironment(String recordId,
DXEnvironment env)
Returns a
DXRecord associated with an existing record using the specified
environment. |
static DXRecord.Builder |
newRecord()
Returns a Builder object for creating a new
DXRecord. |
static DXRecord.Builder |
newRecordWithEnvironment(DXEnvironment env)
Returns a Builder object for creating a new
DXRecord using the specified environment. |
addTags, addTypes, checkCachedDescribeAvailable, checkDXLinkFormat, equals, getLinkAsJson, getProject, hashCode, listProjects, putAllProperties, putAllProperties, putProperty, removeProperty, removeTags, removeTypes, rename, setDetails, setVisibilityapiCallOnObject, apiCallOnObject, getId, toStringpublic static DXRecord getInstance(String recordId)
DXRecord associated with an existing record.NullPointerException - If recordId is nullpublic static DXRecord getInstance(String recordId, DXContainer project)
DXRecord associated with an existing record in a particular project or
container.NullPointerException - If recordId or container is nullpublic static DXRecord getInstanceWithEnvironment(String recordId, DXContainer project, DXEnvironment env)
DXRecord associated with an existing record in a particular project using
the specified environment.public static DXRecord getInstanceWithEnvironment(String recordId, DXEnvironment env)
DXRecord associated with an existing record using the specified
environment.NullPointerException - If recordId is nullpublic static DXRecord.Builder newRecord()
DXRecord.
Example use:
DXRecord r = DXRecord.newRecord().inProject("proj-0000").setName("foo").build();
public static DXRecord.Builder newRecordWithEnvironment(DXEnvironment env)
DXRecord using the specified environment.
Example use:
DXRecord r = DXRecord.newRecordWithEnvironment(DXEnvironment.create()).inProject("proj-0000").setName("foo").build();
env - environment to use to make API callspublic DXRecord close()
DXDataObjectReturns the same object so you can chain calls.
close in class DXDataObjectDXDataObjectpublic DXRecord closeAndWait()
DXDataObjectReturns the same object so you can chain calls.
closeAndWait in class DXDataObjectDXDataObjectpublic DXRecord.Describe describe()
DXDataObject
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.
describe in class DXDataObjectDescribe containing the data object's metadata.public DXRecord.Describe describe(DXDataObject.DescribeOptions options)
DXDataObjectdescribe in class DXDataObjectoptions - DescribeOptions object specifying how the describe request is
to be made.Describe containing the data object's metadata.public DXRecord.Describe getCachedDescribe()
DXDataObjectDXDataObject.describe(), but without
making an API call.
This cached describe info is only available if this object appears in the result of a
DXSearch.findDataObjects() call that specified
DXSearch.FindDataObjectsRequestBuilder.includeDescribeOutput(), and the describe info
that is returned reflects the state of the object at the time that the search was performed.
getCachedDescribe in class DXDataObjectDescribe containing the data object's metadataCopyright © 2023. All Rights Reserved.