Zserio C++ runtime library  1.2.0
Built for Zserio 2.16.0
zserio::SqlTableTypeInfo< ALLOC > Class Template Reference

#include <TypeInfo.h>

Inheritance diagram for zserio::SqlTableTypeInfo< ALLOC >:
Collaboration diagram for zserio::SqlTableTypeInfo< ALLOC >:

Public Member Functions

 SqlTableTypeInfo (StringView schemaName, StringView templateName, Span< const BasicTemplateArgumentInfo< ALLOC >> templateArguments, Span< const BasicColumnInfo< ALLOC >> columns, StringView sqlConstraint, StringView virtualTableUsing, bool isWithoutRowId)
 
Span< const BasicColumnInfo< ALLOC > > getColumns () const override
 
StringView getSqlConstraint () const override
 
StringView getVirtualTableUsing () const override
 
bool isWithoutRowId () const override
 
- Public Member Functions inherited from zserio::TemplatableTypeInfoBase< ALLOC >
 TemplatableTypeInfoBase (StringView schemaName, SchemaType schemaType, CppType cppType, StringView templateName, Span< const BasicTemplateArgumentInfo< ALLOC >> templateArguments)
 
 ~TemplatableTypeInfoBase () override=0
 
 TemplatableTypeInfoBase (const TemplatableTypeInfoBase &)=default
 
TemplatableTypeInfoBaseoperator= (const TemplatableTypeInfoBase &)=default
 
 TemplatableTypeInfoBase (TemplatableTypeInfoBase &&)=default
 
TemplatableTypeInfoBaseoperator= (TemplatableTypeInfoBase &&)=default
 
StringView getTemplateName () const override
 
Span< const BasicTemplateArgumentInfo< ALLOC > > getTemplateArguments () const override
 
- Public Member Functions inherited from zserio::TypeInfoBase< ALLOC >
 TypeInfoBase (StringView schemaName, SchemaType schemaType, CppType cppType)
 
 ~TypeInfoBase () override=0
 
StringView getSchemaName () const override
 
SchemaType getSchemaType () const override
 
CppType getCppType () const override
 
uint8_t getBitSize () const override
 
Span< const BasicFieldInfo< ALLOC > > getFields () const override
 
Span< const BasicParameterInfo< ALLOC > > getParameters () const override
 
Span< const BasicFunctionInfo< ALLOC > > getFunctions () const override
 
StringView getSelector () const override
 
Span< const BasicCaseInfo< ALLOC > > getCases () const override
 
const IBasicTypeInfo< ALLOC > & getUnderlyingType () const override
 
Span< const StringViewgetUnderlyingTypeArguments () const override
 
Span< const ItemInfogetEnumItems () const override
 
Span< const ItemInfogetBitmaskValues () const override
 
Span< const BasicTableInfo< ALLOC > > getTables () const override
 
Span< const BasicMessageInfo< ALLOC > > getMessages () const override
 
Span< const BasicMethodInfo< ALLOC > > getMethods () const override
 
IBasicReflectablePtr< ALLOC > createInstance (const ALLOC &allocator) const override
 
IBasicReflectablePtr< ALLOC > createInstance () const override
 
 TypeInfoBase (const TypeInfoBase &)=delete
 
TypeInfoBaseoperator= (const TypeInfoBase &)=delete
 
 TypeInfoBase (const TypeInfoBase &&)=delete
 
TypeInfoBaseoperator= (const TypeInfoBase &&)=delete
 
- Public Member Functions inherited from zserio::IBasicTypeInfo< ALLOC >
virtual ~IBasicTypeInfo ()=default
 

Detailed Description

template<typename ALLOC>
class zserio::SqlTableTypeInfo< ALLOC >

Type information class for SQL table types.

Definition at line 685 of file TypeInfo.h.

Constructor & Destructor Documentation

◆ SqlTableTypeInfo()

template<typename ALLOC >
zserio::SqlTableTypeInfo< ALLOC >::SqlTableTypeInfo ( StringView  schemaName,
StringView  templateName,
Span< const BasicTemplateArgumentInfo< ALLOC >>  templateArguments,
Span< const BasicColumnInfo< ALLOC >>  columns,
StringView  sqlConstraint,
StringView  virtualTableUsing,
bool  isWithoutRowId 
)

Constructor.

Parameters
schemaNameThe schema name to be stored in type information.
templateNameThe full schema template name.
templateArgumentsThe sequence of type information for template arguments.
columnsThe sequence of type information for columns.
sqlConstraintThe SQL table constraint.
virtualTableUsingThe SQL virtual table using specification.
isWithoutRowIdtrue if SQL table is without row id table, otherwise false.

Definition at line 1637 of file TypeInfo.h.

Member Function Documentation

◆ getColumns()

template<typename ALLOC >
Span< const BasicColumnInfo< ALLOC > > zserio::SqlTableTypeInfo< ALLOC >::getColumns
overridevirtual

Gets the type information for SQL table columns.

Returns
Sequence of type information for SQL table columns.
Exceptions
CppRuntimeExceptionIf the zserio type is not SQL table type.

Reimplemented from zserio::TypeInfoBase< ALLOC >.

Definition at line 1650 of file TypeInfo.h.

◆ getSqlConstraint()

template<typename ALLOC >
StringView zserio::SqlTableTypeInfo< ALLOC >::getSqlConstraint
overridevirtual

Gets the SQL table constraint.

Returns
The SQL table constraint.
Exceptions
CppRuntimeExceptionIf the zserio type is not SQL table type.

Reimplemented from zserio::TypeInfoBase< ALLOC >.

Definition at line 1656 of file TypeInfo.h.

◆ getVirtualTableUsing()

template<typename ALLOC >
StringView zserio::SqlTableTypeInfo< ALLOC >::getVirtualTableUsing
overridevirtual

Gets the SQL virtual table using specification.

Returns
The SQL virtual table using specification.
Exceptions
CppRuntimeExceptionIf the zserio type is not SQL table type.

Reimplemented from zserio::TypeInfoBase< ALLOC >.

Definition at line 1662 of file TypeInfo.h.

◆ isWithoutRowId()

template<typename ALLOC >
bool zserio::SqlTableTypeInfo< ALLOC >::isWithoutRowId
overridevirtual

Checks if SQL table is without row id table.

Returns
true if SQL table is without row id table, otherwise false.
Exceptions
CppRuntimeExceptionIf the zserio type is not SQL table type.

Reimplemented from zserio::TypeInfoBase< ALLOC >.

Definition at line 1668 of file TypeInfo.h.


The documentation for this class was generated from the following file: