jp.co.fujitsu.reffi.client.android.manager
クラス SQLiteOpenHelperManager

java.lang.Object
  上位を拡張 jp.co.fujitsu.reffi.client.android.manager.SQLiteOpenHelperManager

public class SQLiteOpenHelperManager
extends java.lang.Object

[概 要]

[詳 細]

[備 考]

[環 境] JDK 6.0 Update 11

Copyright (c) 2008-2009 FUJITSU Japan All rights reserved.

作成者:
Project Reffi

入れ子のクラスの概要
 class SQLiteOpenHelperManager.SQLiteOpenHelperImpl
           
 
フィールドの概要
static java.lang.String ON_MEMORY
           
 
メソッドの概要
 boolean close(SQLiteCore sqliteCore)
          [概 要] [詳 細] [備 考]
 boolean close(java.lang.String dbName)
           
 android.database.sqlite.SQLiteOpenHelper getHelper(java.lang.String dbName)
           
 java.util.Map<java.lang.String,SQLiteOpenHelperManager.SQLiteOpenHelperImpl> getHelpers()
          [概 要] [詳 細] [備 考]
static SQLiteOpenHelperManager getInstance()
          [概 要] シングルトンインスタンス取得メソッドです。
 boolean isRegist(java.lang.String dbName)
          [概 要] 引数timerIdを持つTimerProcessCoreが既に管理されているか調べます。
 android.database.sqlite.SQLiteOpenHelper open(SQLiteCore sqliteCore)
          [概 要] タイマー処理を開始します。
 void setHelpers(java.util.Map<java.lang.String,SQLiteOpenHelperManager.SQLiteOpenHelperImpl> helpers)
          [概 要] [詳 細] [備 考]
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

ON_MEMORY

public static final java.lang.String ON_MEMORY
関連項目:
定数フィールド値
メソッドの詳細

getHelpers

public java.util.Map<java.lang.String,SQLiteOpenHelperManager.SQLiteOpenHelperImpl> getHelpers()

[概 要]

[詳 細]

[備 考]

戻り値:
TimerProcessCoreを管理するマップオブジェクト

setHelpers

public void setHelpers(java.util.Map<java.lang.String,SQLiteOpenHelperManager.SQLiteOpenHelperImpl> helpers)

[概 要]

[詳 細]

[備 考]

パラメータ:
timers - TimerProcessCoreを管理するマップオブジェクト

getInstance

public static SQLiteOpenHelperManager getInstance()

[概 要]

シングルトンインスタンス取得メソッドです。

[詳 細]

TimerProcessCoreManagerのインスタンスはJVM内でユニークです。

[備 考]

戻り値:
マネージャのシングルトンインスタンス

isRegist

public boolean isRegist(java.lang.String dbName)

[概 要]

引数timerIdを持つTimerProcessCoreが既に管理されているか調べます。

[詳 細]

timers管理マップに引数timerIdがキーとして登録されているかどうか 調べて返却します。
trueの場合、タイマーをstartしているTimerProcessCoreが既に存在します。

[備 考]

パラメータ:
timerId - タイマーの識別子
戻り値:
true : 既登録、false : 未登録

getHelper

public android.database.sqlite.SQLiteOpenHelper getHelper(java.lang.String dbName)

open

public android.database.sqlite.SQLiteOpenHelper open(SQLiteCore sqliteCore)

[概 要]

タイマー処理を開始します。

[詳 細]

既に同名のtimerIdを持つtimerProcessCoreが存在する場合はfalseを返却します。
ScheduledThreadPoolExecuterに定期処理を委譲します。
Executerの実行にはTimerProcessCoreに設定されている情報が使用されます。
  1. 初期遅延:TimerProcessCore.getInitialDelay()
  2. 実行間隔:TimerProcessCore.getPeriod()
  3. 終了時間:TimerProcessCore.getStopLater()(0の場合は自動停止無し)
  4. 実行処理:TimerProcessCore.getIntervalAction() (nullの場合は成功イベント発行のみ)
タイマー処理を開始したTimerProcessCoreは、timerIdをキーにtimersフィールドで管理開始されます。

[備 考]

パラメータ:
timerProcessCore - 開始するタイマー情報を持った機能モデルインスタンス
戻り値:
true : タイマー開始成功、 false : 失敗

close

public boolean close(SQLiteCore sqliteCore)

[概 要]

[詳 細]

[備 考]

パラメータ:
timerId - タイマーの識別子
戻り値:
true : 停止成功、false : 停止失敗

close

public boolean close(java.lang.String dbName)


Copyright © 2008-2011. All Rights Reserved.