Function manageBean

Synopsis

#include <include/Database.h>

template <class C>
bean_ptr< C > manageBean(C *ptr)

Description

No description yet.

Mentioned in

Source

Lines 66-73 in include/Database_tmpl_impl.hpp. Line 86 in include/Database.h.

template<class C>
inline bean_ptr<C> Database::manageBean(C* ptr)
{
    sqlid_t id=allocId( Database::getClassName<C>() );
    bean_key key(con,id);
    dbUpdate(key,*ptr);
    return Registry<C>::createBeanPtr(key,ptr);
}





Add Discussion as Guest

Log in