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


Java IAConstraintVO.getTenant方法代码示例

本文整理汇总了Java中org.easyrec.model.core.transfer.IAConstraintVO.getTenant方法的典型用法代码示例。如果您正苦于以下问题:Java IAConstraintVO.getTenant方法的具体用法?Java IAConstraintVO.getTenant怎么用?Java IAConstraintVO.getTenant使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.easyrec.model.core.transfer.IAConstraintVO的用法示例。


在下文中一共展示了IAConstraintVO.getTenant方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: convertIAConstraintVO

import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public IAConstraintVO<Integer, String> convertIAConstraintVO(Integer tenantId,
                                                                     IAConstraintVO<Integer, Integer> constraint) {
    if (constraint == null) {
        return null;
    }

    return new IAConstraintVO<>(
            constraint.getNumberOfResults(), viewTypeDAO.getTypeById(tenantId, constraint.getViewType()),
            sourceTypeDAO.getTypeById(tenantId, constraint.getSourceType()), constraint.getSourceInfo(),
            constraint.getTenant(), constraint.isActive(), constraint.getSortAsc());
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:13,代码来源:TypeMappingServiceImpl.java

示例2: convertTypedIAConstraintVO

import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public IAConstraintVO<Integer, Integer> convertTypedIAConstraintVO(Integer tenantId,
                                                                            IAConstraintVO<Integer, String> typedConstraint) {
    if (typedConstraint == null) {
        return null;
    }

    return new IAConstraintVO<>(
            typedConstraint.getNumberOfResults(), viewTypeDAO.getIdOfType(tenantId, typedConstraint.getViewType()),
            sourceTypeDAO.getIdOfType(tenantId, typedConstraint.getSourceType()), typedConstraint.getSourceInfo(),
            typedConstraint.getTenant(), typedConstraint.isActive(), typedConstraint.getSortAsc());
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:13,代码来源:TypeMappingServiceImpl.java

示例3: getItemAssocs

import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public List<ItemAssocVO<Integer, String>> getItemAssocs(
        ItemVO<Integer, String> itemFrom, String assocType, ItemVO<Integer, String> itemTo,
        IAConstraintVO<Integer, String> constraints) {
    Integer tenantId = constraints.getTenant();
    if (tenantId == null) {
        throw new IllegalArgumentException("tenant not specified, can not retrieve type mapping without tenant");
    }
    return typeMappingService.convertListOfItemAssocVOs(tenantId, itemAssocDAO
            .getItemAssocs(typeMappingService.convertTypedItemVO(tenantId, itemFrom),
                    typeMappingService.getIdOfAssocType(tenantId, assocType),
                    typeMappingService.convertTypedItemVO(tenantId, itemTo),
                    typeMappingService.convertTypedIAConstraintVO(tenantId, constraints)));
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:15,代码来源:TypedItemAssocDAOMysqlImpl.java

示例4: getItemAssocsQBE

import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public List<ItemAssocVO<Integer, String>> getItemAssocsQBE(
        ItemVO<Integer, String> itemFrom, String assocType, ItemVO<Integer, String> itemTo,
        IAConstraintVO<Integer, String> constraints) {

    Integer tenantId = constraints.getTenant();
    if (tenantId == null) {
        throw new IllegalArgumentException("tenant not specified, can not retrieve type mapping without tenant");
    }
    return typeMappingService.convertListOfItemAssocVOs(tenantId, itemAssocDAO
            .getItemAssocsQBE(typeMappingService.convertTypedItemVO(tenantId, itemFrom),
                    typeMappingService.getIdOfAssocType(tenantId, assocType),
                    typeMappingService.convertTypedItemVO(tenantId, itemTo),
                    typeMappingService.convertTypedIAConstraintVO(tenantId, constraints)));
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:16,代码来源:TypedItemAssocDAOMysqlImpl.java

示例5: getItemsFrom

import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public List<AssociatedItemVO<Integer, String>> getItemsFrom(String itemFromType, String assocType,
                                                                             ItemVO<Integer, String> itemTo,
                                                                             IAConstraintVO<Integer, String> constraints) {
    Integer tenantId = constraints.getTenant();
    if (tenantId == null) {
        throw new IllegalArgumentException("tenant not specified, can not retrieve type mapping without tenant");
    }
    return typeMappingService.convertListOfAssociatedItemVOs(tenantId, itemAssocDAO
            .getItemsFrom(typeMappingService.getIdOfItemType(tenantId, itemFromType),
                    typeMappingService.getIdOfAssocType(tenantId, assocType),
                    typeMappingService.convertTypedItemVO(tenantId, itemTo),
                    typeMappingService.convertTypedIAConstraintVO(tenantId, constraints)));
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:15,代码来源:TypedItemAssocDAOMysqlImpl.java

示例6: getItemsTo

import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public List<AssociatedItemVO<Integer, String>> getItemsTo(
        ItemVO<Integer, String> itemFrom, String assocType, String itemToType,
        IAConstraintVO<Integer, String> constraints) {
    Integer tenantId = constraints.getTenant();
    if (tenantId == null) {
        throw new IllegalArgumentException("tenant not specified, can not retrieve type mapping without tenant");
    }
    return typeMappingService.convertListOfAssociatedItemVOs(tenantId, itemAssocDAO
            .getItemsTo(typeMappingService.convertTypedItemVO(tenantId, itemFrom),
                    typeMappingService.getIdOfAssocType(tenantId, assocType),
                    typeMappingService.getIdOfItemType(tenantId, itemToType),
                    typeMappingService.convertTypedIAConstraintVO(tenantId, constraints)));
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:15,代码来源:TypedItemAssocDAOMysqlImpl.java

示例7: convertIAConstraintVO

import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public IAConstraintVO<Integer, String> convertIAConstraintVO(Integer tenantId,
                                                                     IAConstraintVO<Integer, Integer> constraint) {
    if (constraint == null) {
        return null;
    }

    return new IAConstraintVO<Integer, String>(
            constraint.getNumberOfResults(), viewTypeDAO.getTypeById(tenantId, constraint.getViewType()),
            sourceTypeDAO.getTypeById(tenantId, constraint.getSourceType()), constraint.getSourceInfo(),
            constraint.getTenant(), constraint.isActive(), constraint.getSortAsc());
}
 
开发者ID:customertimes,项目名称:easyrec-PoC,代码行数:13,代码来源:TypeMappingServiceImpl.java

示例8: convertTypedIAConstraintVO

import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public IAConstraintVO<Integer, Integer> convertTypedIAConstraintVO(Integer tenantId,
                                                                            IAConstraintVO<Integer, String> typedConstraint) {
    if (typedConstraint == null) {
        return null;
    }

    return new IAConstraintVO<Integer, Integer>(
            typedConstraint.getNumberOfResults(), viewTypeDAO.getIdOfType(tenantId, typedConstraint.getViewType()),
            sourceTypeDAO.getIdOfType(tenantId, typedConstraint.getSourceType()), typedConstraint.getSourceInfo(),
            typedConstraint.getTenant(), typedConstraint.isActive(), typedConstraint.getSortAsc());
}
 
开发者ID:customertimes,项目名称:easyrec-PoC,代码行数:13,代码来源:TypeMappingServiceImpl.java


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