Class TableSchema<E extends TableSchema<E>>
- java.lang.Object
-
- org.opendaylight.ovsdb.lib.schema.TableSchema<E>
-
- Direct Known Subclasses:
GenericTableSchema
public abstract class TableSchema<E extends TableSchema<E>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static ColumnSchema
UUID_COLUMN_SCHMEMA
protected static ColumnSchema
VERSION_COLUMN_SCHMEMA
-
Constructor Summary
Constructors Modifier Constructor Description protected
TableSchema(String name)
protected
TableSchema(String name, Map<String,ColumnSchema> columns)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <E extends TableSchema<E>>
Eas(Class<E> clazz)
ColumnSchema
column(String column)
<D> ColumnSchema<E,D>
column(String column, Class<D> type)
Row<E>
createRow(com.fasterxml.jackson.databind.node.ObjectNode rowNode)
List<Row<E>>
createRows(com.fasterxml.jackson.databind.JsonNode rowsNode)
List<String>
getColumnList()
Set<String>
getColumns()
Map<String,ColumnSchema>
getColumnSchemas()
ColumnType
getColumnType(String column)
String
getName()
boolean
hasColumn(String column)
protected boolean
haveInternallyGeneratedColumns()
Insert<E>
insert()
<D> ColumnSchema<E,Set<D>>
multiValuedColumn(String column, Class<D> type)
<K,V>
ColumnSchema<E,Map<K,V>>multiValuedColumn(String column, Class<K> keyType, Class<V> valueType)
TableUpdate<E>
updatesFromJson(com.fasterxml.jackson.databind.JsonNode value)
abstract E
withInternallyGeneratedColumns()
-
-
-
Field Detail
-
UUID_COLUMN_SCHMEMA
protected static final ColumnSchema UUID_COLUMN_SCHMEMA
-
VERSION_COLUMN_SCHMEMA
protected static final ColumnSchema VERSION_COLUMN_SCHMEMA
-
-
Constructor Detail
-
TableSchema
protected TableSchema(String name)
-
TableSchema
protected TableSchema(String name, Map<String,ColumnSchema> columns)
-
-
Method Detail
-
getColumnSchemas
public Map<String,ColumnSchema> getColumnSchemas()
-
hasColumn
public boolean hasColumn(String column)
-
getColumnType
public ColumnType getColumnType(String column)
-
as
public <E extends TableSchema<E>> E as(Class<E> clazz)
-
multiValuedColumn
public <D> ColumnSchema<E,Set<D>> multiValuedColumn(String column, Class<D> type)
-
multiValuedColumn
public <K,V> ColumnSchema<E,Map<K,V>> multiValuedColumn(String column, Class<K> keyType, Class<V> valueType)
-
column
public <D> ColumnSchema<E,D> column(String column, Class<D> type)
-
column
public ColumnSchema column(String column)
-
getName
public String getName()
-
updatesFromJson
public TableUpdate<E> updatesFromJson(com.fasterxml.jackson.databind.JsonNode value)
-
withInternallyGeneratedColumns
public abstract E withInternallyGeneratedColumns()
-
haveInternallyGeneratedColumns
protected final boolean haveInternallyGeneratedColumns()
-
-