Package org.apache.ofbiz.entity.util
Class EntityDataLoader
- java.lang.Object
-
- org.apache.ofbiz.entity.util.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
-
Constructor Summary
Constructors Constructor Description EntityDataLoader()
-
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)
-
-
-
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) 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) 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) 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
-
generateData
public static int generateData(Delegator delegator, java.util.List<java.lang.Object> errorMessages) throws GenericEntityException
- Throws:
GenericEntityException
-
-