package com.bjpowernode.spring.dao;
public interface UserDao {
public void addUser(String username, String password);
}
package com.bjpowernode.spring.dao;
public class UserDao4MySqlImpl implements UserDao {
public void addUser(String username, String password) {
System.out.println("UserDao4MySqlImpl.addUser()");
}
}
package com.bjpowernode.spring.dao;
public class UserDao4OracleImpl implements UserDao {
public void addUser(String username, String password) {
System.out.println("UserDao4OracleImpl.addUser()");
}
}