|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.info.LyTag
leon.info.LyInfo
leon.info.LyJoinFilter
public final class LyJoinFilter
The LyJoinFilter class implements the description of a filter used to filter objects with a join
condition.
A join filter is defined by a source class info (i.e the class to make the join), a source field
info, a target field info and by a source filter.
See also tag
LyFilter
,
LyFilterExpression
Nested Class Summary |
---|
Nested classes/interfaces inherited from class leon.info.LyTag |
---|
LyTag.Model |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyJoinFilter(LyClassInfo classInfo,
LyFilter filter,
LyFieldInfo source,
LyFieldInfo target)
Constructor of an identified relation filter. |
|
LyJoinFilter(java.lang.String id,
LyClassInfo classInfo,
LyFilter filter,
LyFieldInfo source,
LyFieldInfo target)
Constructor of an identified join filter. |
Method Summary | |
---|---|
boolean |
contains(LyFieldInfo fieldInfo)
Checks if an expression is found concerning the given field info. |
java.lang.String |
dump()
Dumps current relation filter as a String. |
LyInfoList<LyFieldInfo> |
getFieldInfos()
Gets list of fieldInfos that this filter refers to. |
java.lang.String |
getName()
Returns a displayable string of this element. |
LyClassInfo |
getSourceClassInfo()
Gets the source class info of this join filter. |
LyFieldInfo |
getSourceFieldInfo()
Gets the source fieldInfo on which the join applies. |
LyFilter |
getSourceFilter()
Gets the source filter of this join filter. |
LyFieldInfo |
getTargetFieldInfo()
Gets the target fieldInfo on which the join applies. |
void |
lock()
Lock this relation filter. |
boolean |
match(LyValueSet values)
Check if the specified values matches current relation filter. |
boolean |
match(java.lang.Object object)
Check if the specified object matches current filter. |
void |
setSourceClassInfo(LyClassInfo classInfo)
Sets the source classInfo. |
void |
setSourceFieldInfo(LyFieldInfo fieldInfo)
Sets the source fieldInfo. |
void |
setSourceFilter(LyFilter filter)
Sets the source filter. |
void |
setTargetFieldInfo(LyFieldInfo fieldInfo)
Sets the target fieldInfo. |
void |
writeXml(java.io.PrintWriter pw)
Writes XML corresponding to this relation filter element. |
Methods inherited from class leon.info.LyInfo |
---|
getAlias, getApplication, getFile, getId, getInclude, isIncluded, isInternal, isInternal, isLoaded, isLocked, load, setApplication, setFile, toString |
Methods inherited from class leon.info.LyTag |
---|
clone, getCommentsEnd, getCommentsStart, getEnvironment, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface leon.parser.LyCommentInterface |
---|
getCommentsEnd, getCommentsStart, setCommentsEnd, setCommentsStart |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyJoinFilter(java.lang.String id, LyClassInfo classInfo, LyFilter filter, LyFieldInfo source, LyFieldInfo target)
id
- The identifier of the object.fieldInfo
- Relation FieldInfo on which this filter expression applies.filter
- Filter used for this relation filter.public LyJoinFilter(LyClassInfo classInfo, LyFilter filter, LyFieldInfo source, LyFieldInfo target)
fieldInfo
- Relation FieldInfo on which this filter expression applies.filter
- Filter used for this relation filter.Method Detail |
---|
public boolean match(java.lang.Object object)
match
in interface LyFilterElement
object
- Object to check.
LyFilterElement.match(java.lang.Object)
public boolean match(LyValueSet values)
match
in interface LyFilterElement
values
- Values to check.
LyFilterElement.match(java.lang.Object)
public void lock()
public java.lang.String dump()
public void writeXml(java.io.PrintWriter pw)
writeXml
in interface LyFilterElement
pw
- PrintWriter on which the XML is written.public java.lang.String getName()
getName
in interface LyFilterElement
getName
in class LyInfo
public boolean contains(LyFieldInfo fieldInfo)
fieldInfo
- The fieldInfo.
public LyClassInfo getSourceClassInfo()
public LyFieldInfo getSourceFieldInfo()
public LyFieldInfo getTargetFieldInfo()
public LyFilter getSourceFilter()
public LyInfoList<LyFieldInfo> getFieldInfos()
public void setSourceClassInfo(LyClassInfo classInfo)
classInfo
- source classInfo.public void setSourceFieldInfo(LyFieldInfo fieldInfo)
fieldInfo
- Source fieldInfo.public void setTargetFieldInfo(LyFieldInfo fieldInfo)
fieldInfo
- Target fieldInfo.public void setSourceFilter(LyFilter filter)
filter
- Source filter.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |