Package de.hybris.platform.voucher.model
Class SerialVoucherModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.core.model.order.price.DiscountModel
-
- de.hybris.platform.voucher.model.VoucherModel
-
- de.hybris.platform.voucher.model.SerialVoucherModel
-
- All Implemented Interfaces:
java.io.Serializable
public class SerialVoucherModel extends VoucherModel
Generated model class for type SerialVoucher first defined at extension voucher.- 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.StringCODESGenerated constant - Attribute key ofSerialVoucher.codesattribute defined at extensionvoucher.-
Fields inherited from class de.hybris.platform.voucher.model.VoucherModel
_ORDERDISCOUNTRELATION, DESCRIPTION, FREESHIPPING, INVALIDATIONS, RESTRICTIONS, VALUESTRING
-
Fields inherited from class de.hybris.platform.core.model.order.price.DiscountModel
ABSOLUTE, CODE, CURRENCY, DISCOUNTSTRING, GLOBAL, NAME, ORDERS, PRIORITY, VALUE
-
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 SerialVoucherModel()Generated constructor - Default constructor for generic creation.SerialVoucherModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextSerialVoucherModel(java.lang.String _code)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersSerialVoucherModel(java.lang.String _code, 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.util.Collection<MediaModel>getCodes()Generated method - Getter of theSerialVoucher.codesattribute defined at extensionvoucher.voidsetCodes(java.util.Collection<MediaModel> value)Generated method - Setter ofSerialVoucher.codesattribute defined at extensionvoucher.-
Methods inherited from class de.hybris.platform.voucher.model.VoucherModel
getDescription, getDescription, getFreeShipping, getInvalidations, getRestrictions, getValueString, setDescription, setDescription, setFreeShipping, setInvalidations, setRestrictions
-
Methods inherited from class de.hybris.platform.core.model.order.price.DiscountModel
getAbsolute, getCode, getCurrency, getDiscountstring, getDiscountString, getGlobal, getName, getName, getOrders, getPriority, getValue, setCode, setCurrency, setGlobal, setName, setName, setOrders, setPriority, setValue
-
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
-
CODES
public static final java.lang.String CODES
Generated constant - Attribute key ofSerialVoucher.codesattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SerialVoucherModel
public SerialVoucherModel()
Generated constructor - Default constructor for generic creation.
-
SerialVoucherModel
public SerialVoucherModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
SerialVoucherModel
@Deprecated(since="4.1.1", forRemoval=true) public SerialVoucherModel(java.lang.String _code)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 typeVoucherat extensionvoucher
-
SerialVoucherModel
@Deprecated(since="4.1.1", forRemoval=true) public SerialVoucherModel(java.lang.String _code, 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 typeVoucherat extensionvoucher_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getCodes
@Accessor(qualifier="codes", type=GETTER) public java.util.Collection<MediaModel> getCodes()
Generated method - Getter of theSerialVoucher.codesattribute defined at extensionvoucher. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the codes - the generated codes of this voucher.
-
setCodes
@Accessor(qualifier="codes", type=SETTER) public void setCodes(java.util.Collection<MediaModel> value)
Generated method - Setter ofSerialVoucher.codesattribute defined at extensionvoucher.- Parameters:
value- the codes - the generated codes of this voucher.
-
-