⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mobileservice.java

📁 是我自己在做java训练的时候做的一个小项目
💻 JAVA
字号:
package com.magic.mobile.service;

import com.magic.mobile.dao.MobileDAO;
import com.magic.mobile.dao.impl.MobileDAOImpl;
import com.magic.mobile.vo.Mobile;

public class MobileService {
	private  static MobileService os= new MobileService();
    private MobileDAO od= null;
  //  private OperatorDAOImpl odi=null;
    private MobileService(){
    	
    }
    public void setOperator(MobileDAO od){
    	this.od=od;
    }
    
    public static MobileService getInstance(){
      os.setOperator(new MobileDAOImpl());
    	return os;
    }
	
	public boolean AddCode(String type, long startCode,long endCode) {
		return od.AddCode(type, startCode, endCode);
	}
	public boolean AddCodeFile(String FileUrl) {
		return od.AddCodeFile(FileUrl);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -