// This file was generated by ODB, object-relational mapping (ORM) // compiler for C++. // #ifndef GOVERNMENT_ADDRESS_ODB_HXX #define GOVERNMENT_ADDRESS_ODB_HXX #include #if (ODB_VERSION != 20400UL) #error ODB runtime version mismatch #endif #include #include "GovernmentAddress.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace odb { // GovernmentAddress // template <> struct class_traits< ::models::GovernmentAddress > { static const class_kind kind = class_object; }; template <> class access::object_traits< ::models::GovernmentAddress > { public: typedef ::models::GovernmentAddress object_type; typedef ::models::GovernmentAddress* pointer_type; typedef odb::pointer_traits pointer_traits; static const bool polymorphic = false; typedef ::std::string id_type; static const bool auto_id = false; static const bool abstract = false; static id_type id (const object_type&); typedef no_op_pointer_cache_traits pointer_cache_traits; typedef no_op_reference_cache_traits reference_cache_traits; static void callback (database&, object_type&, callback_event); static void callback (database&, const object_type&, callback_event); }; } #include #include #include #include #include #include namespace odb { // GovernmentAddress // template struct query_columns< ::models::GovernmentAddress, id_pgsql, A > { // id // typedef pgsql::query_column< pgsql::value_traits< ::std::string, pgsql::id_string >::query_type, pgsql::id_string > id_type_; static const id_type_ id; // addressLabel // typedef pgsql::query_column< pgsql::value_traits< ::std::string, pgsql::id_string >::query_type, pgsql::id_string > addressLabel_type_; static const addressLabel_type_ addressLabel; // regionLookupKey // typedef pgsql::query_column< pgsql::value_traits< ::std::string, pgsql::id_string >::query_type, pgsql::id_string > regionLookupKey_type_; static const regionLookupKey_type_ regionLookupKey; }; template const typename query_columns< ::models::GovernmentAddress, id_pgsql, A >::id_type_ query_columns< ::models::GovernmentAddress, id_pgsql, A >:: id (A::table_name, "\"id\"", 0); template const typename query_columns< ::models::GovernmentAddress, id_pgsql, A >::addressLabel_type_ query_columns< ::models::GovernmentAddress, id_pgsql, A >:: addressLabel (A::table_name, "\"addressLabel\"", 0); template const typename query_columns< ::models::GovernmentAddress, id_pgsql, A >::regionLookupKey_type_ query_columns< ::models::GovernmentAddress, id_pgsql, A >:: regionLookupKey (A::table_name, "\"regionLookupKey\"", 0); template struct pointer_query_columns< ::models::GovernmentAddress, id_pgsql, A >: query_columns< ::models::GovernmentAddress, id_pgsql, A > { }; template <> class access::object_traits_impl< ::models::GovernmentAddress, id_pgsql >: public access::object_traits< ::models::GovernmentAddress > { public: struct id_image_type { details::buffer id_value; std::size_t id_size; bool id_null; std::size_t version; }; struct image_type { // id // details::buffer id_value; std::size_t id_size; bool id_null; // addressLabel // details::buffer addressLabel_value; std::size_t addressLabel_size; bool addressLabel_null; // regionLookupKey // details::buffer regionLookupKey_value; std::size_t regionLookupKey_size; bool regionLookupKey_null; std::size_t version; }; struct extra_statement_cache_type; using object_traits::id; static id_type id (const image_type&); static bool grow (image_type&, bool*); static void bind (pgsql::bind*, image_type&, pgsql::statement_kind); static void bind (pgsql::bind*, id_image_type&); static bool init (image_type&, const object_type&, pgsql::statement_kind); static void init (object_type&, const image_type&, database*); static void init (id_image_type&, const id_type&); typedef pgsql::object_statements statements_type; typedef pgsql::query_base query_base_type; static const std::size_t column_count = 3UL; static const std::size_t id_column_count = 1UL; static const std::size_t inverse_column_count = 0UL; static const std::size_t readonly_column_count = 0UL; static const std::size_t managed_optimistic_column_count = 0UL; static const std::size_t separate_load_column_count = 0UL; static const std::size_t separate_update_column_count = 0UL; static const bool versioned = false; static const char persist_statement[]; static const char find_statement[]; static const char update_statement[]; static const char erase_statement[]; static const char query_statement[]; static const char erase_query_statement[]; static const char table_name[]; static void persist (database&, const object_type&); static pointer_type find (database&, const id_type&); static bool find (database&, const id_type&, object_type&); static bool reload (database&, object_type&); static void update (database&, const object_type&); static void erase (database&, const id_type&); static void erase (database&, const object_type&); static result query (database&, const query_base_type&); static unsigned long long erase_query (database&, const query_base_type&); static const char persist_statement_name[]; static const char find_statement_name[]; static const char update_statement_name[]; static const char erase_statement_name[]; static const char query_statement_name[]; static const char erase_query_statement_name[]; static const unsigned int persist_statement_types[]; static const unsigned int find_statement_types[]; static const unsigned int update_statement_types[]; public: static bool find_ (statements_type&, const id_type*); static void load_ (statements_type&, object_type&, bool reload); }; template <> class access::object_traits_impl< ::models::GovernmentAddress, id_common >: public access::object_traits_impl< ::models::GovernmentAddress, id_pgsql > { }; // GovernmentAddress // } #include "GovernmentAddress-odb.ixx" #include #endif // GOVERNMENT_ADDRESS_ODB_HXX