SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches
sqt::Column< ENTITY > Class Template Referenceabstract

#include <sqt/orm/table/column/column.h>

Inheritance diagram for sqt::Column< ENTITY >:

Description

template<typename ENTITY>
class sqt::Column< ENTITY >

Represents a column in a table that is associated with a specific entity type.

Template Parameters
ENTITYThe 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.

See also
sqt::AbstractColumn
SQT_COLUMN_ACCESSOR
SQT_COLUMN_CUSTOM
SQT_COLUMN_FIELD

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
AbstractColumnoperator= (const AbstractColumn &)=delete
virtual std::string_view GetName () const noexcept=0
virtual DataType GetDataType () const noexcept=0
virtual bool IsNullable () const noexcept=0