Examples of STelescopeArrayList


Examples of org.xooof.xooofoscope.struct.STelescopeArrayList

   */
  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());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.