M
- the type of messages stored in the tablepublic static class MessageTable.BytesColumn<M extends com.google.protobuf.Message> extends java.lang.Object implements MessageTable.Column<M>
This column is present in any MessageTable
and serves for convenient record
deserialization
.
The column getter can be applied to an arbitrary message and is parameterized only to enable usage along with message-specific table columns.
MessageTable.Column.Getter<M extends com.google.protobuf.Message>
Constructor and Description |
---|
BytesColumn() |
Modifier and Type | Method and Description |
---|---|
MessageTable.Column.Getter<M> |
getter() |
boolean |
isNullable()
Returns
true if this column may contain NULL values, false otherwise. |
boolean |
isPrimaryKey()
Returns
true is this column is a primary key of the table, false otherwise. |
java.lang.String |
name()
Returns the name of the column.
|
Type |
type()
Returns the
Type of the column
or null if the type is unknown at the compile time. |
public MessageTable.Column.Getter<M> getter()
getter
in interface MessageTable.Column<M extends com.google.protobuf.Message>
public java.lang.String name()
TableColumn
name
in interface TableColumn
public Type type()
TableColumn
Type
of the column
or null
if the type is unknown at the compile time.type
in interface TableColumn
public boolean isPrimaryKey()
TableColumn
true
is this column is a primary key of the table, false
otherwise.isPrimaryKey
in interface TableColumn
public boolean isNullable()
TableColumn
true
if this column may contain NULL
values, false
otherwise.isNullable
in interface TableColumn