Package dev.frostlake.metastore.model
Class Tag
java.lang.Object
dev.frostlake.metastore.SqlObject
dev.frostlake.metastore.model.Tag
- All Implemented Interfaces:
Taggable
Represents a Snowflake TAG - used for object categorization and metadata management
Tags can be applied to databases, schemas, tables, and other objects for governance and organization
-
Field Summary
Fields inherited from class dev.frostlake.metastore.SqlObject
comment, createdTime, name, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllowedValue(String value) voidGet the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific typebooleanbooleanisValueAllowed(String value) voidremoveAllowedValue(String value) toString()Methods inherited from class dev.frostlake.metastore.SqlObject
equals, getComment, getCreatedTime, getName, getOwner, getTagValue, getTagValues, hashCode, rename, setComment, setName, setOwner, setTag, unsetTag, withoutTrailingSemicolon
-
Constructor Details
-
Tag
-
Tag
-
-
Method Details
-
getAllowedValues
-
addAllowedValue
-
removeAllowedValue
-
clearAllowedValues
public void clearAllowedValues() -
hasAllowedValues
public boolean hasAllowedValues() -
isValueAllowed
-
getObjectType
Description copied from class:SqlObjectGet the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific type- Specified by:
getObjectTypein classSqlObject- Returns:
- The object type as a string
-
toString
-