Class EntityDataLoader


  • public class EntityDataLoader
    extends java.lang.Object
    Some utility routines for loading seed data.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int generateData​(Delegator delegator, java.util.List<java.lang.Object> errorMessages)  
      static java.lang.String getPathsString​(java.lang.String helperName)  
      static java.util.List<java.net.URL> getUrlByComponentList​(java.lang.String helperName, java.util.List<java.lang.String> components)  
      static java.util.List<java.net.URL> getUrlByComponentList​(java.lang.String helperName, java.util.List<java.lang.String> components, java.util.List<java.lang.String> readerNames)  
      static java.util.List<java.net.URL> getUrlList​(java.lang.String helperName)  
      static java.util.List<java.net.URL> getUrlList​(java.lang.String helperName, java.lang.String componentName)  
      static <E> java.util.List<java.net.URL> getUrlList​(java.lang.String helperName, java.lang.String componentName, java.util.List<E> readerNames)  
      static <E> java.util.List<java.net.URL> getUrlList​(java.lang.String helperName, java.util.List<E> readerNames)  
      static int loadData​(java.net.URL dataUrl, java.lang.String helperName, Delegator delegator, java.util.List<java.lang.Object> errorMessages)  
      static int loadData​(java.net.URL dataUrl, java.lang.String helperName, Delegator delegator, java.util.List<java.lang.Object> errorMessages, int txTimeout)  
      static int loadData​(java.net.URL dataUrl, java.lang.String helperName, Delegator delegator, java.util.List<java.lang.Object> errorMessages, int txTimeout, boolean dummyFks, boolean maintainTxs, boolean tryInsert)  
      static int loadData​(java.net.URL dataUrl, java.lang.String helperName, Delegator delegator, java.util.List<java.lang.Object> errorMessages, int txTimeout, boolean dummyFks, boolean maintainTxs, boolean tryInsert, boolean continueOnFail)  
      • Methods inherited from class java.lang.Object

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

      • module

        public static final java.lang.String module
    • Constructor Detail

      • EntityDataLoader

        public EntityDataLoader()
    • Method Detail

      • getPathsString

        public static java.lang.String getPathsString​(java.lang.String helperName)
      • getUrlList

        public static java.util.List<java.net.URL> getUrlList​(java.lang.String helperName)
      • getUrlList

        public static java.util.List<java.net.URL> getUrlList​(java.lang.String helperName,
                                                              java.lang.String componentName)
      • getUrlList

        public static <E> java.util.List<java.net.URL> getUrlList​(java.lang.String helperName,
                                                                  java.util.List<E> readerNames)
      • getUrlList

        public static <E> java.util.List<java.net.URL> getUrlList​(java.lang.String helperName,
                                                                  java.lang.String componentName,
                                                                  java.util.List<E> readerNames)
      • getUrlByComponentList

        public static java.util.List<java.net.URL> getUrlByComponentList​(java.lang.String helperName,
                                                                         java.util.List<java.lang.String> components,
                                                                         java.util.List<java.lang.String> readerNames)
      • getUrlByComponentList

        public static java.util.List<java.net.URL> getUrlByComponentList​(java.lang.String helperName,
                                                                         java.util.List<java.lang.String> components)
      • loadData

        public static int loadData​(java.net.URL dataUrl,
                                   java.lang.String helperName,
                                   Delegator delegator,
                                   java.util.List<java.lang.Object> errorMessages,
                                   int txTimeout,
                                   boolean dummyFks,
                                   boolean maintainTxs,
                                   boolean tryInsert)
                            throws GenericEntityException
        Throws:
        GenericEntityException
      • loadData

        public static int loadData​(java.net.URL dataUrl,
                                   java.lang.String helperName,
                                   Delegator delegator,
                                   java.util.List<java.lang.Object> errorMessages,
                                   int txTimeout,
                                   boolean dummyFks,
                                   boolean maintainTxs,
                                   boolean tryInsert,
                                   boolean continueOnFail)
                            throws GenericEntityException
        Throws:
        GenericEntityException