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.DescribeOptions
cachedDescribe
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, setVisibility
apiCallOnObject, apiCallOnObject, getId, toString
public 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()
DXDataObject
Returns the same object so you can chain calls.
close
in class DXDataObject
DXDataObject
public DXRecord closeAndWait()
DXDataObject
Returns the same object so you can chain calls.
closeAndWait
in class DXDataObject
DXDataObject
public 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 DXDataObject
Describe
containing the data object's metadata.public DXRecord.Describe describe(DXDataObject.DescribeOptions options)
DXDataObject
describe
in class DXDataObject
options
- DescribeOptions
object specifying how the describe
request is
to be made.Describe
containing the data object's metadata.public DXRecord.Describe getCachedDescribe()
DXDataObject
DXDataObject.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 DXDataObject
Describe
containing the data object's metadataCopyright © 2023. All Rights Reserved.