@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, saveAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countByFilter, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAll
protected IBaseEntityHandler<ArcEntity> getEntityHandler()
public List<Arc> getByParent(long parentId, String parentType)
IArcService
getByParent
在接口中 IArcService
parentId
- 父节点的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)
IArcService
getIncomingByToNode
在接口中 IArcService
parentId
- 包含当前节点的父对象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)
IArcService
getOutgoingArcs
在接口中 IArcService
parentId
- 包含当前节点的父对象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)
IArcService
getOutgoingByFromNode
在接口中 IArcService
parentId
- 父节点的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)
IArcService
getInComingArcs
在接口中 IArcService
parentId
- 父节点的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)
IArcService
getArcs
在接口中 IArcService
parentId
- 父节点的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)
IArcService
saveArc
在接口中 IArcService
parentId
- 父节点的id,如果想要获得route的arc,那么这个id就是route的idparentObjectType
- 父节点的类型,如果是要获得route的arc,那么这个值就是MesObjectType。Route。getName(),如果是productionline,那么这个值就应该是MesObjectType。ProductionLine。getName()arcList
- 要保存的arc清单public Arc getByNameAndParentType(String name, String parentType)
IArcService
getByNameAndParentType
在接口中 IArcService
name
- arc的名称parentType
- 父节点的类型,如果是要获得route的arc,那么这个值就是MesObjectType。Route。getName(),如果是productionline,那么这个值就应该是MesObjectType。ProductionLine。getName()public Arc getByNameAndParentIdAndParentType(String name, long parentId, String parentType)
IArcService
getByNameAndParentIdAndParentType
在接口中 IArcService
parentId
- 父节点的id,如果想要获得route的arc,那么这个id就是route的idparentType
- 父节点的类型,如果是要获得route的arc,那么这个值就是MesObjectType。Route。getName(),如果是productionline,那么这个值就应该是MesObjectType。ProductionLine。getName()public List<Arc> listByConnectable(long areaId, String name)
IArcService
listByConnectable
在接口中 IArcService
areaId
- 当前节点的id,如果当前节点是routestep,那么该id就是routestep的idname
- 当前节点的node type,如果当前节点是routestep,那么该值就是MesObjectType。RouteStep。getClazz()public List<Arc> listIncomingMainArcByToQueue(long routeId, long toQueueId)
IArcService
listIncomingMainArcByToQueue
在接口中 IArcService
routeId
- 父节点的id,如果想要获得route的arc,那么这个id就是route的idtoQueueId
- 当前节点的idpublic Arc getOutgoingMainArcByFromStep(long routeId, long stepId)
IArcService
getOutgoingMainArcByFromStep
在接口中 IArcService
routeId
- 父节点的id,如果想要获得route的arc,那么这个id就是route的idstepId
- 当前节点的idpublic Arc getByName(String name)
IArcService
getByName
在接口中 IArcService
name
- arc 的名称Copyright © 2019. All rights reserved.