Class BasicElementProperties
java.lang.Object
org.odpi.openmetadata.adapters.connectors.unitycatalog.properties.BasicProperties
org.odpi.openmetadata.adapters.connectors.unitycatalog.properties.BasicElementProperties
- Direct Known Subclasses:
CatalogNamespaceProperties,CatalogProperties
Common properties of an element (Catalog, Schema, Volume, Table, Function) stored in Unity catalog.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the guid is the associated hive metastore.getOwner()Return the owner of the element.Return the kind of securable element eg SCHEMA_STANDARD.Return the type of securable element - eg SCHEMA.inthashCode()Return hash code based on properties.booleanReturn whether this element is read only or not.voidsetBrowse_only(boolean browse_only) Set up whether this element is read only or not.voidsetMetastore_id(String metastore_id) Set up the guid is the associated hive metastore.voidSet up the owner of the element.voidsetSecurable_kind(String securable_kind) Set up the kind of securable element eg SCHEMA_STANDARD.voidsetSecurable_type(String securable_type) Set up the type of securable element - eg SCHEMA.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.adapters.connectors.unitycatalog.properties.BasicProperties
getComment, getName, setComment, setName
-
Constructor Details
-
BasicElementProperties
public BasicElementProperties()Constructor
-
-
Method Details
-
getMetastore_id
Return the guid is the associated hive metastore.- Returns:
- guid
-
setMetastore_id
Set up the guid is the associated hive metastore.- Parameters:
metastore_id- string guid
-
getSecurable_type
Return the type of securable element - eg SCHEMA.- Returns:
- string name
-
setSecurable_type
Set up the type of securable element - eg SCHEMA.- Parameters:
securable_type- string name
-
getSecurable_kind
Return the kind of securable element eg SCHEMA_STANDARD.- Returns:
- string name
-
setSecurable_kind
Set up the kind of securable element eg SCHEMA_STANDARD.- Parameters:
securable_kind- string name
-
getOwner
Return the owner of the element.- Returns:
- string name
-
setOwner
Set up the owner of the element.- Parameters:
owner- string name
-
isBrowse_only
public boolean isBrowse_only()Return whether this element is read only or not.- Returns:
- boolean flag
-
setBrowse_only
public void setBrowse_only(boolean browse_only) Set up whether this element is read only or not.- Parameters:
browse_only- boolean flag
-
toString
Standard toString method.- Overrides:
toStringin classBasicProperties- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classBasicProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classBasicProperties- Returns:
- int
-