Class SubscriptionTermModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.subscriptionservices.model.SubscriptionTermModel
-
- All Implemented Interfaces:
java.io.Serializable
public class SubscriptionTermModel extends ItemModel
Generated model class for type SubscriptionTerm first defined at extension subscriptionservices.- 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_TYPECODEGenerated model type code constant.static java.lang.StringBILLINGPLANGenerated constant - Attribute key ofSubscriptionTerm.billingPlanattribute defined at extensionsubscriptionservices.static java.lang.StringCANCELLABLEGenerated constant - Attribute key ofSubscriptionTerm.cancellableattribute defined at extensionsubscriptionservices.static java.lang.StringIDGenerated constant - Attribute key ofSubscriptionTerm.idattribute defined at extensionsubscriptionservices.static java.lang.StringNAMEGenerated constant - Attribute key ofSubscriptionTerm.nameattribute defined at extensionsubscriptionservices.static java.lang.StringSUBSCRIPTIONPRODUCTSGenerated constant - Attribute key ofSubscriptionTerm.subscriptionProductsattribute defined at extensionsubscriptionservices.static java.lang.StringTERMOFSERVICEFREQUENCYGenerated constant - Attribute key ofSubscriptionTerm.termOfServiceFrequencyattribute defined at extensionsubscriptionservices.static java.lang.StringTERMOFSERVICENUMBERGenerated constant - Attribute key ofSubscriptionTerm.termOfServiceNumberattribute defined at extensionsubscriptionservices.static java.lang.StringTERMOFSERVICERENEWALGenerated constant - Attribute key ofSubscriptionTerm.termOfServiceRenewalattribute defined at extensionsubscriptionservices.-
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 SubscriptionTermModel()Generated constructor - Default constructor for generic creation.SubscriptionTermModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextSubscriptionTermModel(java.lang.String _id)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersSubscriptionTermModel(java.lang.String _id, 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 BillingPlanModelgetBillingPlan()Generated method - Getter of theSubscriptionTerm.billingPlanattribute defined at extensionsubscriptionservices.java.lang.BooleangetCancellable()Generated method - Getter of theSubscriptionTerm.cancellableattribute defined at extensionsubscriptionservices.java.lang.StringgetId()Generated method - Getter of theSubscriptionTerm.idattribute defined at extensionsubscriptionservices.java.lang.StringgetName()Generated method - Getter of theSubscriptionTerm.nameattribute defined at extensionsubscriptionservices.java.lang.StringgetName(java.util.Locale loc)Generated method - Getter of theSubscriptionTerm.nameattribute defined at extensionsubscriptionservices.java.util.Collection<ProductModel>getSubscriptionProducts()Generated method - Getter of theSubscriptionTerm.subscriptionProductsattribute defined at extensionsubscriptionservices.TermOfServiceFrequencygetTermOfServiceFrequency()Generated method - Getter of theSubscriptionTerm.termOfServiceFrequencyattribute defined at extensionsubscriptionservices.java.lang.IntegergetTermOfServiceNumber()Generated method - Getter of theSubscriptionTerm.termOfServiceNumberattribute defined at extensionsubscriptionservices.TermOfServiceRenewalgetTermOfServiceRenewal()Generated method - Getter of theSubscriptionTerm.termOfServiceRenewalattribute defined at extensionsubscriptionservices.voidsetBillingPlan(BillingPlanModel value)Generated method - Setter ofSubscriptionTerm.billingPlanattribute defined at extensionsubscriptionservices.voidsetCancellable(java.lang.Boolean value)Generated method - Setter ofSubscriptionTerm.cancellableattribute defined at extensionsubscriptionservices.voidsetId(java.lang.String value)Generated method - Initial setter ofSubscriptionTerm.idattribute defined at extensionsubscriptionservices.voidsetName(java.lang.String value)Generated method - Setter ofSubscriptionTerm.nameattribute defined at extensionsubscriptionservices.voidsetName(java.lang.String value, java.util.Locale loc)Generated method - Setter ofSubscriptionTerm.nameattribute defined at extensionsubscriptionservices.voidsetSubscriptionProducts(java.util.Collection<ProductModel> value)Generated method - Setter ofSubscriptionTerm.subscriptionProductsattribute defined at extensionsubscriptionservices.voidsetTermOfServiceFrequency(TermOfServiceFrequency value)Generated method - Setter ofSubscriptionTerm.termOfServiceFrequencyattribute defined at extensionsubscriptionservices.voidsetTermOfServiceNumber(java.lang.Integer value)Generated method - Setter ofSubscriptionTerm.termOfServiceNumberattribute defined at extensionsubscriptionservices.voidsetTermOfServiceRenewal(TermOfServiceRenewal value)Generated method - Setter ofSubscriptionTerm.termOfServiceRenewalattribute defined at extensionsubscriptionservices.-
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
-
ID
public static final java.lang.String ID
Generated constant - Attribute key ofSubscriptionTerm.idattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofSubscriptionTerm.nameattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
TERMOFSERVICENUMBER
public static final java.lang.String TERMOFSERVICENUMBER
Generated constant - Attribute key ofSubscriptionTerm.termOfServiceNumberattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
CANCELLABLE
public static final java.lang.String CANCELLABLE
Generated constant - Attribute key ofSubscriptionTerm.cancellableattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
TERMOFSERVICERENEWAL
public static final java.lang.String TERMOFSERVICERENEWAL
Generated constant - Attribute key ofSubscriptionTerm.termOfServiceRenewalattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
TERMOFSERVICEFREQUENCY
public static final java.lang.String TERMOFSERVICEFREQUENCY
Generated constant - Attribute key ofSubscriptionTerm.termOfServiceFrequencyattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
BILLINGPLAN
public static final java.lang.String BILLINGPLAN
Generated constant - Attribute key ofSubscriptionTerm.billingPlanattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
SUBSCRIPTIONPRODUCTS
public static final java.lang.String SUBSCRIPTIONPRODUCTS
Generated constant - Attribute key ofSubscriptionTerm.subscriptionProductsattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SubscriptionTermModel
public SubscriptionTermModel()
Generated constructor - Default constructor for generic creation.
-
SubscriptionTermModel
public SubscriptionTermModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
SubscriptionTermModel
@Deprecated(since="4.1.1", forRemoval=true) public SubscriptionTermModel(java.lang.String _id)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:
_id- initial attribute declared by typeSubscriptionTermat extensionsubscriptionservices
-
SubscriptionTermModel
@Deprecated(since="4.1.1", forRemoval=true) public SubscriptionTermModel(java.lang.String _id, 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:
_id- initial attribute declared by typeSubscriptionTermat extensionsubscriptionservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getBillingPlan
@Accessor(qualifier="billingPlan", type=GETTER) public BillingPlanModel getBillingPlan()
Generated method - Getter of theSubscriptionTerm.billingPlanattribute defined at extensionsubscriptionservices.- Returns:
- the billingPlan - Billing Plan
-
getCancellable
@Accessor(qualifier="cancellable", type=GETTER) public java.lang.Boolean getCancellable()
Generated method - Getter of theSubscriptionTerm.cancellableattribute defined at extensionsubscriptionservices.- Returns:
- the cancellable - Cancellable
-
getId
@Accessor(qualifier="id", type=GETTER) public java.lang.String getId()
Generated method - Getter of theSubscriptionTerm.idattribute defined at extensionsubscriptionservices.- Returns:
- the id - Identifier
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theSubscriptionTerm.nameattribute defined at extensionsubscriptionservices.- Returns:
- the name - Name
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName(java.util.Locale loc)
Generated method - Getter of theSubscriptionTerm.nameattribute defined at extensionsubscriptionservices.- Parameters:
loc- the value localization key- Returns:
- the name - Name
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getSubscriptionProducts
@Accessor(qualifier="subscriptionProducts", type=GETTER) public java.util.Collection<ProductModel> getSubscriptionProducts()
Generated method - Getter of theSubscriptionTerm.subscriptionProductsattribute defined at extensionsubscriptionservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the subscriptionProducts
-
getTermOfServiceFrequency
@Accessor(qualifier="termOfServiceFrequency", type=GETTER) public TermOfServiceFrequency getTermOfServiceFrequency()
Generated method - Getter of theSubscriptionTerm.termOfServiceFrequencyattribute defined at extensionsubscriptionservices.- Returns:
- the termOfServiceFrequency - Term of Service Frequency
-
getTermOfServiceNumber
@Accessor(qualifier="termOfServiceNumber", type=GETTER) public java.lang.Integer getTermOfServiceNumber()
Generated method - Getter of theSubscriptionTerm.termOfServiceNumberattribute defined at extensionsubscriptionservices.- Returns:
- the termOfServiceNumber - Term of Service Number
-
getTermOfServiceRenewal
@Accessor(qualifier="termOfServiceRenewal", type=GETTER) public TermOfServiceRenewal getTermOfServiceRenewal()
Generated method - Getter of theSubscriptionTerm.termOfServiceRenewalattribute defined at extensionsubscriptionservices.- Returns:
- the termOfServiceRenewal - Term of Service Renewal
-
setBillingPlan
@Accessor(qualifier="billingPlan", type=SETTER) public void setBillingPlan(BillingPlanModel value)
Generated method - Setter ofSubscriptionTerm.billingPlanattribute defined at extensionsubscriptionservices.- Parameters:
value- the billingPlan - Billing Plan
-
setCancellable
@Accessor(qualifier="cancellable", type=SETTER) public void setCancellable(java.lang.Boolean value)
Generated method - Setter ofSubscriptionTerm.cancellableattribute defined at extensionsubscriptionservices.- Parameters:
value- the cancellable - Cancellable
-
setId
@Accessor(qualifier="id", type=SETTER) public void setId(java.lang.String value)
Generated method - Initial setter ofSubscriptionTerm.idattribute defined at extensionsubscriptionservices. Can only be used at creation of model - before first save.- Parameters:
value- the id - Identifier
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofSubscriptionTerm.nameattribute defined at extensionsubscriptionservices.- Parameters:
value- the name - Name
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofSubscriptionTerm.nameattribute defined at extensionsubscriptionservices.- Parameters:
value- the name - Nameloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setSubscriptionProducts
@Accessor(qualifier="subscriptionProducts", type=SETTER) public void setSubscriptionProducts(java.util.Collection<ProductModel> value)
Generated method - Setter ofSubscriptionTerm.subscriptionProductsattribute defined at extensionsubscriptionservices.- Parameters:
value- the subscriptionProducts
-
setTermOfServiceFrequency
@Accessor(qualifier="termOfServiceFrequency", type=SETTER) public void setTermOfServiceFrequency(TermOfServiceFrequency value)
Generated method - Setter ofSubscriptionTerm.termOfServiceFrequencyattribute defined at extensionsubscriptionservices.- Parameters:
value- the termOfServiceFrequency - Term of Service Frequency
-
setTermOfServiceNumber
@Accessor(qualifier="termOfServiceNumber", type=SETTER) public void setTermOfServiceNumber(java.lang.Integer value)
Generated method - Setter ofSubscriptionTerm.termOfServiceNumberattribute defined at extensionsubscriptionservices.- Parameters:
value- the termOfServiceNumber - Term of Service Number
-
setTermOfServiceRenewal
@Accessor(qualifier="termOfServiceRenewal", type=SETTER) public void setTermOfServiceRenewal(TermOfServiceRenewal value)
Generated method - Setter ofSubscriptionTerm.termOfServiceRenewalattribute defined at extensionsubscriptionservices.- Parameters:
value- the termOfServiceRenewal - Term of Service Renewal
-
-