Class SolrSortModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.solrfacetsearch.model.SolrSortModel
- All Implemented Interfaces:
Serializable
Generated model class for type SolrSort first defined at extension solrfacetsearch.
Extending SolrSort type with additional attributes.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationSolrIndexedType2SolrSortReldefining source attributeindexedTypein extensionsolrfacetsearch.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofSolrSort.codeattribute defined at extensionsolrfacetsearch.static final StringGenerated constant - Attribute key ofSolrSort.fieldsattribute defined at extensionsolrfacetsearch.static final StringGenerated constant - Attribute key ofSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.static final StringGenerated constant - Attribute key ofSolrSort.indexedTypePOSattribute defined at extensionsolrfacetsearch.static final StringGenerated constant - Attribute key ofSolrSort.nameattribute defined at extensionsolrfacetsearch.static final StringGenerated constant - Attribute key ofSolrSort.useBoostattribute defined at extensionsolrfacetsearch.Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.SolrSortModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextSolrSortModel(String _code, SolrIndexedTypeModel _indexedType) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersSolrSortModel(String _code, SolrIndexedTypeModel _indexedType, ItemModel _owner) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Generated method - Getter of theSolrSort.codeattribute defined at extensionsolrfacetsearch.Generated method - Getter of theSolrSort.fieldsattribute defined at extensionsolrfacetsearch.Generated method - Getter of theSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.getName()Generated method - Getter of theSolrSort.nameattribute defined at extensionsolrfacetsearch.Generated method - Getter of theSolrSort.nameattribute defined at extensionsolrfacetsearch.booleanGenerated method - Getter of theSolrSort.useBoostattribute defined at extensionsolrfacetsearch.voidGenerated method - Setter ofSolrSort.codeattribute defined at extensionsolrfacetsearch.voidsetFields(List<SolrSortFieldModel> value) Generated method - Setter ofSolrSort.fieldsattribute defined at extensionsolrfacetsearch.voidGenerated method - Setter ofSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.voidGenerated method - Setter ofSolrSort.nameattribute defined at extensionsolrfacetsearch.voidGenerated method - Setter ofSolrSort.nameattribute defined at extensionsolrfacetsearch.voidsetUseBoost(boolean value) Generated method - Setter ofSolrSort.useBoostattribute defined at extensionsolrfacetsearch.Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
Field Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_SOLRINDEXEDTYPE2SOLRSORTREL
Generated relation code constant for relationSolrIndexedType2SolrSortReldefining source attributeindexedTypein extensionsolrfacetsearch.- See Also:
-
CODE
Generated constant - Attribute key ofSolrSort.codeattribute defined at extensionsolrfacetsearch.- See Also:
-
NAME
Generated constant - Attribute key ofSolrSort.nameattribute defined at extensionsolrfacetsearch.- See Also:
-
USEBOOST
Generated constant - Attribute key ofSolrSort.useBoostattribute defined at extensionsolrfacetsearch.- See Also:
-
INDEXEDTYPEPOS
Generated constant - Attribute key ofSolrSort.indexedTypePOSattribute defined at extensionsolrfacetsearch.- See Also:
-
INDEXEDTYPE
Generated constant - Attribute key ofSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.- See Also:
-
FIELDS
Generated constant - Attribute key ofSolrSort.fieldsattribute defined at extensionsolrfacetsearch.- See Also:
-
-
Constructor Details
-
SolrSortModel
public SolrSortModel()Generated constructor - Default constructor for generic creation. -
SolrSortModel
public SolrSortModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
SolrSortModel
@Deprecated(since="4.1.1", forRemoval=true) public SolrSortModel(String _code, SolrIndexedTypeModel _indexedType) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code- initial attribute declared by typeSolrSortat extensionsolrfacetsearch_indexedType- initial attribute declared by typeSolrSortat extensionsolrfacetsearch
-
SolrSortModel
@Deprecated(since="4.1.1", forRemoval=true) public SolrSortModel(String _code, SolrIndexedTypeModel _indexedType, ItemModel _owner) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code- initial attribute declared by typeSolrSortat extensionsolrfacetsearch_indexedType- initial attribute declared by typeSolrSortat extensionsolrfacetsearch_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getCode
Generated method - Getter of theSolrSort.codeattribute defined at extensionsolrfacetsearch.- Returns:
- the code - The unique code used to identify the solr sort.
-
getFields
Generated method - Getter of theSolrSort.fieldsattribute defined at extensionsolrfacetsearch. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the fields
-
getIndexedType
Generated method - Getter of theSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.- Returns:
- the indexedType
-
getName
Generated method - Getter of theSolrSort.nameattribute defined at extensionsolrfacetsearch.- Returns:
- the name - The display name for this sort.
-
getName
Generated method - Getter of theSolrSort.nameattribute defined at extensionsolrfacetsearch.- Parameters:
loc- the value localization key- Returns:
- the name - The display name for this sort.
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
isUseBoost
@Accessor(qualifier="useBoost", type=GETTER) public boolean isUseBoost()Generated method - Getter of theSolrSort.useBoostattribute defined at extensionsolrfacetsearch.- Returns:
- the useBoost - The property specifies whether a sort should apply SOLR boost rules.
-
setCode
Generated method - Setter ofSolrSort.codeattribute defined at extensionsolrfacetsearch.- Parameters:
value- the code - The unique code used to identify the solr sort.
-
setFields
Generated method - Setter ofSolrSort.fieldsattribute defined at extensionsolrfacetsearch.- Parameters:
value- the fields
-
setIndexedType
@Accessor(qualifier="indexedType", type=SETTER) public void setIndexedType(SolrIndexedTypeModel value) Generated method - Setter ofSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.- Parameters:
value- the indexedType
-
setName
Generated method - Setter ofSolrSort.nameattribute defined at extensionsolrfacetsearch.- Parameters:
value- the name - The display name for this sort.
-
setName
Generated method - Setter ofSolrSort.nameattribute defined at extensionsolrfacetsearch.- Parameters:
value- the name - The display name for this sort.loc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setUseBoost
@Accessor(qualifier="useBoost", type=SETTER) public void setUseBoost(boolean value) Generated method - Setter ofSolrSort.useBoostattribute defined at extensionsolrfacetsearch.- Parameters:
value- the useBoost - The property specifies whether a sort should apply SOLR boost rules.
-