iworkservice.java
来自「一个很好的开源项目管理系统源代码」· Java 代码 · 共 115 行
JAVA
115 行
package net.java.workeffort.service;import java.util.List;import net.java.workeffort.service.domain.PageResult;import net.java.workeffort.service.domain.Work;import net.java.workeffort.service.domain.WorkQuery;import net.java.workeffort.service.support.ChildRowExistsFkException;import net.java.workeffort.service.support.InvalidHierarchyException;import net.java.workeffort.service.support.NoParentRowFkException;import net.java.workeffort.service.support.OptimisticLockingException;import net.java.workeffort.service.support.UniqueConstraintException;/** * Work service interface. * <p> * Spring creates a proxy of this interface and the clients invoke methods on * the proxy instead of directly invoking <code>WorkService</code>. * Transaction management, security and other cross cutting concerns are added * using spring AOP. * @author Antony Joseph */public interface IWorkService { Work getWork(Long pk); PageResult getPageResultWork(WorkQuery query); void insertWork(Work work); void updateWork(Work work) throws OptimisticLockingException; void deleteWork(Work work) throws OptimisticLockingException, ChildRowExistsFkException; /** * @param pk the pk * @return work The work with deliverables populated. */ Work getWorkWithDeliverableProduced(Long pk); void saveWorkWithDeliverableProduced(Work work) throws OptimisticLockingException, UniqueConstraintException; /** * @param pk * @return work The work with fixed asset assignments populated. */ Work getWorkWithFixedAssetAssignment(Long pk); void saveWorkWithFixedAssetAssignment(Work work) throws OptimisticLockingException, UniqueConstraintException; /** * @param pk * @return work The work with inventory assignments populated. */ Work getWorkWithInventoryAssignment(Long pk); void saveWorkWithInventoryAssignment(Work work) throws OptimisticLockingException, UniqueConstraintException; /** * @param pk * @return work The work with products populated. */ Work getWorkWithProductProduced(Long pk); void saveWorkWithProductProduced(Work work) throws OptimisticLockingException, UniqueConstraintException; /** * @param pk The pk * @return work The work with requirements populated. */ Work getWorkWithRequirement(Long pk); void saveWorkWithRequirement(Work work) throws OptimisticLockingException, UniqueConstraintException; /** * @param pk * @return work The work with its associated works populated. */ Work getWorkWithAssociation(Long pk); void saveWorkWithAssociation(Work work) throws OptimisticLockingException, InvalidHierarchyException, UniqueConstraintException; /** * @param pk * @return Hierarchy of works */ List getListWorkAssociationHierarchy(Long pk); /** * @param pk * @return work The work with its parties populated. */ Work getWorkWithPartyAssignment(Long pk); void saveWorkWithPartyAssignment(Work work) throws OptimisticLockingException, UniqueConstraintException, NoParentRowFkException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?