*/
public ArrayList getRoleSelectedPrivileges(String dsName, String dbType, String roleId)
throws DAOException, SQLException
{
Connection con = super.createConnection(dsName);
RolePrivilegeVO privilege = null;
ArrayList privilegeList = new ArrayList();
PreparedStatement pstmt = null;
ResultSet rset = null;
try {
String sql = QueryManager.getInstance().getFindRoleSelectedPrivilegeQuery(dbType);
pstmt = con.prepareStatement(sql);
pstmt.setString( 1, roleId );
log.debug(sql);
rset = pstmt.executeQuery();
while(rset.next())
{
privilege = new RolePrivilegeVO();
privilege.setId(rset.getString(1));
privilege.setPrivilegeName(rset.getString(2));
privilegeList.add(privilege);
}
}