25 return create<DeleteObject>();
49 stream >> _primaryKey;
57 stream << _primaryKey;
63 _primaryKey = newPrimaryKey;
71 return _address.
table();
79 _address = newAddress;
The AccessToken class contains information duration of the access. Token are byte array for validatio...
The DbAddress class use to work with database addresses. Database Address it is structure with 2 valu...
const QString & table() const
table This method return table name.
const QVariant & id() const
id This method return id of object in table.
The DBObject class- main class for work with data base.
The DeleteObject class is request for update object with dbId;.
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
DBVariantMap variantMap() const override
variantMap This method should be create a DBVariantMap implementation of this database object.
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
QVariant primaryValue() const override
primaryValue This method is wraper of DBAddress::id. If This object do not contains a id value then r...
DBObject * createDBObject() const override
createDBObject This method should be create a object with the some type as the object called this met...
bool isCached() const override
isCached This method sholud be return status of object. If this method return true then this object c...
const AccessToken & getSignToken() const override
getSignToken This method should be return actually token of the user.
const DbAddress & address() const
address This method return address of the object that will be deleted.
bool fromSqlRecord(const QSqlRecord &q) override
fromSqlRecord This method should be initialize this object from the executed sqlRecord....
void setSignToken(const AccessToken &token) override
setSignToken This method sets a new token for object.
void setAddress(const DbAddress &newAddress)
setAddress This method sets new address for object that will be deleted from database.
QString table() const override
table This method should be return name of the database table that should be contains objects with th...
QString primaryKey() const override
primaryKey This method must be return the name of primary key of this object table....
void setPrimaryKey(const QString &newPrimaryKey)
setPrimaryKey This meethod sets new value of the primary key.
The Package struct. This is base structure for transporting data by network between QH nodes....
bool fromBytes(const QByteArray &data)
fromBytes This method provide initialization of object from byte array.
QByteArray toBytes() const
toBytes This method convert a current object to bytes array.
QMap< QString, DBVariant > DBVariantMap
DBVariantMap this is Map with key, and value with data type.
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...