/*
 * Copyright (c) 2009 The Olympos Development Team.
 * 
 * http://sourceforge.net/projects/olympos/
 * 
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html. If redistributing this code, this
 * entire header must remain intact.
 */
Ext.namespace("cwe.transaction");

/**
 * @class Loads the data for a model grid.
 * 
 * @extends Ext.data.Store
 * @constructor
 * @see cwe.transactiongrid.ModelGrid
 * @param {Object}
 *            config The configuration object.
 * @config modelDescription The Model Description to load object of.
 */
cwe.transaction.Store = function(config) {
	this.account = config.account;
	this.modelDescription = chi.model.ModelDescriptionContainer.getInstance().getDescription("Account");

	cwe.transaction.Store.superclass.constructor.call(this, Ext.apply( {
	    proxy : new cwe.transaction.Proxy( {
	        modelDescription : this.modelDescription,
	        account : this.account
	    }),
	    modelDescription : this.modelDescription
	}, config));
};

Ext.extend(cwe.transaction.Store, chi.model.Store);
