Package com.skava.oms.entity.criteria
Class AbstractSpecificationBuilder
java.lang.Object
com.skava.oms.entity.criteria.AbstractSpecificationBuilder
- Direct Known Subclasses:
CollectionSpecificationBuilderImpl
,OrderSpecificationBuilderImpl
This class contains the specification for the filter through params and sort
- Since:
- Jun 29, 2018
- Author:
- Infosys Equinox
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionequalsOperation
(SearchCriteria criteria) This method checks for the equals operation for the given criteriagetSearchSpecification
(String searchString) Gets the specifications.getSortSpecification
(String sortString) Gets the specifications.searchWith
(String key, String operation, Object value) This method defines calls the SearchCriteria class with params key, operation and valueThis method defines calls the SortCriteria class with key and operationlong
stringToLong
(String val) Convert required field value to longprotected abstract SearchCriteria
toUpdateOperation
(SearchCriteria criteria)
-
Field Details
-
searchParams
-
sortParams
-
reqired
-
-
Constructor Details
-
AbstractSpecificationBuilder
public AbstractSpecificationBuilder()
-
-
Method Details
-
searchWith
This method defines calls the SearchCriteria class with params key, operation and value- Parameters:
key
- key of String typeoperation
- operation to be done, this is of String typevalue
- value of String type- Returns:
- initializes SpecificationsBuilder class Debug logger has been added to this method.
-
sortWith
This method defines calls the SortCriteria class with key and operation- Parameters:
key
- key of String typeoperation
- operation to be done, this is of String type- Returns:
- initializes SpecificationsBuilder class Debug logger has been added to this method.
-
searchBuild
- Returns:
- null on empty SearchCriteria params, on SearchCriteria params returns Specification Debug logger has been added to this method.
- See Also:
-
Specification
-
sortBuild
- Returns:
- null on empty SsortCriteria params, on SearchCriteria params returns Specification Debug logger has been added to this method.
- See Also:
-
Specification
-
toUpdateOperation
-
getSearchSpecification
Gets the specifications.- Parameters:
searchString
- the string going to be convert as specification- Returns:
- the search specifications Debug logger has been added to this method.
-
getSortSpecification
Gets the specifications.- Parameters:
sortString
- the string going to be convert as specification- Returns:
- the sort specifications Debug logger has been added to this method.
-
stringToLong
Convert required field value to long- Parameters:
val
- value to be converted to long- Returns:
- the long variable Debug logger has been added to this method.
-
equalsOperation
This method checks for the equals operation for the given criteria- Parameters:
criteria
- - contains the criteria to be performed- Returns:
- the search criteria Debug logger has been added to this method.
-