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 DatabaseSchema
fromJson(String dbName, com.fasterxml.jackson.databind.JsonNode json)
String
getName()
Set<String>
getTables()
Version
getVersion()
boolean
hasTable(String table)
protected boolean
haveInternallyGeneratedColumns()
<E extends TableSchema<E>>
Etable(String tableName, Class<E> clazz)
DatabaseSchema
withInternallyGeneratedColumns()
-
-
-
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:
getTables
in interfaceDatabaseSchema
-
hasTable
public boolean hasTable(String table)
- Specified by:
hasTable
in interfaceDatabaseSchema
-
table
public <E extends TableSchema<E>> E table(String tableName, Class<E> clazz)
- Specified by:
table
in interfaceDatabaseSchema
-
createTableSchema
protected <E extends TableSchema<E>> E createTableSchema(Class<E> clazz, TableSchema<E> table)
-
getName
public String getName()
- Specified by:
getName
in interfaceDatabaseSchema
-
getVersion
public Version getVersion()
- Specified by:
getVersion
in interfaceDatabaseSchema
-
withInternallyGeneratedColumns
public DatabaseSchema withInternallyGeneratedColumns()
- Specified by:
withInternallyGeneratedColumns
in interfaceDatabaseSchema
-
haveInternallyGeneratedColumns
protected final boolean haveInternallyGeneratedColumns()
-
-