クラス CassandraPersistentEntitySchemaCreator
java.lang.ObjectSE
org.springframework.data.cassandra.core.CassandraPersistentEntitySchemaCreator
CassandraMappingContext
および CassandraPersistentEntity
に基づく Cassandra のスキーマ作成サポート。このクラスは、ユーザー型 (UDT) とテーブルを作成するための CQL を生成します。- 導入:
- 1.5
- 作成者:
- Mark Paluch, Jens Schauder
- 関連事項:
コンストラクターのサマリー
コンストラクターコンストラクター説明CassandraPersistentEntitySchemaCreator
(CassandraAdminOperations cassandraAdminOperations) 指定されたCassandraMappingContext
およびCassandraAdminOperations
に対して新しいCassandraPersistentEntitySchemaCreator
を作成します。CassandraPersistentEntitySchemaCreator
(CassandraMappingContext mappingContext, CassandraAdminOperations cassandraAdminOperations) 指定されたCassandraMappingContext
およびCassandraAdminOperations
に対して新しいCassandraPersistentEntitySchemaCreator
を作成します。メソッドのサマリー
修飾子と型メソッド説明void
createIndexes
(boolean ifNotExists) CassandraMappingContext
に認識されている型からインデックスを作成します。protected ListSE<CreateIndexSpecification>
createIndexSpecifications
(boolean ifNotExists) CreateIndexSpecification
のList
SE を作成します。void
createTables
(boolean ifNotExists) CassandraMappingContext
に既知の型からテーブルを作成します。protected ListSE<CreateTableSpecification>
createTableSpecifications
(boolean ifNotExists) CreateTableSpecification
のList
SE を作成します。void
createUserTypes
(boolean ifNotExists) CassandraMappingContext
に既知の型からユーザー型を作成します。protected ListSE<CreateUserTypeSpecification>
createUserTypeSpecifications
(boolean ifNotExists) CreateUserTypeSpecification
のList
SE を作成します。
コンストラクターの詳細
CassandraPersistentEntitySchemaCreator
指定されたCassandraMappingContext
およびCassandraAdminOperations
に対して新しいCassandraPersistentEntitySchemaCreator
を作成します。- パラメーター:
cassandraAdminOperations
- null であってはなりません。- 導入:
- 3.0
CassandraPersistentEntitySchemaCreator
public CassandraPersistentEntitySchemaCreator(CassandraMappingContext mappingContext, CassandraAdminOperations cassandraAdminOperations) 指定されたCassandraMappingContext
およびCassandraAdminOperations
に対して新しいCassandraPersistentEntitySchemaCreator
を作成します。- パラメーター:
mappingContext
- null であってはなりません。cassandraAdminOperations
- null であってはなりません。
メソッドの詳細
createTables
public void createTables(boolean ifNotExists) CassandraMappingContext
に既知の型からテーブルを作成します。- パラメーター:
ifNotExists
-IF NOT EXISTS
を使用してテーブルを作成する場合は true です。
createTableSpecifications
CreateTableSpecification
のList
SE を作成します。- パラメーター:
ifNotExists
-IF NOT EXISTS
を使用してテーブルを作成する場合は true です。- 戻り値:
CreateTableSpecification
のList
SE。
createIndexes
public void createIndexes(boolean ifNotExists) CassandraMappingContext
に認識されている型からインデックスを作成します。- パラメーター:
ifNotExists
-IF NOT EXISTS
を使用してテーブルを作成する場合は true です。
createIndexSpecifications
CreateIndexSpecification
のList
SE を作成します。- パラメーター:
ifNotExists
-IF NOT EXISTS
を使用してインデックスを作成する場合は true です。- 戻り値:
CreateIndexSpecification
のList
SE。
createUserTypes
public void createUserTypes(boolean ifNotExists) CassandraMappingContext
に既知の型からユーザー型を作成します。- パラメーター:
ifNotExists
-IF NOT EXISTS
を使用して型を作成する場合は true です。
createUserTypeSpecifications
CreateUserTypeSpecification
のList
SE を作成します。- パラメーター:
ifNotExists
-IF NOT EXISTS
を使用して型を作成する場合は true です。- 戻り値:
CreateUserTypeSpecification
のList
SE。