FileDocCategorySizeDatePackage
MyUserDao.javaAPI DocExample840Fri Oct 29 16:18:52 BST 2004com.oreilly.strutsckbk.ch10

MyUserDao

public class MyUserDao extends Object

Fields Summary
private static final com.ibatis.sqlmap.client.SqlMapClient
sqlMapClient
Constructors Summary
Methods Summary
public java.util.ListgetAllUsers()

        try {
            Reader reader = Resources.getResourceAsReader("sqlMapConfig.xml");
            sqlMapClient = SqlMapClientBuilder.buildSqlMapClient(reader);
        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException("Unable to create iBATIS sql map client.", e);
        }
    
        return sqlMapClient.queryForList("getAllUsers", null);