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

📄 test2.java

📁 创建中间企业对象层
💻 JAVA
字号:
/**
 ************************************************************
 * The VML Report
 *
 *
 *
 ************************************************************
 * @author duke
 * @version 1.2
 * @date 2004-8-10 14:37
 */
 
package com.kyle.eobject;

import java.io.*;
import java.sql.*;
import net.snapbug.util.dbtool.*;

public class Test2
{
	public Test2() throws Exception
	{

	}
	
	public String go() throws Exception
	{
		try
		{
			ConnectionManager.init( "D:/DatabasePool.conf" );
			ConnectionManager.debug( false );
            ConnectionPool pool = ConnectionManager.getConnectionPool( "testSQLServer" );

            Statement st = pool.createStatement();
            st.executeQuery("select * from loc");
            st.close();
            
            return "okk";
        }

        catch (Exception e)
        {
            System.out.println(e.getMessage());
            return "no okk";
        }
	}
	

	public static void main(String args[]) throws Exception
	{
		System.out.println("sss");
		Test2 t = new Test2();
		System.out.println(t.go());

	}
}

⌨️ 快捷键说明

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