/** * Gets the filterComponentDescriptor. * * @return the filterComponentDescriptor. */ @SuppressWarnings("unchecked") public IComponentDescriptor<IComponent> getFilterComponentDescriptor() { if (filterComponentDescriptor == null) { return (IComponentDescriptor<IComponent>) getElementComponentDescriptor(); } return filterComponentDescriptor; }
/** * Gets the filterComponentDescriptor. * * @return the filterComponentDescriptor. */ public IComponentDescriptor<Object> getFilterComponentDescriptor() { if (filterComponentDescriptor == null) { return getElementComponentDescriptor(); } return filterComponentDescriptor; }
/** * Gets the pageSize. * * @return the pageSize. */ @Override public Integer getPageSize() { if (pageSize == null) { return getElementComponentDescriptor().getPageSize(); } return pageSize; }
/** * Gets the orderingProperties. * * @return the orderingProperties. */ public Map<String, ESort> getOrderingProperties() { if (orderingProperties == null) { return getElementComponentDescriptor().getOrderingProperties(); } return orderingProperties; }
/** * Gets find on set. * * @return the find on set */ protected boolean getFindOnSet() { if (findOnSet != null) { return findOnSet; } Boolean autoQueryEnabled = getElementComponentDescriptor().getAutoQueryEnabled(); if (autoQueryEnabled != null) { return autoQueryEnabled; } Integer pageSize = getPageSize(); return pageSize != null && pageSize > 0; }
/** * Gets find on type. * * @return the find on type */ protected boolean getFindOnType() { if (findOnType != null) { return findOnType; } Boolean autoQueryEnabled = getElementComponentDescriptor().getAutoQueryEnabled(); if (autoQueryEnabled != null) { return autoQueryEnabled; } Integer pageSize = getPageSize(); return pageSize != null && pageSize > 0; }
/** * Gets the module descriptor. * * @return the module descriptor. */ @Override protected BeanCollectionModuleDescriptor getDescriptor() { return new FilterableBeanCollectionModuleDescriptor(getElementComponentDescriptor(), getQueryComponentDescriptorFactory().createQueryComponentDescriptor(getFilterComponentDescriptor())); }
} else { queryComponent = getEntityFactory(context).createQueryComponentInstance( (Class<? extends IComponent>) filterableBeanCollectionModule.getElementComponentDescriptor() .getComponentContract());