Class ParserAndLoaderTools


  • public class ParserAndLoaderTools
    extends Object
    Utilities to be used by parsers and loaders.
    Author:
    keshav
    • Field Detail

      • log

        protected static final org.apache.commons.logging.Log log
    • Constructor Detail

      • ParserAndLoaderTools

        public ParserAndLoaderTools()
    • Method Detail

      • loadDatabase

        public static void loadDatabase​(Persister loader,
                                        Collection<?> col)
        User the loader to persist the collection.
        Parameters:
        loader - loader
        col - collection
      • objectsPersistedUpdate

        public static void objectsPersistedUpdate​(int count,
                                                  int modulus,
                                                  String objectName)
      • debugMap

        public static void debugMap​(Map<?,​?> map)
        Print content of map if debug is set to true.
        Parameters:
        map - map