@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface FilterGenerator
Examples:
@FilterGenerator(attributeName = "accountTypeCode",attributeResolverClass =
"org.kuali.rice.krad.data.bo.TestQueryCustomizerValue")
private TestRelatedExtension accountExtension;
Currently, in order for this annotation to work properly, the
KradEclipseLinkCustomizer must be configured for the EclipseLink
persistence unit. This can be done manually using
PersistenceUnitProperties.SESSION_CUSTOMIZER, or it will be done automatically
when using KradEclipseLinkEntityManagerFactoryBean.
| Modifier and Type | Required Element and Description |
|---|---|
String |
attributeName
(Required) The attribute name to have the customization applied in the query.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Class<?> |
attributeResolverClass
(Optional) The class that resolves the value that the attribute named will be used to build expression fragment.
|
String |
attributeValue
(Optional) The value that the attribute named will be used to build expression fragment.
|
FilterOperators |
operator
(Optional) The operator that will be used for this fragment expression.
|
public abstract String attributeName
public abstract FilterOperators operator
Defaults to EQUAL.
public abstract String attributeValue
Defaults to an empty string.
public abstract Class<?> attributeResolverClass
Defaults to the Void class.
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.