public class TopiaFilter extends Object implements EntityFilter
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
endIndex |
protected String |
orderBy |
protected String |
referenceId |
protected String |
referenceProperty |
protected Integer |
startIndex |
PROPERTY_END_INDEX, PROPERTY_ORDER_BY, PROPERTY_REFERENCE_ID, PROPERTY_REFERENCE_PROPERTY, PROPERTY_START_INDEX| Constructor and Description |
|---|
TopiaFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add PropertyChangeListener.
|
void |
checkReference(Class<?> reference,
boolean mandatory)
Use to check if
reference class is supported by the current
filter reference. |
Integer |
getEndIndex()
Get the value of endIndex
|
String |
getOrderBy()
Get the value of orderBy
|
String |
getReferenceId()
Get the value of referenceId
|
String |
getReferenceProperty()
Get the value of referenceProperty
|
Integer |
getStartIndex()
Get the value of startIndex
|
boolean |
hasReference()
Used to check if the filter contains a reference.
|
boolean |
isClassReference(Class<?> entityClass)
Test if the
entityClass is corresponding to the current reference
in the filter. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove PropertyChangeListener.
|
void |
setEndIndex(Integer endIndex)
Set the value of endIndex
|
void |
setOrderBy(String orderBy)
Set the value of orderBy
|
void |
setReference(Object entity)
Set the value of referenceId from
entity |
void |
setReferenceId(String referenceId)
Set the value of referenceId
|
void |
setReferenceProperty(String referenceProperty)
Set the value of referenceProperty
|
void |
setStartIndex(Integer startIndex)
Set the value of startIndex
|
String |
toString() |
protected Integer startIndex
protected Integer endIndex
protected String orderBy
protected String referenceId
protected String referenceProperty
public Integer getStartIndex()
EntityFiltergetStartIndex in interface EntityFilterpublic void setStartIndex(Integer startIndex)
EntityFiltersetStartIndex in interface EntityFilterstartIndex - new value of startIndexpublic String getOrderBy()
EntityFiltergetOrderBy in interface EntityFilterpublic void setOrderBy(String orderBy)
EntityFiltersetOrderBy in interface EntityFilterorderBy - new value of orderBypublic Integer getEndIndex()
EntityFiltergetEndIndex in interface EntityFilterpublic void setEndIndex(Integer endIndex)
EntityFiltersetEndIndex in interface EntityFilterendIndex - new value of endIndexpublic String getReferenceId()
EntityFiltergetReferenceId in interface EntityFilterpublic void setReferenceId(String referenceId)
EntityFiltersetReferenceId in interface EntityFilterpublic void setReference(Object entity) throws IllegalArgumentException
EntityFilterentitysetReference in interface EntityFilterIllegalArgumentExceptionpublic boolean hasReference()
EntityFilterhasReference in interface EntityFilterpublic String getReferenceProperty()
EntityFiltergetReferenceProperty in interface EntityFilterpublic void setReferenceProperty(String referenceProperty)
EntityFiltersetReferenceProperty in interface EntityFilterpublic void addPropertyChangeListener(PropertyChangeListener listener)
EntityFilteraddPropertyChangeListener in interface EntityFilterpublic void removePropertyChangeListener(PropertyChangeListener listener)
EntityFilterremovePropertyChangeListener in interface EntityFilterpublic boolean isClassReference(Class<?> entityClass)
entityClass is corresponding to the current reference
in the filter. Will return false if no reference is set in the filter.isClassReference in interface EntityFilterentityClass - Class reference to testcheckReference(Class, boolean)public void checkReference(Class<?> reference, boolean mandatory) throws IllegalArgumentException
reference class is supported by the current
filter reference. The reference can be not mandatory. Exceptions
are thrown if the check failed. If you prefer to have a boolean instead
of exceptions, you can use isClassReference(Class).checkReference in interface EntityFilterreference - Class reference to checkmandatory - If the existence of the reference is mandatoryIllegalArgumentException - for errors on checkhasReference(),
isClassReference(Class)Copyright © 2004–2015 CodeLutin. All rights reserved.