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:
java.io.Serializable
public class SolrSortModel extends ItemModel
Generated model class for type SolrSort first defined at extension solrfacetsearch.Extending SolrSort type with additional attributes.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_SOLRINDEXEDTYPE2SOLRSORTRELGenerated relation code constant for relationSolrIndexedType2SolrSortReldefining source attributeindexedTypein extensionsolrfacetsearch.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCODEGenerated constant - Attribute key ofSolrSort.codeattribute defined at extensionsolrfacetsearch.static java.lang.StringFIELDSGenerated constant - Attribute key ofSolrSort.fieldsattribute defined at extensionsolrfacetsearch.static java.lang.StringINDEXEDTYPEGenerated constant - Attribute key ofSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.static java.lang.StringINDEXEDTYPEPOSGenerated constant - Attribute key ofSolrSort.indexedTypePOSattribute defined at extensionsolrfacetsearch.static java.lang.StringNAMEGenerated constant - Attribute key ofSolrSort.nameattribute defined at extensionsolrfacetsearch.static java.lang.StringUSEBOOSTGenerated 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, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description SolrSortModel()Generated constructor - Default constructor for generic creation.SolrSortModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextSolrSortModel(java.lang.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(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()Generated method - Getter of theSolrSort.codeattribute defined at extensionsolrfacetsearch.java.util.List<SolrSortFieldModel>getFields()Generated method - Getter of theSolrSort.fieldsattribute defined at extensionsolrfacetsearch.SolrIndexedTypeModelgetIndexedType()Generated method - Getter of theSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.java.lang.StringgetName()Generated method - Getter of theSolrSort.nameattribute defined at extensionsolrfacetsearch.java.lang.StringgetName(java.util.Locale loc)Generated method - Getter of theSolrSort.nameattribute defined at extensionsolrfacetsearch.booleanisUseBoost()Generated method - Getter of theSolrSort.useBoostattribute defined at extensionsolrfacetsearch.voidsetCode(java.lang.String value)Generated method - Setter ofSolrSort.codeattribute defined at extensionsolrfacetsearch.voidsetFields(java.util.List<SolrSortFieldModel> value)Generated method - Setter ofSolrSort.fieldsattribute defined at extensionsolrfacetsearch.voidsetIndexedType(SolrIndexedTypeModel value)Generated method - Setter ofSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.voidsetName(java.lang.String value)Generated method - Setter ofSolrSort.nameattribute defined at extensionsolrfacetsearch.voidsetName(java.lang.String value, java.util.Locale loc)Generated 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, setOwner
-
Methods 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 Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_SOLRINDEXEDTYPE2SOLRSORTREL
public static final java.lang.String _SOLRINDEXEDTYPE2SOLRSORTREL
Generated relation code constant for relationSolrIndexedType2SolrSortReldefining source attributeindexedTypein extensionsolrfacetsearch.- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofSolrSort.codeattribute defined at extensionsolrfacetsearch.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofSolrSort.nameattribute defined at extensionsolrfacetsearch.- See Also:
- Constant Field Values
-
USEBOOST
public static final java.lang.String USEBOOST
Generated constant - Attribute key ofSolrSort.useBoostattribute defined at extensionsolrfacetsearch.- See Also:
- Constant Field Values
-
INDEXEDTYPEPOS
public static final java.lang.String INDEXEDTYPEPOS
Generated constant - Attribute key ofSolrSort.indexedTypePOSattribute defined at extensionsolrfacetsearch.- See Also:
- Constant Field Values
-
INDEXEDTYPE
public static final java.lang.String INDEXEDTYPE
Generated constant - Attribute key ofSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.- See Also:
- Constant Field Values
-
FIELDS
public static final java.lang.String FIELDS
Generated constant - Attribute key ofSolrSort.fieldsattribute defined at extensionsolrfacetsearch.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SolrSortModel
public SolrSortModel()
Generated constructor - Default constructor for generic creation.
-
SolrSortModel
public SolrSortModel(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(java.lang.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(java.lang.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 Detail
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theSolrSort.codeattribute defined at extensionsolrfacetsearch.- Returns:
- the code - The unique code used to identify the solr sort.
-
getFields
@Accessor(qualifier="fields", type=GETTER) public java.util.List<SolrSortFieldModel> 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
@Accessor(qualifier="indexedType", type=GETTER) public SolrIndexedTypeModel getIndexedType()
Generated method - Getter of theSolrSort.indexedTypeattribute defined at extensionsolrfacetsearch.- Returns:
- the indexedType
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theSolrSort.nameattribute defined at extensionsolrfacetsearch.- Returns:
- the name - The display name for this sort.
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName(java.util.Locale loc)
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:
java.lang.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
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Setter ofSolrSort.codeattribute defined at extensionsolrfacetsearch.- Parameters:
value- the code - The unique code used to identify the solr sort.
-
setFields
@Accessor(qualifier="fields", type=SETTER) public void setFields(java.util.List<SolrSortFieldModel> value)
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
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofSolrSort.nameattribute defined at extensionsolrfacetsearch.- Parameters:
value- the name - The display name for this sort.
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofSolrSort.nameattribute defined at extensionsolrfacetsearch.- Parameters:
value- the name - The display name for this sort.loc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
-