jp.terasoluna.fw.web.struts.action
クラス DBMessageBeanMappingSqlQuery

java.lang.Object
  上位を拡張 org.springframework.jdbc.object.RdbmsOperation
      上位を拡張 org.springframework.jdbc.object.SqlOperation
          上位を拡張 org.springframework.jdbc.object.SqlQuery
              上位を拡張 org.springframework.jdbc.object.MappingSqlQueryWithParameters
                  上位を拡張 org.springframework.jdbc.object.MappingSqlQuery
                      上位を拡張 jp.terasoluna.fw.web.struts.action.DBMessageBeanMappingSqlQuery
すべての実装されたインタフェース:
org.springframework.beans.factory.InitializingBean

public class DBMessageBeanMappingSqlQuery
extends org.springframework.jdbc.object.MappingSqlQuery

DBから取得した行をDBMessageBeanインスタンスに詰め替えて返すメソッドを 実装したMappingSqlQuery実装クラス。

関連項目:
DBMessageBean, MessageResourcesDAOImpl

入れ子のクラスの概要
 
クラス org.springframework.jdbc.object.MappingSqlQueryWithParameters から継承された入れ子のクラス/インタフェース
org.springframework.jdbc.object.MappingSqlQueryWithParameters.RowMapperImpl
 
フィールドの概要
private static java.lang.String DB_MESSAGE_BEAN_MAPPING_SQL_QUERY
          SQLの設定に誤りが見られる場合をあらわすエラーコード
private static org.apache.commons.logging.Log log
          ログクラス。
 
クラス org.springframework.jdbc.object.RdbmsOperation から継承されたフィールド
logger
 
コンストラクタの概要
DBMessageBeanMappingSqlQuery(javax.sql.DataSource dataSource, java.lang.String sql)
          コンストラクタ。
 
メソッドの概要
protected  DBMessageBean createDBMessageBean(java.sql.ResultSet rs)
          行をDBMessageBeanに詰め替えて返す。
protected  DBMessageBean mapRow(java.sql.ResultSet rs, int rowNum)
          行をDBMessageBeanに詰め替えて返す。
 
クラス org.springframework.jdbc.object.MappingSqlQuery から継承されたメソッド
mapRow
 
クラス org.springframework.jdbc.object.MappingSqlQueryWithParameters から継承されたメソッド
newRowMapper
 
クラス org.springframework.jdbc.object.SqlQuery から継承されたメソッド
execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, executeByNamedParam, executeByNamedParam, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObjectByNamedParam, findObjectByNamedParam, getRowsExpected, setRowsExpected
 
クラス org.springframework.jdbc.object.SqlOperation から継承されたメソッド
compileInternal, getParsedSql, newPreparedStatementCreator, newPreparedStatementCreator, newPreparedStatementSetter, onCompileInternal
 
クラス org.springframework.jdbc.object.RdbmsOperation から継承されたメソッド
afterPropertiesSet, allowsUnusedParameters, checkCompiled, compile, declareParameter, getDeclaredParameters, getGeneratedKeysColumnNames, getJdbcTemplate, getResultSetType, getSql, isCompiled, isReturnGeneratedKeys, isUpdatableResults, setDataSource, setFetchSize, setGeneratedKeysColumnNames, setJdbcTemplate, setMaxRows, setQueryTimeout, setResultSetType, setReturnGeneratedKeys, setSql, setTypes, setUpdatableResults, supportsLobParameters, validateNamedParameters, validateParameters
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DB_MESSAGE_BEAN_MAPPING_SQL_QUERY

private static final java.lang.String DB_MESSAGE_BEAN_MAPPING_SQL_QUERY
SQLの設定に誤りが見られる場合をあらわすエラーコード

関連項目:
定数フィールド値

log

private static org.apache.commons.logging.Log log
ログクラス。

コンストラクタの詳細

DBMessageBeanMappingSqlQuery

DBMessageBeanMappingSqlQuery(javax.sql.DataSource dataSource,
                             java.lang.String sql)
コンストラクタ。

パラメータ:
dataSource - データソース
sql - SQL
メソッドの詳細

mapRow

protected DBMessageBean mapRow(java.sql.ResultSet rs,
                               int rowNum)
                        throws java.sql.SQLException
行をDBMessageBeanに詰め替えて返す。

定義:
クラス org.springframework.jdbc.object.MappingSqlQuery 内の mapRow
パラメータ:
rs - 行
rowNum - 処理している行番号
戻り値:
行から詰め替えられたDBMessageBean
例外:
java.sql.SQLException - 設定されたSQLが誤っていた場合

createDBMessageBean

protected DBMessageBean createDBMessageBean(java.sql.ResultSet rs)
                                     throws java.sql.SQLException
行をDBMessageBeanに詰め替えて返す。

パラメータ:
rs - 行
戻り値:
行から詰め替えられたDBMessageBean
例外:
java.sql.SQLException - 設定されたSQLが誤っていた場合