public int getCount ( Class target ) { PersistenceBroker broker = ( ( HasBroker ) odmg . currentTransaction ( ) ) . getBroker ( ) ; int result = broker . getCount ( new QueryByCriteria ( target ) ) ; return result ; }
Return the count of all objects found for given class using the PB - api within ODMG - this may change in further versions .