Class NonStandardCommons

java.lang.Object
org.tentackle.sql.NonStandardCommons

public class NonStandardCommons extends Object
Holds non-SQL-standard common features supported by most backends.
Author:
harald
  • Method Details

    • sqlCreateCommentOnTable

      public static String sqlCreateCommentOnTable(Backend backend, String tableName, String comment)
      Creates a COMMENT ON TABLE statement.
      Parameters:
      backend - the backend
      tableName - the tablename with optional schema separated by a dot
      comment - optional comment, null if none
      Returns:
      the SQL code including the closing bracket
    • sqlCreateCommentOnColumn

      public static String sqlCreateCommentOnColumn(Backend backend, String tableName, String columnName, String comment)
      Creates a COMMENT ON COLUMN statement.
      Parameters:
      backend - the backend
      tableName - the tablename with optional schema separated by a dot
      columnName - the column name
      comment - optional comment, null if none
      Returns:
      the SQL code including the closing bracket