クラス CreateTableSpecification
java.lang.ObjectSE
org.springframework.data.cassandra.core.cql.keyspace.TableNameSpecification
org.springframework.data.cassandra.core.cql.keyspace.TableOptionsSpecification<TableSpecification<T>>
org.springframework.data.cassandra.core.cql.keyspace.TableSpecification<CreateTableSpecification>
org.springframework.data.cassandra.core.cql.keyspace.CreateTableSpecification
- 実装されたすべてのインターフェース:
TableDescriptor
CREATE TABLE
仕様を構成するオブジェクト。- 作成者:
- Matthew T. Adams, Mark Paluch
メソッドのサマリー
修飾子と型メソッド説明static CreateTableSpecification
createTable
(com.datastax.oss.driver.api.core.CqlIdentifier tableName) テーブルを作成するためにtableName
が指定されたCreateTableSpecification
の Fluent API へのエントリポイント。static CreateTableSpecification
createTable
(StringSE tableName) テーブルを作成するためにtableName
が指定されたCreateTableSpecification
の Fluent API へのエントリポイント。boolean
IF NOT EXISTS
句が組み込まれます。ifNotExists
(boolean ifNotExists) IF NOT EXISTS
句の組み込みを切り替えます。指定されたオプションを名前でこのテーブルのオプションに追加します。with
(TableOption option) with(option, null)
を呼び出す便利なメソッド。with
(TableOption option, ObjectSE value) 指定されたテーブルオプションを設定します。クラス org.springframework.data.cassandra.core.cql.keyspace.TableSpecification から継承されたメソッド
clusteredKeyColumn, clusteredKeyColumn, clusteredKeyColumn, clusteredKeyColumn, clusteredKeyColumn, column, column, column, column, column, column, getClusteredKeyColumns, getColumns, getNonKeyColumns, getPartitionKeyColumns, getPrimaryKeyColumns, getStaticColumns, partitionKeyColumn, partitionKeyColumn, staticColumn, staticColumn
クラス org.springframework.data.cassandra.core.cql.keyspace.TableOptionsSpecification から継承されたメソッド
getOptions
クラス org.springframework.data.cassandra.core.cql.keyspace.TableNameSpecification から継承されたメソッド
getName
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.data.cassandra.core.cql.keyspace.TableDescriptor から継承されたメソッド
getName, getOptions
メソッドの詳細
createTable
tableName
がテーブルを作成するために指定したCreateTableSpecification
の Fluent API へのエントリポイント。静的にインポートすると便利です。- パラメーター:
tableName
- null または空であってはなりません。- 戻り値:
- 新しい
CreateTableSpecification
。
createTable
public static CreateTableSpecification createTable(com.datastax.oss.driver.api.core.CqlIdentifier tableName) tableName
がテーブルを作成するために指定したCreateTableSpecification
の Fluent API へのエントリポイント。静的にインポートすると便利です。- パラメーター:
tableName
- null であってはなりません。- 戻り値:
- 新しい
CreateTableSpecification
。
ifNotExists
IF NOT EXISTS
句が組み込まれます。- 戻り値:
- this
ifNotExists
IF NOT EXISTS
句の組み込みを切り替えます。- 戻り値:
- this
getIfNotExists
public boolean getIfNotExists()with
クラスからコピーされた説明:TableOptionsSpecification
with(option, null)
を呼び出す便利なメソッド。- オーバーライド:
- クラス
TableOptionsSpecification<TableSpecification<CreateTableSpecification>>
のwith
- 戻り値:
- this
with
クラスからコピーされた説明:TableOptionsSpecification
指定されたテーブルオプションを設定します。これは、指定されたTableOption
とそのオプションの値からTableOptionsSpecification.with(String, Object, boolean, boolean)
を適切に呼び出す便利なメソッドです。- オーバーライド:
- クラス
TableOptionsSpecification<TableSpecification<CreateTableSpecification>>
のwith
- パラメーター:
option
- 設定するオプション。value
- オプションの値。TableOption
と型互換性がある必要があります。- 戻り値:
- this
- 関連事項:
with
public CreateTableSpecification with(StringSE name, @Nullable ObjectSE value, boolean escape, boolean quote) クラスからコピーされた説明:TableOptionsSpecification
指定されたオプションを名前でこのテーブルのオプションに追加します。NULL 値を持つオプションは、オプションの名前が使用される文字列である単一文字列オプションと見なされます。それ以外の場合、
Object.toString()
の結果は、指定された名前のオプションの値と見なされます。文字列に変換された後の値には、パラメーターescape
に従ってエスケープされた単一引用符が埋め込まれている場合があり、パラメーターquote
に従って単一引用符で囲まれる場合があります。- オーバーライド:
- クラス
TableOptionsSpecification<TableSpecification<CreateTableSpecification>>
のwith
- パラメーター:
name
- オプションの名前value
- オプションの値。null の場合、値は無視され、オプションは名前のみで構成されていると見なされます。それ以外の場合は、値のObject.toString()
値が使用されます。escape
-CqlStringUtils.escapeSingle(Object)
を介して値をエスケープするかどうか。指定された値がMap
SE のインスタンスである場合は無視されます。quote
-CqlStringUtils.singleQuote(Object)
を介して値を引用するかどうか。指定された値がMap
SE のインスタンスである場合は無視されます。- 戻り値:
- this