Package com.jpoweredcart.common.entity.setting.jdbc

Examples of com.jpoweredcart.common.entity.setting.jdbc.StoreRowMapper


  }

  @Override
  public Store get(Integer storeId) {
    String sql = "SELECT * FROM " +quoteTable("store")+ " WHERE store_id = ?";
    return getJdbcOperations().queryForObject(sql, new Object[]{storeId}, new StoreRowMapper());
  }
View Full Code Here


  }
 
  @Override
  public List<Store> getAll() {
    String sql = "SELECT * FROM " +quoteTable("store")+ " ORDER BY url";
    List<Store> storeList = getJdbcOperations().query(sql, new StoreRowMapper());
    Store defaultStore = new Store();
    defaultStore.setId(0);
    String defaultStoreName = getSettingService()
        .getConfig(DefaultSettings.STORE_ID, SettingKey.CFG_STORE_NAME);
    defaultStore.setName(defaultStoreName);
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.entity.setting.jdbc.StoreRowMapper

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.