this.extConfig.setTouch(true);
}
};
public String toString() {
ExtConfig config = this.extConfig;
/*
* The first thing a store needs is a model
*/
ModelComponent modelComponent = new ModelComponent(request, entityClassName, factoryName);
modelComponent.setNamespace(config.getNamespace());
if (config.getModelName() != null) modelComponent.setModelName(config.getModelName());
if (this.includes != null) modelComponent.setInclude(this.includes);
if (this.excludes != null) modelComponent.setExclude(this.excludes);
if (this.associations != null) modelComponent.setAssociations(this.associations);
if (this.rest != null) modelComponent.setRest(this.rest);
String modelName = config.getModelName();
String fullModelName = config.getNamespace() + ".model." + modelName;
String storeName = StringUtilities.pluralize(modelName);
String fullStoreName = config.getNamespace() + ".store." + storeName;
/*
* Create the store definition
*/
StoreDefinition storeDefinition = 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) {
ORMStoreData 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);