kDB: Knowledge DataBase
Loading...
Searching...
No Matches
kDB::Repository::DatabaseInterface::PostgreSQL::RDFTermBinaryMarshal Class Reference

#include <RDFTermBinaryMarshal.h>

Inheritance diagram for kDB::Repository::DatabaseInterface::PostgreSQL::RDFTermBinaryMarshal:
Collaboration diagram for kDB::Repository::DatabaseInterface::PostgreSQL::RDFTermBinaryMarshal:

Classes

class  AbstractSerialiser
 
struct  Private
 

Public Member Functions

 RDFTermBinaryMarshal (RDFValueBinaryMarshal *_marshal, const Connection &_connection)
 
cres_qresult< knowCore::ValuetoValue (const QByteArray &_source, const kDB::Repository::Connection &_connection) const override
 
cres_qresult< QByteArray > toByteArray (const knowCore::Value &_source, QString &_oidName, const kDB::Repository::Connection &_connection) const override
 
- Public Member Functions inherited from kDB::Repository::AbstractBinaryMarshal
QString oid () const
 
knowCore::Uri datatype () const
 
Modes modes () const
 

Static Public Member Functions

static bool registerSerialiser (const knowCore::Uri &_valueUri, AbstractSerialiser *_serialiser)
 

Additional Inherited Members

- Public Types inherited from kDB::Repository::AbstractBinaryMarshal
enum class  Mode { ToVariant = 0x1 , ToByteArray = 0x2 }
 
- Protected Member Functions inherited from kDB::Repository::AbstractBinaryMarshal
 AbstractBinaryMarshal (const QString &_oid, const knowCore::Uri &_datatype, const Modes &_modes)
 
- Static Protected Member Functions inherited from kDB::Repository::AbstractBinaryMarshal
template<typename _T_ >
static knowCore::Uri datatype ()
 

Detailed Description

This class handles the storage of RDF Literal in the database. It stores the dataype, the value (using RDFValueBinaryMarshal) and the lang.

Member Function Documentation

◆ toByteArray()

cres_qresult< QByteArray > RDFTermBinaryMarshal::toByteArray ( const knowCore::Value & _source,
QString & _oidName,
const kDB::Repository::Connection & _connection ) const
overridevirtual

Convert a knowCore::Value to a postgresql binary representation.

Parameters
_oidNameis filled with the postgresql OID name

Reimplemented from kDB::Repository::AbstractBinaryMarshal.

◆ toValue()

cres_qresult< knowCore::Value > RDFTermBinaryMarshal::toValue ( const QByteArray & _source,
const kDB::Repository::Connection & _connection ) const
overridevirtual

Convert from a postgresql binary representation to a knowCore::Value value.

Reimplemented from kDB::Repository::AbstractBinaryMarshal.


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