当前位置: 首页>>代码示例>>Java>>正文


Java ByAndFinder类代码示例

本文整理汇总了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);
}
 
开发者ID:gildaslemoal,项目名称:elpi,代码行数:21,代码来源:ModelFormAction.java

示例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);
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:12,代码来源:EntityAnd.java

示例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);
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:15,代码来源:ModelTreeAction.java

示例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);
}
 
开发者ID:gildaslemoal,项目名称:elpi,代码行数:13,代码来源:ModelTreeAction.java

示例5: getFinder

import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public ByAndFinder getFinder() {
    return finder;
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:4,代码来源:ModelTreeAction.java

示例6: EntityAnd

import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelWidget modelWidget, Element entityAndElement) {
    super(modelWidget, entityAndElement);
    finder = new ByAndFinder(entityAndElement);
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:5,代码来源:AbstractModelAction.java

示例7: getFinder

import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public ByAndFinder getFinder() {
    return this.finder;
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:4,代码来源:AbstractModelAction.java

示例8: EntityAnd

import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelScreen modelScreen, Element entityAndElement) {
    super (modelScreen, entityAndElement);
    finder = new ByAndFinder(entityAndElement);
}
 
开发者ID:gildaslemoal,项目名称:elpi,代码行数:5,代码来源:ModelScreenAction.java

示例9: EntityAnd

import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelMenu modelMenu, Element entityAndElement) {
    super (modelMenu, entityAndElement);
    finder = new ByAndFinder(entityAndElement);
}
 
开发者ID:gildaslemoal,项目名称:elpi,代码行数:5,代码来源:ModelMenuAction.java

示例10: EntityAnd

import org.ofbiz.entity.finder.ByAndFinder; //导入依赖的package包/类
public EntityAnd(ModelWidget modelWidget, Element entityAndElement) {
    super (modelWidget, entityAndElement);
    finder = new ByAndFinder(entityAndElement);
}
 
开发者ID:gildaslemoal,项目名称:elpi,代码行数:5,代码来源:ModelWidgetAction.java


注:本文中的org.ofbiz.entity.finder.ByAndFinder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。