Package com.odb.core.dao.dto

Examples of com.odb.core.dao.dto.PublisherInfo


    }
    return null;
  }

  public PublisherInfo getPublisherInfo(String publisherID) throws RemoteException {
    PublisherInfo pInfo = null;
    try {
      pInfo = odbCore.getPublisher(publisherID);
    } catch (SQLException e) {
      log.error("error while getPublisherInfo for publisherID: " + publisherID, e);
    }
View Full Code Here


  /* (non-Javadoc)
   * @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
   */
  public PublisherInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
    PublisherInfo pInfo = new PublisherInfo();
    pInfo.setPublisherID(rs.getString("PUBLISHER_ID"));
    pInfo.setPublisherName(rs.getString("PUBLISHER_NAME"));
    return pInfo;
  }
View Full Code Here


public class PublisherInfoResultSetExtractor implements ResultSetExtractor<PublisherInfo> {

  public PublisherInfo extractData(ResultSet rs) throws SQLException, DataAccessException {
    PublisherInfo pInfo = new PublisherInfo();
    pInfo.setPublisherID(rs.getString("PUBLISHER_ID"));
    pInfo.setPublisherName(rs.getString("PUBLISHER_NAME"));
    return pInfo;
  }
View Full Code Here

   * @return the string publisher Id
   * @throws SQLException
   *             the sQL exception
   */
  public String registerPublisher(String pubName) throws SQLException {
    PublisherInfo pInfo = new PublisherInfo();
    String pubID = pubName + "_" + System.currentTimeMillis();
    pInfo.setPublisherID(pubID);
    pInfo.setPublisherName(pubName);
    odbDAO.addPublisher(pInfo);
    return pubID;
  }
View Full Code Here

TOP

Related Classes of com.odb.core.dao.dto.PublisherInfo

Copyright © 2018 www.massapicom. 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.