Class DatabaseSchemaImpl
- java.lang.Object
-
- org.opendaylight.ovsdb.lib.schema.DatabaseSchemaImpl
-
- All Implemented Interfaces:
DatabaseSchema
public class DatabaseSchemaImpl extends Object implements DatabaseSchema
-
-
Constructor Summary
Constructors Constructor Description DatabaseSchemaImpl(String name, Version version, Map<String,TableSchema> tables)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <E extends TableSchema<E>>
EcreateTableSchema(Class<E> clazz, TableSchema<E> table)static DatabaseSchemafromJson(String dbName, com.fasterxml.jackson.databind.JsonNode json)StringgetName()Set<String>getTables()VersiongetVersion()booleanhasTable(String table)protected booleanhaveInternallyGeneratedColumns()<E extends TableSchema<E>>
Etable(String tableName, Class<E> clazz)DatabaseSchemawithInternallyGeneratedColumns()
-
-
-
Constructor Detail
-
DatabaseSchemaImpl
public DatabaseSchemaImpl(String name, Version version, Map<String,TableSchema> tables)
-
-
Method Detail
-
fromJson
public static DatabaseSchema fromJson(String dbName, com.fasterxml.jackson.databind.JsonNode json)
-
getTables
public Set<String> getTables()
- Specified by:
getTablesin interfaceDatabaseSchema
-
hasTable
public boolean hasTable(String table)
- Specified by:
hasTablein interfaceDatabaseSchema
-
table
public <E extends TableSchema<E>> E table(String tableName, Class<E> clazz)
- Specified by:
tablein interfaceDatabaseSchema
-
createTableSchema
protected <E extends TableSchema<E>> E createTableSchema(Class<E> clazz, TableSchema<E> table)
-
getName
public String getName()
- Specified by:
getNamein interfaceDatabaseSchema
-
getVersion
public Version getVersion()
- Specified by:
getVersionin interfaceDatabaseSchema
-
withInternallyGeneratedColumns
public DatabaseSchema withInternallyGeneratedColumns()
- Specified by:
withInternallyGeneratedColumnsin interfaceDatabaseSchema
-
haveInternallyGeneratedColumns
protected final boolean haveInternallyGeneratedColumns()
-
-