コード例 #1
0
 public static BizDataBaseHandler getDefault()
 {
     if (defaultHandler == null)
     {
         defaultHandler = new BizDataBaseHandler();
     }
     return defaultHandler;
 }
コード例 #2
0
        public static BizDataBaseHandler getStdHandler(String connectString)
        {
            if (defaultHandler == null)
                throw new BizDataAccessException("BizDataBaseHandler must be created properly!");

            BizDataBaseHandler stdHandler = new BizDataBaseHandler();
            stdHandler.setConnectString(connectString);
            return stdHandler;
        }