Class LeagueIngestor


  • public class LeagueIngestor
    extends Object
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
    • Constructor Detail

      • LeagueIngestor

        public LeagueIngestor()
    • Method Detail

      • setInputStream

        public void setInputStream​(InputStream is)
      • setClubDAO

        public void setClubDAO​(ClubDAO clubDAO)
      • ingest

        public void ingest()
                    throws javax.xml.bind.JAXBException,
                           XMLStreamException,
                           IOException
        This method will ingest the input data by reading in external DTOs in from the parser, instantiating project business objects, and inserting into database. Note that the XML Schema is organized such that object references are fully resolved. Therefore, there is no specific need to process the addresses as they come in. They can be stored once we get the accounts they are related to.
        Throws:
        javax.xml.bind.JAXBException
        XMLStreamException
        IOException
      • checkSeason

        private void checkSeason​(Season season)
      • createVenue

        private void createVenue​(Club clubDTO)
        This method is called by the main ingest processing loop. The JAXB/StAX parser will already have the Venue populated with Address information.
        Parameters:
        clubDTO -