quarks.samples.connectors.jdbc

Class PersonData

  • java.lang.Object
    • quarks.samples.connectors.jdbc.PersonData


  • public class PersonData
    extends java.lang.Object
    Utilities for loading the sample's person data.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PersonData() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.util.List<Person> loadPersonData(java.util.Properties props)
      Load the person data from the path specified by the "persondata.path" property.
      static java.util.List<PersonId> toPersonIds(java.util.List<Person> persons)
      Convert a List<Person> to a List<PersonId>
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PersonData

        public PersonData()
    • Method Detail

      • loadPersonData

        public static java.util.List<Person> loadPersonData(java.util.Properties props)
                                                     throws java.lang.Exception
        Load the person data from the path specified by the "persondata.path" property.
        Parameters:
        props - configuration properties
        Returns:
        the loaded person data
        Throws:
        java.lang.Exception
      • toPersonIds

        public static java.util.List<PersonId> toPersonIds(java.util.List<Person> persons)
        Convert a List<Person> to a List<PersonId>
        Parameters:
        persons - the person list
        Returns:
        the person id list

Copyright IBM 2015,2016 - 2f6ad0e-20160307-0902