|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.anasoft.os.daofusion.criteria.NestedPropertyCriterion<NestedPropertyCriterionVisitor> com.anasoft.os.daofusion.criteria.SortCriterion
public class SortCriterion
Sort criterion for a single property of the target persistent entity.
NestedPropertyCriterion
Nested Class Summary | |
---|---|
static class |
SortCriterion.SortCriterionBuilder
Builder for SortCriterion instances. |
Nested classes/interfaces inherited from class com.anasoft.os.daofusion.criteria.NestedPropertyCriterion |
---|
NestedPropertyCriterion.NestedPropertyCriterionBuilder<T extends NestedPropertyCriterion<V>,V extends NestedPropertyCriterionVisitor> |
Constructor Summary | |
---|---|
SortCriterion(AssociationPath associationPath,
java.lang.String targetPropertyName,
boolean sortAscending)
Creates a new sort criterion with ignoreCase set to false. |
|
SortCriterion(AssociationPath associationPath,
java.lang.String targetPropertyName,
boolean sortAscending,
boolean ignoreCase)
Creates a new sort criterion. |
|
SortCriterion(java.lang.String propertyPath,
boolean sortAscending)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
|
SortCriterion(java.lang.String propertyPath,
boolean sortAscending,
boolean ignoreCase)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
|
SortCriterion(java.lang.String propertyPath,
NestedPropertyJoinType associationJoinType,
boolean sortAscending,
boolean ignoreCase)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
Method Summary | |
---|---|
void |
accept(NestedPropertyCriterionVisitor visitor)
Accepts the given visitor to visit this criterion. |
boolean |
isIgnoreCase()
|
boolean |
isSortAscending()
|
Methods inherited from class com.anasoft.os.daofusion.criteria.NestedPropertyCriterion |
---|
equals, getAssociationPath, getTargetPropertyName, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public SortCriterion(java.lang.String propertyPath, NestedPropertyJoinType associationJoinType, boolean sortAscending, boolean ignoreCase)
propertyPath
- Dot-separated logical path to the target property.associationJoinType
- Type of join to use in case of a nested
(non-direct) persistent entity property (can be null otherwise).sortAscending
- true for ascending, false
for descending sort order.ignoreCase
- true for case-insensitive sorting,
false for case-sensitive sorting.public SortCriterion(AssociationPath associationPath, java.lang.String targetPropertyName, boolean sortAscending, boolean ignoreCase)
associationPath
- AssociationPath
which points
to the given property of the target persistent entity.targetPropertyName
- Name of the target property of
the given persistent entity.sortAscending
- true for ascending, false
for descending sort order.ignoreCase
- true for case-insensitive sorting,
false for case-sensitive sorting.@Deprecated public SortCriterion(java.lang.String propertyPath, boolean sortAscending, boolean ignoreCase)
propertyPath
- Dot-separated logical path to the target property.sortAscending
- true for ascending, false
for descending sort order.ignoreCase
- true for case-insensitive sorting,
false for case-sensitive sorting.@Deprecated public SortCriterion(java.lang.String propertyPath, boolean sortAscending)
This is a convenience constructor for non-string properties where the ignoreCase parameter is not supported.
propertyPath
- Dot-separated logical path to the target property.sortAscending
- true for ascending, false
for descending sort order.public SortCriterion(AssociationPath associationPath, java.lang.String targetPropertyName, boolean sortAscending)
associationPath
- AssociationPath
which points
to the given property of the target persistent entity.targetPropertyName
- Name of the target property of
the given persistent entity.sortAscending
- true for ascending, false
for descending sort order.Method Detail |
---|
public boolean isSortAscending()
public boolean isIgnoreCase()
public void accept(NestedPropertyCriterionVisitor visitor)
PersistentEntityCriterion
visitor
- The visitor to accept.PersistentEntityCriterion.accept(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |