Function get_id

Synopsis

#include <include/bean_ptr.h>

sqlid_t get_id()

Description

No description yet.

Mentioned in

Source

Lines 131-136 in include/bean_ptr_impl.hpp. Line 71 in include/bean_ptr.h.

template<class C>
sqlid_t bean_ptr<C>::get_id() {
    if( !shared_res< real_bean<C> >::get_object() )
        return Database::NULL_ID;
    return shared_res< real_bean<C> >::get_object()->get_key().id;
}





Add Discussion as Guest

Log in