jp.terasoluna.fw.web.struts.action
Interface MessageResourcesDAO

All Known Implementing Classes:
MessageResourcesDAOImpl

public interface MessageResourcesDAO

This interface should be implemented by DAO class. This DAO class is used when DBMessageResources access the DB.

See Also:
DBMessageResources, DBMessageResourcesFactory

Method Summary
 java.util.Map<java.lang.String,java.lang.String> queryMessageMap(java.lang.String sql)
          Fetches message resource. Returns the Map in which the first column of SQL is set as a key and second column is set as a value of Map. Behavior cannot be assured when the first column of view returned by SQL is not unique.
 

Method Detail

queryMessageMap

java.util.Map<java.lang.String,java.lang.String> queryMessageMap(java.lang.String sql)
Fetches message resource. Returns the Map in which the first column of SQL is set as a key and second column is set as a value of Map. Behavior cannot be assured when the first column of view returned by SQL is not unique.

Parameters:
sql - SQL that fetches the message resource
Returns:
Map in which the key is the message key and value is the message statement.