クラス SchemaFactory
java.lang.ObjectSE
org.springframework.data.cassandra.core.convert.SchemaFactory
ユーザー定義型、テーブル、インデックスなどの Cassandra スキーマオブジェクトのファクトリ。
- 導入:
- 3.0
- 作成者:
- Mark Paluch, Christoph Strobl, Aleksei Zotov
- 関連事項:
コンストラクターのサマリー
コンストラクターコンストラクター説明SchemaFactory
(CassandraConverter converter) CassandraConverter
を指定して新しいSchemaFactory
を作成します。SchemaFactory
(MappingContext<? extends CassandraPersistentEntity<?>, CassandraPersistentProperty> mappingContext, CustomConversions customConversions, com.datastax.oss.driver.api.core.type.codec.registry.CodecRegistry codecRegistry) メソッドのサマリー
修飾子と型メソッド説明getCreateIndexSpecificationsFor
(ClassSE<?> entityType) CassandraPersistentEntity
から派生したindex specifications
を返します。CassandraPersistentEntity
から派生したindex specifications
を返します。getCreateIndexSpecificationsFor
(CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) getCreateTableSpecificationFor
(ClassSE<?> entityType) すべてのマッピング情報を含む、指定されたエンティティのCreateTableSpecification
を返します。すべてのマッピング情報を含む、指定されたエンティティのCreateTableSpecification
を返します。getCreateTableSpecificationFor
(CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) すべてのマッピング情報を含む、table name
を使用して指定されたエンティティのCreateTableSpecification
を返します。すべてのマッピング情報を含む、指定されたエンティティのCreateUserTypeSpecification
を返します。
コンストラクターの詳細
SchemaFactory
CassandraConverter
を指定して新しいSchemaFactory
を作成します。- パラメーター:
converter
- null であってはなりません。
SchemaFactory
public SchemaFactory(MappingContext<? extends CassandraPersistentEntity<?>, CassandraPersistentProperty> mappingContext, CustomConversions customConversions, com.datastax.oss.driver.api.core.type.codec.registry.CodecRegistry codecRegistry) - パラメーター:
mappingContext
- null であってはなりません。customConversions
- null であってはなりません。codecRegistry
- null であってはなりません。
メソッドの詳細
getCreateTableSpecificationFor
すべてのマッピング情報を含む、指定されたエンティティのCreateTableSpecification
を返します。- パラメーター:
entityType
- null であってはなりません。- 戻り値:
entityType
から派生したCreateTableSpecification
。
getCreateTableSpecificationFor
すべてのマッピング情報を含む、指定されたエンティティのCreateTableSpecification
を返します。- パラメーター:
entity
- null であってはなりません。- 戻り値:
CassandraPersistentEntity
から派生したCreateTableSpecification
。
getCreateTableSpecificationFor
public CreateTableSpecification getCreateTableSpecificationFor(CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) すべてのマッピング情報を含む、table name
を使用して指定されたエンティティのCreateTableSpecification
を返します。- パラメーター:
entity
- null であってはなりません。tableName
- null であってはなりません。- 戻り値:
- 導入:
- 2.2
getCreateIndexSpecificationsFor
CassandraPersistentEntity
から派生したindex specifications
を返します。- パラメーター:
entityType
- null であってはなりません。- 戻り値:
entityType
から派生したCreateTableSpecification
。
getCreateIndexSpecificationsFor
public ListSE<CreateIndexSpecification> getCreateIndexSpecificationsFor(CassandraPersistentEntity<?> entity) CassandraPersistentEntity
から派生したindex specifications
を返します。- パラメーター:
entity
- null であってはなりません。- 戻り値:
- 導入:
- 2.0
getCreateIndexSpecificationsFor
public ListSE<CreateIndexSpecification> getCreateIndexSpecificationsFor(CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) - パラメーター:
entity
- null であってはなりません。tableName
- null であってはなりません。- 戻り値:
- 導入:
- 2.0
getCreateUserTypeSpecificationFor
public CreateUserTypeSpecification getCreateUserTypeSpecificationFor(CassandraPersistentEntity<?> entity) すべてのマッピング情報を含む、指定されたエンティティのCreateUserTypeSpecification
を返します。- パラメーター:
entity
- null であってはなりません。