@Internal public abstract class EntityTable<I,R,W> extends AbstractTable<I,R,W>
Modifier | Constructor and Description |
---|---|
protected |
EntityTable(java.lang.Class<? extends io.spine.server.entity.Entity<I,?>> entityClass,
TableColumn idColumn,
DataSourceWrapper dataSource,
TypeMapping typeMapping)
Creates a new instance of the
EntityTable . |
protected |
EntityTable(java.lang.String tableNamePostfix,
java.lang.Class<? extends io.spine.server.entity.Entity<I,?>> entityClass,
TableColumn idColumn,
DataSourceWrapper dataSource,
TypeMapping typeMapping)
Creates a new instance of the
EntityTable . |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> |
columnDefaults()
Obtains the map of column defaults for this table.
|
composeInsertQuery, composeSelectQuery, composeUpdateQuery, containsRecord, create, dataSource, delete, deleteAll, idColumn, index, insert, name, read, tableColumns, update, write
protected EntityTable(java.lang.Class<? extends io.spine.server.entity.Entity<I,?>> entityClass, TableColumn idColumn, DataSourceWrapper dataSource, TypeMapping typeMapping)
EntityTable
.
The table will have a name based on the FQN name of the given Entity
class.
entityClass
- the Class
of the Entity
to storedataSource
- an instance of DataSourceWrapper
to useprotected EntityTable(java.lang.String tableNamePostfix, java.lang.Class<? extends io.spine.server.entity.Entity<I,?>> entityClass, TableColumn idColumn, DataSourceWrapper dataSource, TypeMapping typeMapping)
EntityTable
.
The table will have a name based on the FQN name of
the given Entity
class and the given postfix.
tableNamePostfix
- the postfix for the the table nameentityClass
- the Class
of the Entity
to storedataSource
- an instance of DataSourceWrapper
to useprotected com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> columnDefaults()
AbstractTable
columnDefaults
in class AbstractTable<I,R,W>