Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
LeavesServiceImpl.java
Package: yf_article.rar [view]
Upload User: yunfeng252
Upload Date: 2022-07-23
Package Size: 12403k
Code Size: 1k
Category:
Jsp/Servlet
Development Platform:
Java
- package org.yufeng.service.serviceImpl;
- import java.util.List;
- import org.yufeng.dao.ILeavesDao;
- import org.yufeng.domains.Leaves;
- import org.yufeng.service.ILeavesServiceDao;
- import org.yufeng.utils.AppContext;
- public class LeavesServiceImpl implements ILeavesServiceDao {
- ILeavesDao leavesDao;
- public ILeavesDao getLeavesDao() {
- return leavesDao;
- }
- public void setLeavesDao(ILeavesDao leavesDao) {
- this.leavesDao = leavesDao;
- }
- public boolean addLeaves(Leaves leaves) {
- return this.getLeavesDao().addLeaves(leaves);
- }
- public List browseALeaves() {
- return this.getLeavesDao().browseALeaves();
- }
- public boolean delLeaves(Leaves leaves) {
- return this.getLeavesDao().delLeaves(leaves);
- }
- public Leaves loadLeaves(Integer id) {
- return this.getLeavesDao().loadLeaves(id);
- }
- public boolean updateLeaves(Leaves leaves) {
- return this.getLeavesDao().updateLeaves(leaves);
- }
- public static void main(String[] args) {
- ILeavesServiceDao test = (ILeavesServiceDao) AppContext.getInstance()
- .getAppContext().getBean("leavesTarget");
- System.out.println(test);
- try {
- Leaves leaves = new Leaves();
- leaves.setLe_id(12);
- boolean flag = test.delLeaves(leaves);
- // System.out.println("size is "+size);
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }