本文整理汇总了Java中org.ofbiz.entity.finder.ByAndFinder类的典型用法代码示例。如果您正苦于以下问题:Java ByAndFinder类的具体用法?Java ByAndFinder怎么用?Java ByAndFinder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ByAndFinder类属于org.ofbiz.entity.finder包,在下文中一共展示了ByAndFinder类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: EntityAnd
import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelForm modelForm, Element entityAndElement) {
super (modelForm, entityAndElement);
//don't want to default to the iterator, should be specified explicitly, not the default
// Document ownerDoc = entityAndElement.getOwnerDocument();
// boolean useCache = "true".equalsIgnoreCase(entityAndElement.getAttribute("use-cache"));
// if (!useCache) UtilXml.addChildElement(entityAndElement, "use-iterator", ownerDoc);
// make list-name optional
if (UtilValidate.isEmpty(entityAndElement.getAttribute("list")) && UtilValidate.isEmpty(entityAndElement.getAttribute("list-name"))) {
String lstNm = modelForm.getListName();
if (UtilValidate.isEmpty(lstNm)) {
lstNm = ModelForm.DEFAULT_FORM_RESULT_LIST_NAME;
}
entityAndElement.setAttribute("list", lstNm);
}
this.actualListName = entityAndElement.getAttribute("list");
if (UtilValidate.isEmpty(this.actualListName)) this.actualListName = entityAndElement.getAttribute("list-name");
finder = new ByAndFinder(entityAndElement);
}
示例2: EntityAnd
import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(Element element, SimpleMethod simpleMethod) throws MiniLangException {
super(element, simpleMethod);
if (MiniLangValidate.validationOn()) {
MiniLangValidate.attributeNames(simpleMethod, element, "entity-name", "use-cache", "filter-by-date", "list", "distinct", "delegator-name");
MiniLangValidate.requiredAttributes(simpleMethod, element, "entity-name", "list");
MiniLangValidate.expressionAttributes(simpleMethod, element, "list");
MiniLangValidate.childElements(simpleMethod, element, "field-map", "order-by", "limit-range", "limit-view", "use-iterator");
MiniLangValidate.requiredChildElements(simpleMethod, element, "field-map");
}
this.finder = new ByAndFinder(element);
}
示例3: EntityAnd
import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelNode.ModelSubNode modelSubNode, Element entityAndElement) {
super(modelSubNode, entityAndElement);
boolean useCache = "true".equalsIgnoreCase(entityAndElement.getAttribute("use-cache"));
Document ownerDoc = entityAndElement.getOwnerDocument();
if (!useCache)
UtilXml.addChildElement(entityAndElement, "use-iterator", ownerDoc);
String listName = UtilFormatOut.checkEmpty(entityAndElement.getAttribute("list"),
entityAndElement.getAttribute("list-name"));
if (UtilValidate.isEmpty(listName))
listName = "_LIST_ITERATOR_";
this.listName = listName;
entityAndElement.setAttribute("list-name", this.listName);
finder = new ByAndFinder(entityAndElement);
}
示例4: EntityAnd
import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelTree.ModelNode.ModelSubNode modelSubNode, Element entityAndElement) {
super (modelSubNode, entityAndElement);
boolean useCache = "true".equalsIgnoreCase(entityAndElement.getAttribute("use-cache"));
Document ownerDoc = entityAndElement.getOwnerDocument();
if (!useCache) UtilXml.addChildElement(entityAndElement, "use-iterator", ownerDoc);
this.listName = UtilFormatOut.checkEmpty(entityAndElement.getAttribute("list"), entityAndElement.getAttribute("list-name"));
if (UtilValidate.isEmpty(this.listName)) this.listName = "_LIST_ITERATOR_";
entityAndElement.setAttribute("list-name", this.listName);
finder = new ByAndFinder(entityAndElement);
}
示例5: getFinder
import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public ByAndFinder getFinder() {
return finder;
}
示例6: EntityAnd
import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelWidget modelWidget, Element entityAndElement) {
super(modelWidget, entityAndElement);
finder = new ByAndFinder(entityAndElement);
}
示例7: getFinder
import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public ByAndFinder getFinder() {
return this.finder;
}
示例8: EntityAnd
import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelScreen modelScreen, Element entityAndElement) {
super (modelScreen, entityAndElement);
finder = new ByAndFinder(entityAndElement);
}
示例9: EntityAnd
import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelMenu modelMenu, Element entityAndElement) {
super (modelMenu, entityAndElement);
finder = new ByAndFinder(entityAndElement);
}
示例10: EntityAnd
import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelWidget modelWidget, Element entityAndElement) {
super (modelWidget, entityAndElement);
finder = new ByAndFinder(entityAndElement);
}