jp.co.fujitsu.reffi.client.swing.model
クラス DatabaseCore

java.lang.Object
  上位を拡張 jp.co.fujitsu.reffi.client.swing.model.BaseModel
      上位を拡張 jp.co.fujitsu.reffi.client.swing.model.DatabaseCore
すべての実装されたインタフェース:
Callable<Object>, Model

public class DatabaseCore
extends BaseModel

[概 要]

[詳 細]

[備 考]

[環 境] JDK 6.0 Update 11

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

作成者:
Project Reffi

フィールドの概要
static String DB_AUTO_COMMIT
           
static String DB_DATASOURCE
           
static String DB_DRIVER_FQCN
           
static String DB_PASSWORD
           
static String DB_URL
           
static String DB_USER
           
 
コンストラクタの概要
DatabaseCore()
          [概 要] [詳 細] [備 考]
 
メソッドの概要
 void addSqlParameter(Object parameter)
          [概 要] [詳 細] [備 考]
protected  boolean execsql()
          [概 要] [詳 細] [備 考]
protected  void finalproc()
          [概 要] [詳 細] [備 考]
 Connector getConnector()
          [概 要] [詳 細] [備 考]
 String getDatasource()
          [概 要] [詳 細] [備 考]
 String getDriverFqcn()
          [概 要] [詳 細] [備 考]
 String getPassword()
          [概 要] [詳 細] [備 考]
protected  Map<String,Object> getRow(ResultSet rs)
          [概 要] [詳 細] [備 考]
protected  List<Map<String,Object>> getRows(ResultSet rs)
          [概 要] [詳 細] [備 考]
 String getSql()
          [概 要] [詳 細] [備 考]
 List<Object> getSqlParameters()
          [概 要] [詳 細] [備 考]
 PreparedStatement getStatement()
          [概 要] [詳 細] [備 考]
 String getUrl()
          [概 要] [詳 細] [備 考]
 String getUser()
          [概 要] [詳 細] [備 考]
 boolean isAsList()
          [概 要] [詳 細] [備 考]
 boolean isAutoCommit()
          [概 要] [詳 細] [備 考]
protected  void mainproc()
          [概 要] [詳 細] [備 考]
protected  void postproc()
          [概 要] [詳 細] [備 考]
protected  boolean preproc()
          [概 要] [詳 細] [備 考]
protected  String presql()
          [概 要] [詳 細] [備 考]
 void setAsList(boolean asList)
          [概 要] [詳 細] [備 考]
 void setAutoCommit(boolean autoCommit)
          [概 要] [詳 細] [備 考]
 void setConnector(Connector connector)
          [概 要] [詳 細] [備 考]
 void setDatasource(String datasource)
          [概 要] [詳 細] [備 考]
 void setDriverFqcn(String driverFqcn)
          [概 要] [詳 細] [備 考]
 void setPassword(String password)
           
 void setSql(String sql)
          [概 要] [詳 細] [備 考]
 void setSqlParameters(List<Object> sqlParameters)
          [概 要] [詳 細] [備 考]
 void setStatement(PreparedStatement statement)
          [概 要] [詳 細] [備 考]
 void setUrl(String url)
          [概 要] [詳 細] [備 考]
 void setUser(String user)
          [概 要] [詳 細] [備 考]
protected  void sqlparam(Statement stmt)
          [概 要] [詳 細] [備 考]
protected  void sqlresult()
          [概 要] [詳 細] [備 考]
protected  void sqlupdate()
          [概 要] [詳 細] [備 考]
 
クラス jp.co.fujitsu.reffi.client.swing.model.BaseModel から継承されたメソッド
addModelProcessListener, call, done, fireModelFailure, fireModelFinished, fireModelSuccess, getController, getExecuteIndex, getListenerList, getParameterMapping, getResult, getSuccessCount, incrementSuccessCount, init, isAsync, isSkip, removeModelProcessListener, run, setAsync, setController, setExecuteIndex, setListenerList, setParameterMapping, setResult, setSkip, trap
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DB_DATASOURCE

public static final String DB_DATASOURCE
関連項目:
定数フィールド値

DB_DRIVER_FQCN

public static final String DB_DRIVER_FQCN
関連項目:
定数フィールド値

DB_URL

public static final String DB_URL
関連項目:
定数フィールド値

DB_USER

public static final String DB_USER
関連項目:
定数フィールド値

DB_PASSWORD

public static final String DB_PASSWORD
関連項目:
定数フィールド値

DB_AUTO_COMMIT

public static final String DB_AUTO_COMMIT
関連項目:
定数フィールド値
コンストラクタの詳細

DatabaseCore

public DatabaseCore()
             throws Exception

[概 要]

[詳 細]

[備 考]

例外:
Exception
メソッドの詳細

getDatasource

public String getDatasource()

[概 要]

[詳 細]

[備 考]

戻り値:

setDatasource

public void setDatasource(String datasource)

[概 要]

[詳 細]

[備 考]

パラメータ:
datasource -

getDriverFqcn

public String getDriverFqcn()

[概 要]

[詳 細]

[備 考]

戻り値:

setDriverFqcn

public void setDriverFqcn(String driverFqcn)

[概 要]

[詳 細]

[備 考]

パラメータ:
driverFqcn -

getUrl

public String getUrl()

[概 要]

[詳 細]

[備 考]

戻り値:

setUrl

public void setUrl(String url)

[概 要]

[詳 細]

[備 考]

パラメータ:
url -

getUser

public String getUser()

[概 要]

[詳 細]

[備 考]

戻り値:

setUser

public void setUser(String user)

[概 要]

[詳 細]

[備 考]

パラメータ:
user -

getPassword

public String getPassword()

[概 要]

[詳 細]

[備 考]

戻り値:

setPassword

public void setPassword(String password)
パラメータ:
password -

isAutoCommit

public boolean isAutoCommit()

[概 要]

[詳 細]

[備 考]

戻り値:

setAutoCommit

public void setAutoCommit(boolean autoCommit)

[概 要]

[詳 細]

[備 考]

パラメータ:
autoCommit -

getSql

public String getSql()

[概 要]

[詳 細]

[備 考]

戻り値:

setSql

public void setSql(String sql)

[概 要]

[詳 細]

[備 考]

パラメータ:
sql -

getSqlParameters

public List<Object> getSqlParameters()

[概 要]

[詳 細]

[備 考]

戻り値:

setSqlParameters

public void setSqlParameters(List<Object> sqlParameters)

[概 要]

[詳 細]

[備 考]

パラメータ:
sqlParameters -

addSqlParameter

public void addSqlParameter(Object parameter)

[概 要]

[詳 細]

[備 考]

パラメータ:
parameter -

getStatement

public PreparedStatement getStatement()

[概 要]

[詳 細]

[備 考]

戻り値:

setStatement

public void setStatement(PreparedStatement statement)

[概 要]

[詳 細]

[備 考]

パラメータ:
statement -

isAsList

public boolean isAsList()

[概 要]

[詳 細]

[備 考]

戻り値:

setAsList

public void setAsList(boolean asList)

[概 要]

[詳 細]

[備 考]

パラメータ:
asList -

getConnector

public Connector getConnector()

[概 要]

[詳 細]

[備 考]


setConnector

public void setConnector(Connector connector)

[概 要]

[詳 細]

[備 考]

パラメータ:
jdbcconnector -

preproc

protected boolean preproc()
                   throws InstantiationException,
                          IllegalAccessException,
                          ClassNotFoundException,
                          Exception

[概 要]

[詳 細]

[備 考]

オーバーライド:
クラス BaseModel 内の preproc
戻り値:
以降の処理を継続するかどうかのフラグ(デフォルト:true)
例外:
ClassNotFoundException
IllegalAccessException
InstantiationException
Exception
Exception

mainproc

protected void mainproc()
                 throws SQLException,
                        Exception

[概 要]

[詳 細]

[備 考]

オーバーライド:
クラス BaseModel 内の mainproc
例外:
SQLException
Exception

postproc

protected void postproc()
                 throws Exception

[概 要]

[詳 細]

[備 考]

オーバーライド:
クラス BaseModel 内の postproc
例外:
Exception

finalproc

protected void finalproc()

[概 要]

[詳 細]

[備 考]

オーバーライド:
クラス BaseModel 内の finalproc
例外:
Exception

presql

protected String presql()

[概 要]

[詳 細]

[備 考]

戻り値:

sqlparam

protected void sqlparam(Statement stmt)
                 throws SQLException

[概 要]

[詳 細]

[備 考]

パラメータ:
stmt -
例外:
SQLException
Exception

execsql

protected boolean execsql()
                   throws SQLException

[概 要]

[詳 細]

[備 考]

戻り値:
例外:
SQLException
Exception

sqlresult

protected void sqlresult()
                  throws Exception

[概 要]

[詳 細]

[備 考]

例外:
Exception

sqlupdate

protected void sqlupdate()

[概 要]

[詳 細]

[備 考]


getRows

protected List<Map<String,Object>> getRows(ResultSet rs)
                                    throws Exception

[概 要]

[詳 細]

[備 考]

パラメータ:
rs -
戻り値:
例外:
Exception

getRow

protected Map<String,Object> getRow(ResultSet rs)
                             throws Exception

[概 要]

[詳 細]

[備 考]

パラメータ:
rs -
戻り値:
例外:
Exception


Copyright(C) Fujitsu All Rights Reserved.