/*
* Create the store definition
*/
log.debug("Creating store definition for " + fullModelName);
StoreDefinition storeDefinition = this.configComponent.isTouch()
? new TouchStoreDefinition()
: new StoreDefinition();
storeDefinition.setModelName(fullModelName);
storeDefinition.setClearOnPageLoad(this.clearOnPageLoad);
storeDefinition.setClearRemovedOnLoad(this.clearRemovedOnLoad);
storeDefinition.setAutoSync(this.autoSync);
storeDefinition.setAutoLoad(this.autoLoad);
storeDefinition.setRemoteGroup(this.remoteGroup);
storeDefinition.setRemoteSort(this.remoteSort);
storeDefinition.setRemoteFilter(this.remoteFilter);
storeDefinition.setSortOnFilter(this.sortOnFilter);
storeDefinition.setBuffered(this.buffered);
storeDefinition.setTrailingBufferZone(this.trailingBufferZone);
storeDefinition.setLeadingBufferZone(this.leadingBufferZone);
storeDefinition.setPurgePageCount(this.purgePageCount);
storeDefinition.setGroupers(this.groupers);
storeDefinition.setSorters(this.sorters);
storeDefinition.setPageSize(this.pageSize);
storeDefinition.setFilters(this.filters);
if (this.inline != null && this.inline) {
AdaptrexStoreData storeData = config.getORMPersistenceManager().getStoreData(config);
storeData.setFilters(this.filters);
storeData.setGroupers(this.groupers);
storeData.setLimit(this.pageSize);
storeData.setParams(this.params);
storeData.setSorters(this.sorters);
storeData.setStart(this.start);
storeData.setWhere(this.where);
storeDefinition.setData(storeData.getData());
storeDefinition.setTotalCount(storeData.getTotalCount());
}
String storeOutput = "<script type='text/javascript'>\n" +
"Ext.define('" + fullStoreName + "', " +
StringUtilities.json(storeDefinition, this.request.getServletContext()) +