*/
public STelescopeArrayList fetchAll() throws DAOException {
STelescope telescope = null;
STelescopeArrayList telescopeList = new STelescopeArrayList();
PreparedStatement statement = null;
ResultSet result;
Connection connection = DAOHelper.getDBConnection();
try {
try
{
statement = connection.prepareStatement(FETCHALL_QRY);
result = statement.executeQuery();
while(result.next())
{
telescope = new STelescope();
telescope.setObjId(result.getString("id"));
telescope.setObjClass(STelescope.class.getName());
telescope.setName(result.getString("name"));
telescope.setDescr(result.getString("description"));
telescopeList.add(telescope);
}
}
catch(SQLException exc)
{
throw new TelescopeDAOException(exc.getMessage());