Package com.odb.core.dao.rowmappers

Examples of com.odb.core.dao.rowmappers.SubscriberDataSourceoResultSetExtractor


  public SubscriberDataSource getSubscriberDataSourceBy(String subscriberId, String viewLocationID) throws SQLException {
    String sql = "SELECT SDS.* , SVC.VIEW_LOCATION_ID, GC.GRAPH_NAME, GC.GRAPH_TYPE FROM ODB_SUB_DATASOURCES SDS, ODB_SUB_VIEW_CONFIG SVC, ODB_GRAPH_CONFIG GC WHERE SDS.SUBSCRIBER_DATASOURCE_ID=SVC.SUBSCRIBER_DATASOURCE_ID AND SDS.GRAPH_ID=GC.GRAPH_ID AND SDS.SUBSCRIBER_ID=:subscriberID AND SVC.VIEW_LOCATION_ID=:viewLocationID";
    Map<String, String> paramMap = new HashMap<String, String>();
    paramMap.put("subscriberID", subscriberId);
    paramMap.put("viewLocationID", viewLocationID);
    SubscriberDataSource sds = jdbcTemp.query(sql, paramMap, new SubscriberDataSourceoResultSetExtractor());
    log.debug("SubscriberDataSource" + sds);
    return sds;
  }
View Full Code Here

TOP

Related Classes of com.odb.core.dao.rowmappers.SubscriberDataSourceoResultSetExtractor

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.