Class SearchResult


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20190325")
    public final class SearchResult
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The search result object is the definition of an element that is returned as part of search.

    It contains basic information about the object such as key, name and description. The search result also contains the list of tags for each object along with other contextual information like the data asset root, folder, or entity parents.
    Note: Objects should always be created or deserialized using the SearchResult.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the SearchResult.Builder, which maintain a set of all explicitly set fields called SearchResult.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Method Detail

      • getKey

        public String getKey()
        Unique key of the object returned as part of the search result.
        Returns:
        the value
      • getName

        public String getName()
        Name of the object.
        Returns:
        the value
      • getDescription

        public String getDescription()
        Detailed description of the object.
        Returns:
        the value
      • getTimeCreated

        public Date getTimeCreated()
        The date and time the result object was created, in the format defined by RFC3339.

        Example: 2019-03-25T21:10:29.600Z

        Returns:
        the value
      • getTimeUpdated

        public Date getTimeUpdated()
        The date and time the result object was updated, in the format defined by RFC3339.

        Example: 2019-03-25T21:10:29.600Z

        Returns:
        the value
      • getTagSummary

        public List<SearchTagSummary> getTagSummary()
        Array of the tags associated with this object.
        Returns:
        the value
      • getTermSummary

        public List<SearchTermSummary> getTermSummary()
        Array of the terms associated with this object.
        Returns:
        the value
      • getTypeName

        public String getTypeName()
        Name of the object type.
        Returns:
        the value
      • getExternalTypeName

        public String getExternalTypeName()
        Name of the external object type in the host data asset.

        For example, column, field, table, view, or file.

        Returns:
        the value
      • getExternalDataType

        public String getExternalDataType()
        Data type of the object if the object is an attribute.

        Null otherwise.

        Returns:
        the value
      • getDataAssetKey

        public String getDataAssetKey()
        Unique key of the data asset that is the root parent of this object.
        Returns:
        the value
      • getDataAssetType

        public String getDataAssetType()
        Type name of the data asset.

        For example, Oracle, MySQL or Oracle Object Storage.

        Returns:
        the value
      • getDataAssetName

        public String getDataAssetName()
        Name of the data asset that is the root parent of this object.
        Returns:
        the value
      • getFolderKey

        public String getFolderKey()
        Unique key of the folder object if this object is a sub folder, entity, or attribute.
        Returns:
        the value
      • getFolderType

        public String getFolderType()
        Type name of the folder.

        For example, schema, directory, or topic.

        Returns:
        the value
      • getFolderName

        public String getFolderName()
        Name of the parent folder object if this object is a sub folder, entity, or attribute.
        Returns:
        the value
      • getEntitykey

        public String getEntitykey()
        Unique key of the entity object if this object is an attribute.
        Returns:
        the value
      • getEntityType

        public String getEntityType()
        Type name of the entity.

        For example, table, view, external table, file, or object.

        Returns:
        the value
      • getEntityName

        public String getEntityName()
        Name of the parent entity object if this object is an attribute.
        Returns:
        the value
      • getGlossaryKey

        public String getGlossaryKey()
        Unique id of the parent glossary.
        Returns:
        the value
      • getGlossaryName

        public String getGlossaryName()
        Name of the parent glossary if this object is a term.
        Returns:
        the value
      • getParentTermKey

        public String getParentTermKey()
        This terms parent term key.

        Will be null if the term has no parent term.

        Returns:
        the value
      • getParentTermName

        public String getParentTermName()
        Name of the parent term.

        Will be null if the term has no parent term.

        Returns:
        the value
      • getCreatedById

        public String getCreatedById()
        OCID of the user who created the resource.
        Returns:
        the value
      • getUpdatedById

        public String getUpdatedById()
        OCID of the user who updated the resource.
        Returns:
        the value
      • getPath

        public String getPath()
        Absolute path of this resource, which could be a term, folder, entity etc, usually resolvable to this resource through a namespace hierarchy.
        Returns:
        the value
      • getBusinessName

        public String getBusinessName()
        Optional user friendly business name of the data object.

        If set, this supplements the harvested display name of the object.

        Returns:
        the value
      • getLifecycleState

        public LifecycleState getLifecycleState()
        The current state of the data object.
        Returns:
        the value
      • getAttributeType

        public String getAttributeType()
        Type name of the attribute.

        For example - complex, primitive, or array.

        Returns:
        the value
      • getExpression

        public String getExpression()
        Expression for logical entities against which names of dataObjects will be matched.
        Returns:
        the value
      • getProperties

        public Map<String,​Map<String,​String>> getProperties()
        A map of maps that contains the properties which are specific to the element type in the search result.

        The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most element types have required properties within the “default” category. Example: {“properties”: { “default”: { “key1”: “value1”}}}

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel