|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.ac.naka.ec.db.DatabaseConnector
public class DatabaseConnector
データベースの管理クラス。
フィールドの概要 | |
---|---|
static java.lang.String |
catalog
|
static java.lang.String |
data_table
|
static java.lang.String |
db_location
|
static java.lang.String |
driver_name
|
static java.lang.String |
entity_table
|
static java.lang.String |
location_table
|
static int |
MAX_COLUMN_REQUEST
|
static java.lang.String |
pass
|
static java.lang.String |
top_table
|
static java.lang.String |
type_table
|
static java.lang.String |
user
|
メソッドの概要 | |
---|---|
boolean |
createNewTable()
新しいテーブルの作成 |
jp.ac.naka.ec.db.EventData[] |
getData(java.lang.String uri,
int num)
Retireve specified data of selected uri |
static DatabaseConnector |
getInstance()
Retrieve an Instance. |
boolean |
hasTables()
テーブルが作られているか? |
static void |
initialize()
Initiazie JDBC parameter. |
boolean |
store(DataObject data)
SQLクエリを自動的発行し、オートコミットしてデータを保存する。 |
int |
store(EntityType type,
SensorData data,
Entity source)
|
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static java.lang.String driver_name
public static java.lang.String db_location
public static java.lang.String catalog
public static java.lang.String user
public static java.lang.String pass
public static java.lang.String top_table
public static java.lang.String type_table
public static java.lang.String data_table
public static java.lang.String entity_table
public static java.lang.String location_table
public static int MAX_COLUMN_REQUEST
メソッドの詳細 |
---|
public static DatabaseConnector getInstance() throws java.sql.SQLException
java.sql.SQLException
public static void initialize() throws java.lang.ClassNotFoundException, java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
public boolean hasTables() throws java.sql.SQLException
java.sql.SQLException
public boolean createNewTable() throws java.sql.SQLException
java.sql.SQLException
public int store(EntityType type, SensorData data, Entity source) throws java.sql.SQLException
type
- data
- source
-
java.sql.SQLException
public boolean store(DataObject data) throws java.sql.SQLException
data
-
java.sql.SQLException
public jp.ac.naka.ec.db.EventData[] getData(java.lang.String uri, int num) throws java.sql.SQLException
uri
- num
-
java.sql.SQLException
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |