Class ChAbstractStatement

java.lang.Object
org.pgcodekeeper.core.database.base.schema.AbstractStatement
org.pgcodekeeper.core.database.ch.schema.ChAbstractStatement
All Implemented Interfaces:
IStatement, IHashable
Direct Known Subclasses:
ChColumn, ChConstraint, ChDatabase, ChDictionary, ChFunction, ChIndex, ChPolicy, ChRole, ChSchema, ChTable, ChUser, ChView

public abstract class ChAbstractStatement extends AbstractStatement
  • Method Details

    • formatSql

      public String formatSql(String sql, int offset, int length, IFormatConfiguration formatConfiguration)
      Description copied from interface: IStatement
      Formats string
      Parameters:
      sql - The source SQL text to format
      offset - Starting offset in the source text
      length - Length of text to format
      formatConfiguration - Formatting configuration options
      Returns:
      formatted string
    • appendOwnerSQL

      public void appendOwnerSQL(SQLScript script)
      Description copied from interface: IStatement
      Appends ALTER OWNER SQL statement to the script for this database object.
      Parameters:
      script - the SQL script to append the owner statement to
    • getQuoter

      public UnaryOperator<String> getQuoter()
      Returns:
      a function that quotes name
    • getRenameCommand

      public String getRenameCommand(String newName)
      Description copied from interface: IStatement
      Returns sql command to rename the given object.
      Parameters:
      newName - the new name for given object
      Returns:
      sql command to rename the given object
    • appendComments

      public void appendComments(SQLScript script)
      Description copied from class: AbstractStatement
      Appends comment SQL to the script if this statement has comments.
      Overrides:
      appendComments in class AbstractStatement
      Parameters:
      script - the SQL script to append comments to