public class PropertyConditionDescriptor extends AbstractConditionDescriptor
Instance.BeanPropertyPath, Instance.PropertyChangeEvent, Instance.PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
entityParamView |
protected java.lang.String |
entityParamWhere |
protected java.lang.String |
propertiesPath |
caption, datasourceMetaClass, element, entityAlias, filterComponentName, inExpr, locCaption, messagesPack, name, showImmediately
id
__securityState, __state, dynamicAttributes
__propertyChangeListeners, PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY
Constructor and Description |
---|
PropertyConditionDescriptor(org.dom4j.Element element,
java.lang.String messagesPack,
java.lang.String filterComponentName,
MetaClass metaClass,
java.lang.String entityAlias) |
PropertyConditionDescriptor(java.lang.String name,
java.lang.String caption,
java.lang.String messagesPack,
java.lang.String filterComponentName,
MetaClass metaClass,
java.lang.String entityAlias) |
PropertyConditionDescriptor(java.lang.String name,
java.lang.String caption,
java.lang.String messagesPack,
java.lang.String filterComponentName,
MetaClass metaClass,
java.lang.String entityAlias,
java.lang.String propertiesPath)
Usually the
name is used for building JPQL query condition. |
Modifier and Type | Method and Description |
---|---|
AbstractCondition |
createCondition() |
java.lang.String |
getEntityParamView() |
java.lang.String |
getEntityParamWhere() |
java.lang.Class |
getJavaClass() |
MetaProperty |
getMetaProperty() |
java.lang.String |
getPropertiesPath() |
java.lang.String |
getTreeCaption() |
getCaption, getDatasourceMetaClass, getEntityAlias, getFilterComponentName, getLocCaption, getMessagesPack, getName, getOperatorType, isInExpr, isShowImmediately, setInExpr, toString
getId, getUuid, setId, setUuid
copySystemState, equals, getDynamicAttributes, getMetaClass, getValue, hashCode, setDynamicAttributes, setValue
addPropertyChangeListener, getInstanceName, getMethodsCache, getRelatedPropertiesCache, getRelatedReadOnlyProperties, getValueEx, getValueEx, propertyChanged, removeAllListeners, removePropertyChangeListener, setValue, setValueEx, setValueEx
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, getInstanceName, getValueEx, getValueEx, removeAllListeners, removePropertyChangeListener, setValue, setValueEx, setValueEx
protected java.lang.String entityParamWhere
protected java.lang.String entityParamView
protected java.lang.String propertiesPath
public PropertyConditionDescriptor(java.lang.String name, @Nullable java.lang.String caption, java.lang.String messagesPack, java.lang.String filterComponentName, MetaClass metaClass, java.lang.String entityAlias)
public PropertyConditionDescriptor(java.lang.String name, @Nullable java.lang.String caption, java.lang.String messagesPack, java.lang.String filterComponentName, MetaClass metaClass, java.lang.String entityAlias, java.lang.String propertiesPath)
name
is used for building JPQL query condition.
The propertiesPath
parameter is set in case of a filter for KeyValueEntity
.
For example, in the screen we have a following keyValueCollection:
<keyValueCollection id="myKeyValueCollectionDc">
<loader id="myKeyValueCollectionDl">
<query>select u.login, ur.role.name from sec$User u join u.userRoles ur</query>
</loader>
<properties>
<property datatype="string" name="myLogin"/>
<property datatype="string" name="myRoleName"/>
</properties>
</keyValueCollection>
If we add a property condition for myRoleName, then a value "myRoleName" will be used as a PropertyCondition name
, the "ur" will be used as
entityAlias
, and a value "role.name" will be used as propertiesPath
.public PropertyConditionDescriptor(org.dom4j.Element element, java.lang.String messagesPack, java.lang.String filterComponentName, MetaClass metaClass, java.lang.String entityAlias)
public java.lang.Class getJavaClass()
getJavaClass
in class AbstractConditionDescriptor
public java.lang.String getEntityParamWhere()
getEntityParamWhere
in class AbstractConditionDescriptor
public java.lang.String getEntityParamView()
getEntityParamView
in class AbstractConditionDescriptor
public java.lang.String getPropertiesPath()
public AbstractCondition createCondition()
createCondition
in class AbstractConditionDescriptor
public java.lang.String getTreeCaption()
getTreeCaption
in class AbstractConditionDescriptor
@Nullable public MetaProperty getMetaProperty()