Sha256: bf7dd9eb23acf768f3788a8d09c7408a7f6eeafafd70079956bdc48e9ee9895e

Contents?: true

Size: 894 Bytes

Versions: 19

Compression:

Stored size: 894 Bytes

Contents

#pragma once

#include "common/RhoStd.h"
#include "common/RhoMutexLock.h"

namespace rho{
namespace db{
class CDBAdapter;

class CDBAttrManager
{
    common::CMutex m_mxSrcAttrs;
    HashtablePtr< int, Hashtable<String,int>* > m_mapSrcAttrs;

    HashtablePtr< int, Hashtable<String,int>* > m_mapBlobAttrs;

    static void loadAttrs(CDBAdapter& db, HashtablePtr< int, Hashtable<String,int>* >& mapAttrs, String strDBAttr);
public:
    
    void add( int nSrcID, const char* szAttr );
    void remove( int nSrcID, const char* szAttr );
    void save(CDBAdapter& db);
    void load(CDBAdapter& db);
    void reset(CDBAdapter& db);
#ifndef RHO_NO_RUBY
    unsigned long getAttrsBySrc(int nSrcID);
#endif //RHO_NO_RUBY
    boolean isBlobAttr(int nSrcID, const char* szAttr);
    boolean isOverwriteBlobFromServer(int nSrcID, const String& strAttr);
    void loadBlobAttrs(CDBAdapter& db);
};

}
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rhodes-2.2.6 platform/shared/db/DBAttrManager.h
rhodes-2.2.6.beta.1 platform/shared/db/DBAttrManager.h
rhodes-2.2.5 platform/shared/db/DBAttrManager.h
rhodes-2.2.5.beta.3 platform/shared/db/DBAttrManager.h
rhodes-2.2.5.beta.2 platform/shared/db/DBAttrManager.h
rhodes-2.2.5.beta.1 platform/shared/db/DBAttrManager.h
rhodes-2.2.4.beta.1 platform/shared/db/DBAttrManager.h
rhodes-2.2.3 platform/shared/db/DBAttrManager.h
rhodes-2.2.3.beta.1 platform/shared/db/DBAttrManager.h
rhodes-2.2.2 platform/shared/db/DBAttrManager.h
rhodes-2.2.2.beta.1 platform/shared/db/DBAttrManager.h
rhodes-2.2.1 platform/shared/db/DBAttrManager.h
rhodes-2.2.1.beta.2 platform/shared/db/DBAttrManager.h
rhodes-2.2.1.beta.1 platform/shared/db/DBAttrManager.h
rhodes-2.2.0 platform/shared/db/DBAttrManager.h
rhodes-2.2.0.beta.3 platform/shared/db/DBAttrManager.h
rhodes-2.2.0.beta.2 platform/shared/db/DBAttrManager.h
rhodes-2.2.0.beta.1 platform/shared/db/DBAttrManager.h
rhodes-2.1.0 platform/shared/db/DBAttrManager.h