Class MsSchema

All Implemented Interfaces:
IHashable, ISchema, IStatement, IStatementContainer

public final class MsSchema extends AbstractSchema
Represents a Microsoft SQL schema that contains database objects like tables, views, functions, and procedures. Provides SQL generation for schema creation and management.
  • Constructor Details

    • MsSchema

      public MsSchema(String name)
      Creates a new Microsoft SQL schema.
      Parameters:
      name - the schema name
  • Method Details

    • getCreationSQL

      public void getCreationSQL(SQLScript script)
      Description copied from class: PgStatement
      Generates the SQL statements needed to create this database object. This is an abstract method that must be implemented by subclasses to provide the specific CREATE SQL for each object type.
      Specified by:
      getCreationSQL in class PgStatement
      Parameters:
      script - the SQL script to append creation statements to
    • appendAlterSQL

      public ObjectState appendAlterSQL(PgStatement newCondition, SQLScript script)
      Description copied from class: PgStatement
      Fill script with object changes and return change type
      Specified by:
      appendAlterSQL in class PgStatement
      Parameters:
      newCondition - new object state
      script - script to collect changes
      Returns:
      object change type
    • getDbType

      public DatabaseType getDbType()
      Overrides:
      getDbType in class PgStatement