📄 jdbccnnmgrconstants.java
字号:
package com.icbcsdc.ddlexp.pub.connectionpool;
/**
* @author zhangyc
* 连接池约束类,约定连接池使用中的各种出错信息
* */
public class JDBCCnnMgrConstants
{
/**
* JDBC连接对象为空的提示
* */
public static final String NULL_CONNECTION = "Null connection.";
/**
* JDBC连接对象已经关闭
* */
public static final String CLOSED_CONNECTION = "Can't close a closed connection";
/**
* 关闭JDBC连接对象时发生错误
* */
public static final String EXCEP_CLOSING_CONN = "Exception when closing a JDBCCnn.";
/**
* 执行DML语句时发生错误
* */
public static final String EXCEP_EXECUTING_UPDATE = "Exception when executing a udpate sql statment.";
/**
* 执行查询语句语句时发生错误
* */
public static final String EXCEP_EXECUTING_QUERY = "Exception when executing a query statment.";
/**
* 在设置连接的提交模式时发生错误
* */
public static final String EXCEP_SETING_COMMIT = "Exception when setting the auto commit mode.";
/**
* 在获取连接的提交模式时发生错误
* */
public static final String EXCEP_GETTING_COMMIT = "Exception when getting the auto commit mode.";
/**
* 事务提交时发生错误
* */
public static final String EXCEP_TRANS_COMMIT = "Exception when commiting the transaction.";
/**
* 事务回滚时发生错误
* */
public static final String EXCEP_TRANS_ROLLBACK = "Exception when rollback the transaction.";
/**
* 创建PoolSpec时poolName不能为空
* */
public static final String NULL_POOLNAME = "Pool name shouldn't be null when creating pool specification.";
/**
* 创建PoolSpec时driver不能空
* */
public static final String NULL_DRIVER = "Driver shouldn't be null when creating pool specification.";
/**
* 创建PoolSpec时url不能为空
* */
public static final String NULL_URL = "URL shouldn't be null when creating pool specification.";
/**
* 创建PoolSpec时user不能为空
* */
public static final String NULL_USER = "User shouldn't be null when creating pool specification.";
/**
* 创建PoolSpec时password不能为空
* */
public static final String NULL_PASSWORD = "Password shouldn't be null when creating pool specification.";
/**
* 创建JDBCPool时出错
* */
public static final String EXCEP_POOL_CREATING = "Exception when creating jdbc pool.";
/**
* 关闭JDBCPool时候出错 shutdown
* */
public static final String EXCEP_POOL_SHUTDOWN = "Exception when shutting down jdbc pool.";
/**
* 连接池达到上限
* */
public static final String REACH_UPPER_LIMIT = "Connection count reach upper limit.";
/**
* 连接池增加时出错
* */
public static final String EXCEP_POOL_INCREASE = "Exception when pool increasing.";
/**
* 获取空闲连接时出错
* */
public static final String EXCEP_GET_CONN = "Exception when getting free connection.";
/**
* 获取空闲连接时等待超时
* */
public static final String TIMEOUT_GET_CONN = "Wait timeout when getting free connection.";
/**
* 添加连接池时出错
* */
public static final String EXCEP_ADD_POOL = "Exception when adding pool.";
/**
* 连接池正在关闭
* */
public static final String EXCEP_SHUTTING = "JDBC pool {0} is shutting down.";
/**
* 连接池管理器关闭时候出错
* */
public static final String EXCEP_MANAGER_CLOSE="Exception when closiing pool manager.";
/**
* 创建连接池时连接规范为空
* */
public static final String NULL_SPEC="Pool specification shouldn't be null.";
/**
* 关闭连接池时指定的参数错误
* */
public static final String INVALID_PARAM_FOR_SHUTDOWN="Invalid parameter for calling shutdown function of pool.";
/**
* 同名的连接池已经存在
* */
public static final String SAME_POOL_EXIST="Pool with the same name has already exist.";
/**
* 连接池中已经没有空闲连接
* */
public static final String NO_FREE_CONN="There is no free connection in pool.";
/**
* url格式不正确
* */
public static final String INVALID_URL="url is invalid.";
/**
* platform类型不正确
* */
public final static String PLATFORM_TYPE="platform type is invalid.";
/**
* 目前不能在windows平台上运行备份恢复程序
* */
public final static String WINDOWS_NOT_SUPPORT="as far can't execute backup and restore opertion on windows";
/**
* backDir属性不能为空
* */
public final static String NULL_BACKDIR="backDir can't be null.";
/**
* osUser不能为空
* */
public final static String NULL_OSUSER="osUser can't be null.";
/**
* osPassword不能为空
* */
public final static String NULL_OSPASSWORD="osPassword can't be null.";
/**
* 同名的连接池已经达到上限
* public static final String REACH_UPPER_LIMIT="Pool size reach the upper limit.";
* */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -