Connection data pool

xiaoxiao2021-03-06  64

Class

PUBLIC CLASS interfaceFactory {

OutboundDbconnection OutboundDbconnection = NULL;

public OutBoundDbConnection getOutboundDbConnection () throws InstantiationException, IllegalAccessException, ClassNotFoundException {outboundDbConnection = (OutBoundDbConnection) Class .forName ( "com.isoftstone.struts.biz.dao.ConnData") .newInstance (); return outboundDbConnection;}

}

interface

Public interface outbounddbconnection {

Public connection dbconnection (String DBDRIVERS, STRING DBNAME); public connection dbconnection (); public connect dbconnection1 ();

transfer

InterfaceFactory InterfaceFactory = New InterfaceFactory ();

Con = interfaceFactory.getBoundDbConnection (). dbconnection ();

转载请注明原文地址:https://www.9cbs.com/read-119185.html

New Post(0)