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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare 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.int
hashCode()
Return hash code based on properties.boolean
Return whether this element is read only or not.void
setBrowse_only
(boolean browse_only) Set up whether this element is read only or not.void
setMetastore_id
(String metastore_id) Set up the guid is the associated hive metastore.void
Set up the owner of the element.void
setSecurable_kind
(String securable_kind) Set up the kind of securable element eg SCHEMA_STANDARD.void
setSecurable_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:
toString
in 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:
equals
in classBasicProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classBasicProperties
- Returns:
- int
-