クラス AlterTableSpecification


public class AlterTableSpecification extends TableOptionsSpecification<AlterTableSpecification>
ALTER TABLE 仕様を構成するオブジェクト。
作成者:
Matthew T. Adams, Mark Paluch
関連事項:
  • メソッドの詳細

    • alterTable

      public static AlterTableSpecification alterTable(StringSE tableName)
      テーブルを変更するための tableName が指定された AlterTableSpecification の Fluent API へのエントリポイント。静的にインポートすると便利です。
      パラメーター:
      tableName - null または空であってはなりません。
      戻り値:
      新しい AlterTableSpecification
    • alterTable

      public static AlterTableSpecification alterTable(com.datastax.oss.driver.api.core.CqlIdentifier tableName)
      テーブルを変更するための tableName が指定された AlterTableSpecification の Fluent API へのエントリポイント。静的にインポートすると便利です。
      パラメーター:
      tableName - null であってはなりません。
      戻り値:
      新しい AlterTableSpecification
    • add

      public AlterTableSpecification add(StringSE column, com.datastax.oss.driver.api.core.type.DataType type)
      列変更のリストに ADD を追加します。
      パラメーター:
      column - null または空であってはなりません。
      type - null であってはなりません。
      戻り値:
      この AlterTableSpecification
    • add

      public AlterTableSpecification add(com.datastax.oss.driver.api.core.CqlIdentifier column, com.datastax.oss.driver.api.core.type.DataType type)
      列変更のリストに ADD を追加します。
      パラメーター:
      column - null であってはなりません。
      type - null であってはなりません。
      戻り値:
      この AlterTableSpecification
      導入:
      2.0
    • drop

      public AlterTableSpecification drop(StringSE column)
    • drop

      public AlterTableSpecification drop(com.datastax.oss.driver.api.core.CqlIdentifier column)
    • rename

      public AlterTableSpecification rename(StringSE from, StringSE to)
      列変更のリストに RENAME を追加します。
      パラメーター:
      from - null または空であってはなりません。
      to - null または空であってはなりません。
      戻り値:
      この AlterTableSpecification
    • rename

      public AlterTableSpecification rename(com.datastax.oss.driver.api.core.CqlIdentifier from, com.datastax.oss.driver.api.core.CqlIdentifier to)
      列変更のリストに RENAME を追加します。
      パラメーター:
      from - null であってはなりません。
      to - null であってはなりません。
      戻り値:
      この AlterTableSpecification
      導入:
      2.0
    • alter

      public AlterTableSpecification alter(StringSE column, com.datastax.oss.driver.api.core.type.DataType type)
      列変更のリストに ALTER を追加します。
      パラメーター:
      column - null または空であってはなりません
      type - null であってはなりません
      戻り値:
      この AlterTableSpecification
    • alter

      public AlterTableSpecification alter(com.datastax.oss.driver.api.core.CqlIdentifier column, com.datastax.oss.driver.api.core.type.DataType type)
      列変更のリストに ALTER を追加します。
      パラメーター:
      column - null であってはなりません。
      type - null であってはなりません。
      戻り値:
      この AlterTableSpecification
      導入:
      2.0
    • getChanges

      public ListSE<ColumnChangeSpecification> getChanges()
      列の変更の変更不可能なリストを返します。