Class BrokerRepo

  • All Implemented Interfaces:
    DomainRepo

    @Service
    public class BrokerRepo
    extends Object
    implements DomainRepo
    Repository for Brokers, including competitors and other market participants.
    Author:
    John Collins
    • Constructor Detail

      • BrokerRepo

        public BrokerRepo()
    • Method Detail

      • add

        public void add​(Broker broker)
      • findByUsername

        public Broker findByUsername​(String username)
      • findOrCreateByUsername

        public Broker findOrCreateByUsername​(String username)
      • findById

        public Broker findById​(long id)
      • findRetailBrokerNames

        public List<String> findRetailBrokerNames()
      • findRetailBrokers

        public List<Broker> findRetailBrokers()
      • findWholesaleBrokers

        public List<Broker> findWholesaleBrokers()
      • findDisabledBrokers

        public List<Broker> findDisabledBrokers()
      • recycle

        public void recycle()
        Description copied from interface: DomainRepo
        Implementations must clear out the repository in preparation for a new simulation.
        Specified by:
        recycle in interface DomainRepo
      • getInstance

        public static BrokerRepo getInstance()