com.anasoft.os.daofusion.criteria
Class SortCriterion.SortCriterionBuilder

java.lang.Object
  extended by com.anasoft.os.daofusion.criteria.NestedPropertyCriterion.NestedPropertyCriterionBuilder<SortCriterion,NestedPropertyCriterionVisitor>
      extended by com.anasoft.os.daofusion.criteria.SortCriterion.SortCriterionBuilder
Enclosing class:
SortCriterion

public static class SortCriterion.SortCriterionBuilder
extends NestedPropertyCriterion.NestedPropertyCriterionBuilder<SortCriterion,NestedPropertyCriterionVisitor>

Builder for SortCriterion instances.

Author:
vojtech.szocs

Field Summary
 
Fields inherited from class com.anasoft.os.daofusion.criteria.NestedPropertyCriterion.NestedPropertyCriterionBuilder
associationPath, targetPropertyName
 
Constructor Summary
SortCriterion.SortCriterionBuilder(AssociationPath associationPath, java.lang.String targetPropertyName, boolean sortAscending)
          Creates a new criterion builder.
 
Method Summary
 SortCriterion build()
          Builds a NestedPropertyCriterion instance according to the state of this builder.
 SortCriterion.SortCriterionBuilder ignoreCase(boolean value)
          Sets the ignoreCase parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortCriterion.SortCriterionBuilder

public SortCriterion.SortCriterionBuilder(AssociationPath associationPath,
                                          java.lang.String targetPropertyName,
                                          boolean sortAscending)
Creates a new criterion builder.

Parameters:
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

ignoreCase

public SortCriterion.SortCriterionBuilder ignoreCase(boolean value)
Sets the ignoreCase parameter.

Parameters:
value - true for case-insensitive sorting, false for case-sensitive sorting.
Returns:
this for method chaining.

build

public SortCriterion build()
Description copied from class: NestedPropertyCriterion.NestedPropertyCriterionBuilder
Builds a NestedPropertyCriterion instance according to the state of this builder.

Specified by:
build in class NestedPropertyCriterion.NestedPropertyCriterionBuilder<SortCriterion,NestedPropertyCriterionVisitor>
Returns:
Resulting NestedPropertyCriterion instance.
See Also:
NestedPropertyCriterion.NestedPropertyCriterionBuilder.build()


Copyright © 2008-2009 ANASOFT and contributors. All Rights Reserved.