Class MutableSortDefinition
java.lang.Object
org.springframework.beans.support.MutableSortDefinition
- All Implemented Interfaces:
Serializable, SortDefinition
@Deprecated(since="7.0.3",
forRemoval=true)
public class MutableSortDefinition
extends Object
implements SortDefinition, Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
as severely outdated and superseded by more modern solutions,
for example in Spring Data Commons
Mutable implementation of the
SortDefinition interface.
Supports toggling the ascending value on setting the same property again.- Since:
- 26.05.2003
- Author:
- Juergen Hoeller, Jean-Pierre Pawlak
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Create an empty MutableSortDefinition, to be populated via its bean properties.MutableSortDefinition(boolean toggleAscendingOnSameProperty) Deprecated, for removal: This API element is subject to removal in a future version.Create a new MutableSortDefinition.MutableSortDefinition(String property, boolean ignoreCase, boolean ascending) Deprecated, for removal: This API element is subject to removal in a future version.Create a MutableSortDefinition for the given settings.MutableSortDefinition(SortDefinition source) Deprecated, for removal: This API element is subject to removal in a future version.Copy constructor: create a new MutableSortDefinition that mirrors the given sort definition. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Return the name of the bean property to compare.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Return whether to sort ascending (true) or descending (false).booleanDeprecated, for removal: This API element is subject to removal in a future version.Return whether upper and lower case in String values should be ignored.booleanDeprecated, for removal: This API element is subject to removal in a future version.Return whether to toggle the ascending flag if the same property gets set again (that is,setPropertygets called with already set property name again).voidsetAscending(boolean ascending) Deprecated, for removal: This API element is subject to removal in a future version.Set whether to sort ascending (true) or descending (false).voidsetIgnoreCase(boolean ignoreCase) Deprecated, for removal: This API element is subject to removal in a future version.Set whether upper and lower case in String values should be ignored.voidsetProperty(String property) Deprecated, for removal: This API element is subject to removal in a future version.Set the property to compare.voidsetToggleAscendingOnProperty(boolean toggleAscendingOnProperty) Deprecated, for removal: This API element is subject to removal in a future version.Set whether to toggle the ascending flag if the same property gets set again (that is,setProperty(String)gets called with already set property name again).
-
Constructor Details
-
MutableSortDefinition
public MutableSortDefinition()Deprecated, for removal: This API element is subject to removal in a future version.Create an empty MutableSortDefinition, to be populated via its bean properties.- See Also:
-
MutableSortDefinition
Deprecated, for removal: This API element is subject to removal in a future version.Copy constructor: create a new MutableSortDefinition that mirrors the given sort definition.- Parameters:
source- the original sort definition
-
MutableSortDefinition
Deprecated, for removal: This API element is subject to removal in a future version.Create a MutableSortDefinition for the given settings.- Parameters:
property- the property to compareignoreCase- whether upper and lower case in String values should be ignoredascending- whether to sort ascending (true) or descending (false)
-
MutableSortDefinition
public MutableSortDefinition(boolean toggleAscendingOnSameProperty) Deprecated, for removal: This API element is subject to removal in a future version.Create a new MutableSortDefinition.- Parameters:
toggleAscendingOnSameProperty- whether to toggle the ascending flag if the same property gets set again (that is,setPropertygets called with already set property name again).
-
-
Method Details
-
setProperty
Deprecated, for removal: This API element is subject to removal in a future version.Set the property to compare.If the property was the same as the current, the sort is reversed if "toggleAscendingOnProperty" is activated, else simply ignored.
- See Also:
-
getProperty
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SortDefinitionReturn the name of the bean property to compare. Can also be a nested bean property path.- Specified by:
getPropertyin interfaceSortDefinition
-
setIgnoreCase
public void setIgnoreCase(boolean ignoreCase) Deprecated, for removal: This API element is subject to removal in a future version.Set whether upper and lower case in String values should be ignored. -
isIgnoreCase
public boolean isIgnoreCase()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SortDefinitionReturn whether upper and lower case in String values should be ignored.- Specified by:
isIgnoreCasein interfaceSortDefinition
-
setAscending
public void setAscending(boolean ascending) Deprecated, for removal: This API element is subject to removal in a future version.Set whether to sort ascending (true) or descending (false). -
isAscending
public boolean isAscending()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SortDefinitionReturn whether to sort ascending (true) or descending (false).- Specified by:
isAscendingin interfaceSortDefinition
-
setToggleAscendingOnProperty
public void setToggleAscendingOnProperty(boolean toggleAscendingOnProperty) Deprecated, for removal: This API element is subject to removal in a future version.Set whether to toggle the ascending flag if the same property gets set again (that is,setProperty(String)gets called with already set property name again).This is particularly useful for parameter binding through a web request, where clicking on the field header again might be supposed to trigger a resort for the same field but opposite order.
-
isToggleAscendingOnProperty
public boolean isToggleAscendingOnProperty()Deprecated, for removal: This API element is subject to removal in a future version.Return whether to toggle the ascending flag if the same property gets set again (that is,setPropertygets called with already set property name again). -
equals
-
hashCode
-