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

📄 log.java

📁 j2me实现的移动警务的大概框架
💻 JAVA
字号:
package PoliceSearch.Com;

/**
 * <p>Title: 公安查询系统</p>
 * <p>Description: 章桂华</p>
 * <p>Copyright: Copyright (c) 2006</p>
 * <p>Company: otheno</p>
 * @author 章桂华等
 * @version 1.0
 */

public class Log {
  /** 是否显示异常的开关 */
  public static boolean displayOnOff = true;

  /** <p>功能是:创建对象Log</p>   */
  public Log() {
  }

  /** <p>功能是:输出整数(int)提示信息</p> */
  public static void println(int tmpMsg) {
    if (displayOnOff) {
      System.out.println("提示:" + tmpMsg);
    }
  }

  /** <p>功能是:输出提示字符串(String)信息</p> */
  public static void println(String tmpMsg) {
    if (displayOnOff) {
      System.out.println("提示:" + tmpMsg);
    }
  }

  /** <p>功能是:输出字符(char)提示信息</p>  */
  public static void println(char tmpMsg) {
    if (displayOnOff) {
      System.out.println("提示:" + tmpMsg);
    }
  }

  /** <p>功能是:输出布尔(boolean)提示信息</p>  */
  public static void println(boolean tmpMsg) {
    if (displayOnOff) {
      System.out.println("提示:" + tmpMsg);
    }
  }

  /**<p>功能是:输出字符数组(char[])提示信息</p>  */
  public static void println(char[] tmpMsg) {
    if (displayOnOff) {
      System.out.println("提示:" + tmpMsg);
    }
  }

  /**
   * <p>功能是:输出异常提示信息</p>
   * @param  String:字符串信息
   */
  public static void except(String tmpMsg) {
    if (displayOnOff) {
      System.out.println("异常:" + tmpMsg);
    }
  }

  /**
   * <p>功能是:输出错误提示信息</p>
   * @param  String:字符串信息
   */
  public static void error(String tmpMsg) {
    if (displayOnOff) {
      System.out.println("错误:" + tmpMsg);
    }
  }

  /**
   * <p>功能是:生成LOG日志文件信息</p>
   * @param  String:字符串信息
   */
  public static void log(String tmpMsg) {
    if (displayOnOff) {
      System.out.println("日志:" + tmpMsg);
    }
  }

  /**
   * <p>功能是:完成手机一端的数据与数据中心同步,当由于异常原因导致中心部分没有收到下面的是否中奖信息时,将自动将这些备份数据发送到数据中心注意,排他性</p>
   * @param strOprGameCode-表示游戏代码,注意唯一性
   * @param strIsWinGame-是否赢了游戏
   * @param strWinCashValue-表示赢了游戏时得到的奖金金额
   */
  public synchronized static void addOprLabel(String strOprGameCode,
                                              String strIsWinGame,
                                              String strWinCashValue) {
    /**对手机端的数据库操作,添加或删除标志*/
    /**在发送信息处理的线程中用,注意排他性质!*/
  }

  /**
   * <p>功能是:完成手机一端的数据与数据中心同步,当由于异常原因导致中心部分没有收到下面的是否中奖信息时,将自动将这些备份数据发送到数据中心,注意排他性</p>
   * @param strOprGameCode-表示游戏操作代码,注意唯一性
   */
  public synchronized static void delOprLabel(String strOprGameCode) {
    /**对手机端的数据库操作,添加或删除标志*/
    /**在接收返回信息处理的通信线程中用,注意排他性质!*/
  }

}

⌨️ 快捷键说明

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