public class DatabaseSchema extends Object
Constructor and Description |
---|
DatabaseSchema(Map<String,TableSchema> tables) |
DatabaseSchema(String name,
Version version,
Map<String,TableSchema> tables) |
Modifier and Type | Method and Description |
---|---|
protected <E extends TableSchema<E>> |
createTableSchema(Class<E> clazz,
TableSchema<E> table) |
static DatabaseSchema |
fromJson(String dbName,
com.fasterxml.jackson.databind.JsonNode json) |
String |
getName() |
Set<String> |
getTables() |
Version |
getVersion() |
boolean |
hasTable(String table) |
void |
populateInternallyGeneratedColumns() |
void |
setName(String name) |
void |
setVersion(Version version) |
<E extends TableSchema<E>> |
table(String tableName,
Class<E> clazz) |
public DatabaseSchema(Map<String,TableSchema> tables)
public DatabaseSchema(String name, Version version, Map<String,TableSchema> tables)
public boolean hasTable(String table)
public <E extends TableSchema<E>> E table(String tableName, Class<E> clazz)
protected <E extends TableSchema<E>> E createTableSchema(Class<E> clazz, TableSchema<E> table)
public static DatabaseSchema fromJson(String dbName, com.fasterxml.jackson.databind.JsonNode json)
public String getName()
public void setName(String name)
public Version getVersion()
public void setVersion(Version version)
public void populateInternallyGeneratedColumns()
Copyright © 2018 OpenDaylight. All rights reserved.