public class RQLPropertyDescriptor extends RepositoryPropertyDescriptor
<property name="someProperty"
property-type="atg.commerce.search.refinement.RQLPropertyDescriptor"
data-type="list" component-item-type="someOtherItemDescriptor"
repository="/path/to/Repository">
<attribute name="repository" value="/path/to/Repository"/>
<attribute name="itemDescrptor" value="someOtherItemDescriptor">
<attribute name="rql" value="(someProp = true) AND (someOtherProp > ?0)"
<attribute name="param0" value="someBooleanProperty"/>
</property>
isIdProperty| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
ITEM_DESCRIPTOR_ATTRIBUTE_NAME |
static java.lang.String |
PARAM_ATTRIBUTE_NAME_PREFIX |
static java.lang.String |
REPOSITORY_ATTRIBUTE_NAME |
static java.lang.String |
RQL_ATTRIBUTE_NAME |
static java.lang.String |
sResources |
EMPTY_LIST, EMPTY_MAP, EMPTY_SET, FOREIGN_REPOSITORY_NAME, FOREIGN_REPOSITORY_PATH, mCollectionOrMapPORTABLE_VALUE_KEYBUNDLE_ATTRIBUTE_NAME, LOCALE_ATTRIBUTE_NAME| Constructor and Description |
|---|
RQLPropertyDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
RepositoryItemDescriptor |
getComponentItemDescriptor()
Gets the item descriptor to run the query against.
|
java.lang.Object[] |
getParams(java.lang.Object pBean)
Get the parameters from the paramX attributes.
|
java.lang.Class |
getPropertyType()
Get the property type (always a List)
|
java.lang.Object |
getPropertyValue(RepositoryItemImpl pItem,
java.lang.Object pValue)
Get the property value by executing the RQL query, returning the resuls as a List.
|
Repository |
getRepository()
Get the repository to run the query against.
|
RepositoryView |
getRepositoryView()
Get the repository view to run the query against.
|
RqlStatement |
getRqlStatement()
Get the RQL statement to run.
|
boolean |
isWritable()
Is the property writable? (always false)
|
void |
logDebug(java.lang.String pMessage) |
void |
setValue(java.lang.String pString,
java.lang.Object pObject)
We override setValue to reset the repository, componentItemDesriptor, and repositoryView
properties.
|
clone, createPropertyDescriptorFromType, getCascadeDelete, getCascadeInsert, getCascadeUpdate, getComponentPropertyBeanInfo, getDefaultValue, getDefaultValueString, getEnumeratedValues, getItemDescriptor, getLocalizedResourceBundle, getPropertyBeanInfo, getPropertyItemDescriptor, getResourceBundle, getResourceBundleName, getSecureLogging, getSecureLoggingFormatter, getSecureLoggingString, getTypeName, getUnmodifiableDefaultValue, isAssignableFrom, isCacheable, isCollectionOrMap, isDerived, isIdProperty, isIgnoreNullValue, isLoggingDebug, isMultiValued, isPersistent, isQueryable, isSecureLogging, isValidValue, isVersionable, isVersionableSet, registerPropertyDescriptorClass, setCacheable, setCascadeDelete, setCascadeInsert, setCascadeUpdate, setComponentItemDescriptor, setDefaultValue, setDefaultValueString, setDerived, setIdProperty, setIgnoreNullValue, setItemDescriptor, setLoggingDebug, setPersistent, setPropertyItemDescriptor, setPropertyType, setPropertyValue, setQueryable, setResourceBundleName, setSecureLogging, setSecureLoggingFormatter, setVersionable, toStringcreateLocalePropertyEditor, createLocalePropertyEditor, createPropertyEditor, getComponentPropertyType, getLocale, getPropertyEditorClass, getUIPropertyEditor, isReadable, isRequired, setComponentPropertyType, setPropertyEditorClass, setReadable, setRequired, setWritablecopyFeatureDescriptor, getDisplayName, getDisplayNameResource, getDisplaySortString, getShortDescription, getShortDescriptionResource, getSortString, setDisplayNameResource, setShortDescriptionResourcepublic static java.lang.String CLASS_VERSION
public static final java.lang.String sResources
public static final java.lang.String REPOSITORY_ATTRIBUTE_NAME
public static final java.lang.String ITEM_DESCRIPTOR_ATTRIBUTE_NAME
public static final java.lang.String RQL_ATTRIBUTE_NAME
public static final java.lang.String PARAM_ATTRIBUTE_NAME_PREFIX
public java.lang.Object[] getParams(java.lang.Object pBean)
throws RepositoryException
RepositoryExceptionpublic Repository getRepository()
public RepositoryItemDescriptor getComponentItemDescriptor()
getComponentItemDescriptor in class RepositoryPropertyDescriptorpublic RepositoryView getRepositoryView() throws RepositoryException
RepositoryExceptionpublic RqlStatement getRqlStatement() throws RepositoryException
RepositoryExceptionpublic java.lang.Class getPropertyType()
getPropertyType in class DynamicPropertyDescriptorpublic boolean isWritable()
isWritable in class DynamicPropertyDescriptorpublic void setValue(java.lang.String pString,
java.lang.Object pObject)
setValue in class RepositoryPropertyDescriptorpublic java.lang.Object getPropertyValue(RepositoryItemImpl pItem, java.lang.Object pValue)
getPropertyValue in class RepositoryPropertyDescriptorpublic void logDebug(java.lang.String pMessage)