#include <sqt/orm/table/column/column.h>
Represents a column in a table that is associated with a specific entity type.
| ENTITY | The type of the entity that the column is associated with. |
This interface extends the sqt::AbstractColumn interface by associating the column with a specific entity type. It can be used as the element type for a collection of columns that are associated with the same entity type.
This interface is implemented by all column types defined using the SQT_COLUMN_FIELD, SQT_COLUMN_ACCESSOR and SQT_COLUMN_CUSTOM macros.
Public Types | |
| using | EntityType = ENTITY |
Public Member Functions | |
| virtual void | BindValueFromEntity (Statement &statement, int parameter_index, const ENTITY &entity) const =0 |
| virtual void | RetrieveValueToEntity (const Statement &statement, int index, ENTITY &entity) const =0 |
| Public Member Functions inherited from sqt::AbstractColumn | |
| AbstractColumn (const AbstractColumn &)=delete | |
| AbstractColumn & | operator= (const AbstractColumn &)=delete |
| virtual std::string_view | GetName () const noexcept=0 |
| virtual DataType | GetDataType () const noexcept=0 |
| virtual bool | IsNullable () const noexcept=0 |