Class JoinPolicy

java.lang.Object
dev.frostlake.metastore.SqlObject
dev.frostlake.metastore.model.JoinPolicy
All Implemented Interfaces:
Taggable

public class JoinPolicy extends SqlObject
Snowflake JOIN POLICY — attached to a TABLE, it refuses to let that table be read on its own: the query must INNER join it to a DIFFERENT table on an equality between their columns. A query with no join, an outer join, a cross join, a constant join condition or a self join is all refused, each with its own sentence (live-verified).

The policy takes no arguments and its body answers JOIN_CONSTRAINT(JOIN_REQUIRED => …), so a body answering FALSE imposes nothing.

  • Constructor Details

  • Method Details

    • getBody

      public String getBody()
    • setBody

      public void setBody(String body)
    • getObjectType

      public String getObjectType()
      Description copied from class: SqlObject
      Get the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific type
      Specified by:
      getObjectType in class SqlObject
      Returns:
      The object type as a string