类 DatabaseConfig

java.lang.Object
com.sh.javax.common.DatabaseConfig
所有已实现的接口:
Serializable

public class DatabaseConfig extends Object implements Serializable

Description: 数据库配置文件

Title:首亨软件 - CRM

另请参阅:
  • 构造器详细资料

    • DatabaseConfig

      public DatabaseConfig()
  • 方法详细资料

    • getTalkMessageAsMinPool

      public static void getTalkMessageAsMinPool(TalkMessage tm)
      多线程之间复制时使用
      参数:
      tm - TalkMessage
    • setByTalkMessage

      public static void setByTalkMessage(TalkMessage tm)
      由另外进程启动完成后初始化使用
      参数:
      tm - TalkMessage
    • loadConfig

      public static void loadConfig() throws IOException
      加载数据库连接配置文件
      抛出:
      IOException - IOException
    • getMainJndiName

      public static String getMainJndiName()
      获取JNDI名称
      返回:
      String
    • getMainJndiSlaveName

      public static String getMainJndiSlaveName()
    • getReportJndiName

      public static String getReportJndiName()
    • getExJndiName

      public static String getExJndiName()
    • getParam

      public static String getParam(String name)
    • getParam

      public static String getParam(String name, String defaultValue)
      获取配置参数
      参数:
      name - 参数值
      defaultValue - 默认值
      返回:
      String
    • isContainParam

      public static boolean isContainParam(String name)
    • getIntParam

      public static int getIntParam(String name, int defaultValue)
      获取整形参数
      参数:
      name - 参数值
      defaultValue - 默认值
      返回:
      int
    • getMainConnType

      public static String getMainConnType()
    • getReportConnType

      public static String getReportConnType()
    • getExConnType

      public static String getExConnType()
    • getConnType

      public static String getConnType(String sector, int flag)
      获取连接类型
      参数:
      sector - String
      flag - int
      返回:
      String
    • getMainPoolType

      public static int getMainPoolType()
    • getReportPoolType

      public static int getReportPoolType()
    • getExPoolType

      public static int getExPoolType()
    • isMainMasterSlave

      public static boolean isMainMasterSlave()
    • getPoolType

      public static int getPoolType(String sector, int type)
      获取连接池类型
      参数:
      sector - String
      type - int
      返回:
      int