|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
windows系统样,他们做了什么事或者留了一些后门程序,谁都不知道,二,java开发是跨平台,任何系统上都可以运行,对于保密型系统和大型系统开发这是必要的server|sqlserverpackagecom.sourceware.test;
/*******************************************************************************
*Copyright(c)2000,2005ZhongKeCorporationandothers.
*Allrightsreserved.Thisprogramandtheaccompanyingmaterials
*aremadeavailableunderthetermsoftheCommonPublicLicensev1.0
*whichaccompaniesthisdistribution,andisavailableat
*http://www.source-ware.com/
*
*Contributors:
*ZhongKeCorporation-initialAPIandimplementation
*******************************************************************************/
importjava.io.InputStream;
importjava.sql.Connection;
importorg.dbunit.DatabaseTestCase;
importorg.dbunit.database.DatabaseConfig;
importorg.dbunit.database.DatabaseConnection;
importorg.dbunit.database.IDatabaseConnection;
importorg.dbunit.dataset.IDataSet;
importorg.dbunit.dataset.xml.FlatXmlDataSet;
importorg.dbunit.operation.DatabaseOperation;
importcom.sourceware.sms.platform.dao.SMSDAO;
importorg.springframework.context.support.ClassPathXmlApplicationContext;
importorg.springframework.context.ApplicationContext;
importjavax.sql.DataSource;
/**
*
*<p>题目:动静服务</p>
*
*<p>形貌:动静服务平台</p>
*
*<p>版权:宁波中科信息家产无限公司Copyright(c)2004</p>
*
*<p>公司:宁波中科信息家产无限公司</p>
*
*@author吴锋彬(woowind@sina.com)
*@version1.0
*/
publicclassBaseDatabaseTestCase
extendsDatabaseTestCase{
staticApplicationContextappContext;
privatefinalstaticStringbatchID=
"http://www.dbunit.org/features/batchedStatements";
staticDataSourceds;
static{
appContext=
newClassPathXmlApplicationContext("xml/sms-platform-context.xml");
ds=(DataSource)appContext.getBean("dataSource");
}
protectedvoidsetUp()throwsException{
super.setUp();
}
protectedvoidtearDown()throwsException{
super.tearDown();
this.getConnection().close();
}
/*(non-Javadoc)
*@seeorg.dbunit.DatabaseTestCase#getConnection()
*/
protectedIDatabaseConnectiongetConnection()throwsException{
IDatabaseConnectioniDataBaseConnection=newDatabaseConnection(ds.
getConnection());
DatabaseConfigconfig=iDataBaseConnection.getConfig();
//EnableBatchedstatements
if(!config.getFeature(batchID)){
config.setFeature(batchID,true);
}
returniDataBaseConnection;
}
/*(non-Javadoc)
*@seeorg.dbunit.DatabaseTestCase#getDataSet()
*/
protectedIDataSetgetDataSet()throwsException{
InputStreamis=this.getClass().getClassLoader().getResourceAsStream(
"dataset/fmsDomain.xml");
returnnewFlatXmlDataSet(is);
}
protectedDatabaseOperationgetSetUpOperation()throwsException{
returnorg.dbunit.ext.mssql.InsertIdentityOperation.INSERT;
}
protectedDatabaseOperationgetTearDownOperation()throwsException{
returnorg.dbunit.ext.mssql.InsertIdentityOperation.CLEAN_INSERT;
}
}
如果你学习的是市场营销,是销售,也许参加大课堂的学习会更合适,因为你的工作能力中有个基础就是搭建自己的人脉, |
|