connectionparams.java

来自「数据库连接包括连接池。很有用的资料」· Java 代码 · 共 50 行

JAVA
50
字号
/**
* @author  Rajat Gupta
* @version 1.0
*
* Development Environment        :  Oracle JDeveloper 10g
* Name of the Application        :  ConnectionParams.java
* Creation/Modification History  :
*
*    Rajat       25-Aug-2004      Created
*
* Overview of Application        : This class saves the Database Connection
*                                  Parameters. Update this file with your
*                                  database details.
**/

package oracle.otnsamples.connectioncache.attributes;

public class ConnectionParams {

  /**
   * Name of the machine where the database is running
   */
  public static String serverName = "insn104a.idc.oracle.com";

  /**
   * SID of the database
   */
  public static String sid = "orcl";

  /**
   * Port on which the database is listening
   */
  public static int portNo = 1521;

  /**
   * User Name of the schema. Please leave this as scott.
   */
  public static String userName = "scott";

  /**
   * Password of the scott schema
   */
  public static String password = "tiger";

  /**
   * Type of the driver to be used to connect to the database.
   */
  public static String driverType = "thin";
}

⌨️ 快捷键说明

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