public class SpannerSchemaUtils extends Object
| Constructor and Description |
|---|
SpannerSchemaUtils(SpannerMappingContext mappingContext,
SpannerEntityProcessor spannerEntityProcessor) |
| Modifier and Type | Method and Description |
|---|---|
<T> String |
getCreateTableDDLString(Class<T> entityClass)
Gets the DDL string to create the table for the given entity in Spanner.
|
String |
getDropTableDDLString(Class entityClass)
Gets the DDL string to drop the table for the given entity in Spanner.
|
com.google.cloud.spanner.Key |
getKey(Object object)
Gets the key for the given object.
|
public SpannerSchemaUtils(SpannerMappingContext mappingContext, SpannerEntityProcessor spannerEntityProcessor)
public com.google.cloud.spanner.Key getKey(Object object)
object - the object to get the key forpublic <T> String getCreateTableDDLString(Class<T> entityClass)
entityClass - the entity type.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.