public class CloudscapeDAOFactory extends DAOFactory { - public class CloudscapeDAOFactory extends DAOFactory {
- public static final String DRIVER=
- "COM.cloudscape.core.RmiJdbcDriver";
- public static final String DBURL=
- "jdbc:cloudscape:rmi://localhost:1099/CoreJ2EEDB";
- // метод для создания соединения к Cloudscape
- public static Connection createConnection() {…….}
- public CustomerDAO getCustomerDAO() {
- return new CloudscapeCustomerDAO(); }
- public AccountDAO getAccountDAO() {
- return new CloudscapeAccountDAO(); }
- public OrderDAO getOrderDAO() {
- return new CloudscapeOrderDAO(); }
- ... }
Достарыңызбен бөлісу: |