Package ubic.gemma.core.loader.util
Class ParserAndLoaderTools
- java.lang.Object
-
- ubic.gemma.core.loader.util.ParserAndLoaderTools
-
public class ParserAndLoaderTools extends Object
Utilities to be used by parsers and loaders.- Author:
- keshav
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Constructor Description ParserAndLoaderTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
debugMap(Map<?,?> map)
Print content of map if debug is set to true.static Method
findParseLineMethod(Object obj, String fileName)
static void
loadDatabase(Persister loader, Collection<?> col)
User the loader to persist the collection.static void
objectsPersistedUpdate(int count, int modulus, String objectName)
-
-
-
Method Detail
-
loadDatabase
public static void loadDatabase(Persister loader, Collection<?> col)
User the loader to persist the collection.- Parameters:
loader
- loadercol
- collection
-
objectsPersistedUpdate
public static void objectsPersistedUpdate(int count, int modulus, String objectName)
-
findParseLineMethod
public static Method findParseLineMethod(Object obj, String fileName) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
debugMap
public static void debugMap(Map<?,?> map)
Print content of map if debug is set to true.- Parameters:
map
- map
-
-