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, IS_BACKING_MAP_PROPERTY, mCollectionOrMap, NULL_VALUE
PORTABLE_VALUE_KEY
BUNDLE_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, getAttributesAsMap, getCascadeDelete, getCascadeInsert, getCascadeUpdate, getComponentPropertyBeanInfo, getDefaultValue, getDefaultValueString, getEnumeratedValues, getItemDescriptor, getLocalizedResourceBundle, getPropertyBeanInfo, getPropertyItemDescriptor, getResourceBundle, getResourceBundleName, getSecureLogging, getSecureLoggingFormatter, getSecureLoggingString, getTypeName, getUnmodifiableDefaultValue, getValue, isAssignableFrom, isCacheable, isCollectionOrMap, isDerived, isDynamicallyCreated, isIdProperty, isIgnoreNullValue, isLoggingDebug, isMultiValued, isPersistent, isQueryable, isSecureLogging, isValidValue, isVersionable, isVersionableSet, registerPropertyDescriptorClass, setCacheable, setCascadeDelete, setCascadeInsert, setCascadeUpdate, setComponentItemDescriptor, setDefaultValue, setDefaultValueString, setDerived, setDynamicallyCreated, setIdProperty, setIgnoreNullValue, setItemDescriptor, setLoggingDebug, setPersistent, setPropertyItemDescriptor, setPropertyType, setPropertyValue, setQueryable, setResourceBundleName, setSecureLogging, setSecureLoggingFormatter, setVersionable, toString
createLocalePropertyEditor, createLocalePropertyEditor, createPropertyEditor, getComponentPropertyType, getLocale, getPropertyEditorClass, getUIPropertyEditor, isReadable, isRequired, setComponentPropertyType, setPropertyEditorClass, setReadable, setRequired, setWritable
copyFeatureDescriptor, getDisplayName, getDisplayName, getDisplayNameResource, getDisplaySortString, getLocalizedResourceBundle, getShortDescription, getShortDescriptionResource, getSortString, setDisplayNameResource, setShortDescriptionResource
public 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
RepositoryException
public Repository getRepository()
public RepositoryItemDescriptor getComponentItemDescriptor()
getComponentItemDescriptor
in class RepositoryPropertyDescriptor
public RepositoryView getRepositoryView() throws RepositoryException
RepositoryException
public RqlStatement getRqlStatement() throws RepositoryException
RepositoryException
public java.lang.Class getPropertyType()
getPropertyType
in class DynamicPropertyDescriptor
public boolean isWritable()
isWritable
in class DynamicPropertyDescriptor
public void setValue(java.lang.String pString, java.lang.Object pObject)
setValue
in class RepositoryPropertyDescriptor
public java.lang.Object getPropertyValue(RepositoryItemImpl pItem, java.lang.Object pValue)
getPropertyValue
in class RepositoryPropertyDescriptor
public void logDebug(java.lang.String pMessage)