@Service @Primary public class ArcService extends AbstractBaseDomainObjectService<Arc,ArcEntity> implements IArcService
domainObjectClass, entityClass| 构造器和说明 |
|---|
ArcService() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Arc> |
getArcs(long parentId,
String parentType)
根据父对象的id和父对象的类型,获得所有父对象所包含的arc
|
Arc |
getByName(String name)
根据arc的名字获得Arc信息
|
Arc |
getByNameAndParentIdAndParentType(String name,
long parentId,
String parentType)
根据arc的名称和父对象的信息获得arc
|
Arc |
getByNameAndParentType(String name,
String parentType)
根据arc 的名字和父对象类型,获得arc
|
List<Arc> |
getByParent(long parentId,
String parentType)
根据父节点类型和父节点id,获得所有该对象所拥有的arc信息
|
protected IBaseEntityHandler<ArcEntity> |
getEntityHandler() |
List<Arc> |
getInComingArcs(long parentId,
String parentType,
long connectableId,
String name)
根据当前的节点,获得上游的arc
|
List<? extends Connectable<?>> |
getIncomingByToNode(long parentId,
String parentType,
long connectableId,
String name)
根据当前的节点,获得上游对象的节点
|
List<Arc> |
getOutgoingArcs(long parentId,
String parentType,
long connectableId,
String name)
根据当前的节点,获得下游的arc
|
List<? extends Connectable<?>> |
getOutgoingByFromNode(long parentId,
String parentType,
long connectableId,
String name)
根据当前的节点,获得下游的节点对象
|
Arc |
getOutgoingMainArcByFromStep(long routeId,
long stepId)
通过父对象的id和当前节点的id,获得下游的arc
|
List<Arc> |
listByConnectable(long areaId,
String name)
根据节点的id和类型信息,获得该对象所有的arc
|
List<Arc> |
listIncomingMainArcByToQueue(long routeId,
long toQueueId)
通过父对象的id和当前节点的id,获得上游的arc
|
void |
saveArc(long parentId,
String parentObjectType,
List<Arc> arcList)
保存父对象的arc
|
countByFilter, createClientObject, createClientObject, createClientObjects, createClientObjects, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, getInternalEntities, getInternalEntity, getObjectType, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountByFilter, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAllprotected IBaseEntityHandler<ArcEntity> getEntityHandler()
public List<Arc> getByParent(long parentId, String parentType)
IArcServicegetByParent 在接口中 IArcServiceparentId - 父节点的id,如果想要获得route的arc,那么这个id就是route的idparentType - 父节点的类型,如果是要获得route的arc,那么这个值就是MesObjectType。Route。getName(),如果是productionline,那么这个值就应该是MesObjectType。ProductionLine。getName()public List<? extends Connectable<?>> getIncomingByToNode(long parentId, String parentType, long connectableId, String name)
IArcServicegetIncomingByToNode 在接口中 IArcServiceparentId - 包含当前节点的父对象parentType - 父对象的类型connectableId - 当前节点的id,如果当前节点是routestep,那么该id就是routestep的idname - 当前节点的node type,如果当前节点是routestep,那么该值就是MesObjectType。RouteStep。getClazz()public List<Arc> getOutgoingArcs(long parentId, String parentType, long connectableId, String name)
IArcServicegetOutgoingArcs 在接口中 IArcServiceparentId - 包含当前节点的父对象parentType - 父对象的类型connectableId - 当前节点的id,如果当前节点是routestep,那么该id就是routestep的idname - 当前节点的node type,如果当前节点是routestep,那么该值就是MesObjectType。RouteStep。getClazz()public List<? extends Connectable<?>> getOutgoingByFromNode(long parentId, String parentType, long connectableId, String name)
IArcServicegetOutgoingByFromNode 在接口中 IArcServiceparentId - 父节点的id,如果想要获得route的arc,那么这个id就是route的idparentType - 父节点的类型,如果是要获得route的arc,那么这个值就是MesObjectType。Route。getName(),如果是productionline,那么这个值就应该是MesObjectType。ProductionLine。getName()connectableId - 当前节点的id,如果当前节点是routestep,那么该id就是routestep的idname - 当前节点的node type,如果当前节点是routestep,那么该值就是MesObjectType。RouteStep。getClazz()public List<Arc> getInComingArcs(long parentId, String parentType, long connectableId, String name)
IArcServicegetInComingArcs 在接口中 IArcServiceparentId - 父节点的id,如果想要获得route的arc,那么这个id就是route的idparentType - 父节点的类型,如果是要获得route的arc,那么这个值就是MesObjectType。Route。getName(),如果是productionline,那么这个值就应该是MesObjectType。ProductionLine。getName()connectableId - 当前节点的id,如果当前节点是routestep,那么该id就是routestep的idname - 当前节点的node type,如果当前节点是routestep,那么该值就是MesObjectType。RouteStep。getClazz()public List<Arc> getArcs(long parentId, String parentType)
IArcServicegetArcs 在接口中 IArcServiceparentId - 父节点的id,如果想要获得route的arc,那么这个id就是route的idparentType - 父节点的类型,如果是要获得route的arc,那么这个值就是MesObjectType。Route。getName(),如果是productionline,那么这个值就应该是MesObjectType。ProductionLine。getName()public void saveArc(long parentId,
String parentObjectType,
List<Arc> arcList)
IArcServicesaveArc 在接口中 IArcServiceparentId - 父节点的id,如果想要获得route的arc,那么这个id就是route的idparentObjectType - 父节点的类型,如果是要获得route的arc,那么这个值就是MesObjectType。Route。getName(),如果是productionline,那么这个值就应该是MesObjectType。ProductionLine。getName()arcList - 要保存的arc清单public Arc getByNameAndParentType(String name, String parentType)
IArcServicegetByNameAndParentType 在接口中 IArcServicename - arc的名称parentType - 父节点的类型,如果是要获得route的arc,那么这个值就是MesObjectType。Route。getName(),如果是productionline,那么这个值就应该是MesObjectType。ProductionLine。getName()public Arc getByNameAndParentIdAndParentType(String name, long parentId, String parentType)
IArcServicegetByNameAndParentIdAndParentType 在接口中 IArcServiceparentId - 父节点的id,如果想要获得route的arc,那么这个id就是route的idparentType - 父节点的类型,如果是要获得route的arc,那么这个值就是MesObjectType。Route。getName(),如果是productionline,那么这个值就应该是MesObjectType。ProductionLine。getName()public List<Arc> listByConnectable(long areaId, String name)
IArcServicelistByConnectable 在接口中 IArcServiceareaId - 当前节点的id,如果当前节点是routestep,那么该id就是routestep的idname - 当前节点的node type,如果当前节点是routestep,那么该值就是MesObjectType。RouteStep。getClazz()public List<Arc> listIncomingMainArcByToQueue(long routeId, long toQueueId)
IArcServicelistIncomingMainArcByToQueue 在接口中 IArcServicerouteId - 父节点的id,如果想要获得route的arc,那么这个id就是route的idtoQueueId - 当前节点的idpublic Arc getOutgoingMainArcByFromStep(long routeId, long stepId)
IArcServicegetOutgoingMainArcByFromStep 在接口中 IArcServicerouteId - 父节点的id,如果想要获得route的arc,那么这个id就是route的idstepId - 当前节点的idpublic Arc getByName(String name)
IArcServicegetByName 在接口中 IArcServicename - arc 的名称Copyright © 2019. All rights reserved.