{"id":40,"date":"2015-08-13T16:06:46","date_gmt":"2015-08-13T16:06:46","guid":{"rendered":"https:\/\/maximoconcepts.wordpress.com\/?p=40"},"modified":"2015-08-13T16:06:46","modified_gmt":"2015-08-13T16:06:46","slug":"all-about-count-method","status":"publish","type":"post","link":"https:\/\/maximoconcepts.com\/2015\/08\/13\/all-about-count-method\/","title":{"rendered":"All about Count Method"},"content":{"rendered":"
Although it is discouraged to use the count method of mboSet as it hits the database to get the count but at times it can be\u00a0very useful. There is an overloaded method\u00a0count(int countConstant)\u00a0<\/em><\/strong>that can be used to get the count of mbos that are in different state in the mboset.<\/p>\n Here is the explanation of the parameter –<\/p>\n The\u00a0count()<\/em> <\/strong>method without the parameter is\u00a0Same as Although it is discouraged to use the count method of mboSet as it hits the database to get the count but at times it can be\u00a0very useful. There is an overloaded method\u00a0count(int countConstant)\u00a0that can be used to get the count of mbos that are in different state in the mboset. Here is the explanation of … Continue reading All about Count Method<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13,5],"tags":[],"yoast_head":"\ncountConstant<\/code> – one of the constants from
psdi.mbo.MboConstants<\/code>. The list below shows each constant and describes the count returned for each.<\/p>\n
\n
COUNT_DATABASE<\/code>) plus newly added Mbos that have not yet been saved (
COUNT_ADDITIONS<\/code>).<\/li>\n
COUNT_DATABASE<\/code>) plus newly added Mbos that have not yet been saved (
COUNT_ADDITIONS<\/code>) minus Mbos marked for deletion that have not yet been saved (
COUNT_DELETED<\/code>).<\/li>\n<\/ul>\n
count(COUNT_EXISTING).<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"