Class DBObject

class DBObject

Public Functions

DBObject(const std::string &name, const DBObjectType &objectAndPermissionType)
DBObject(const int32_t id, const DBObjectType &objectAndPermissionType)
DBObject(DBObjectKey key, AccessPrivileges privs, int32_t owner)
DBObject(const DBObject &object)
DBObject(const std::string &name, DBObjectType type, DBObjectKey key, AccessPrivileges privs, int32_t owner)
~DBObject()
void setObjectType(const DBObjectType &objectType)
void setName(std::string name)
std::string getName() const
DBObjectType getType() const
DBObjectKey getObjectKey() const
void setObjectKey(const DBObjectKey &objectKey)
const AccessPrivileges &getPrivileges() const
void setPrivileges(const AccessPrivileges &privs)
void resetPrivileges()
void copyPrivileges(const DBObject &object)
void updatePrivileges(const DBObject &object)
void grantPrivileges(const DBObject &object)
void revokePrivileges(const DBObject &object)
void setPermissionType(const DBObjectType &permissionType)
int32_t getOwner() const
void setOwner(int32_t userId)
std::vector<std::string> toString() const
void loadKey()
void loadKey(const Catalog_Namespace::Catalog &catalog)
bool valid() const

Private Members

std::string objectName_
DBObjectType objectType_
DBObjectKey objectKey_
AccessPrivileges objectPrivs_
int32_t ownerId_