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:
Serializable
Generated model class for type SerialVoucher first defined at extension voucher.
- 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 model type code constant.static final StringGenerated constant - Attribute key ofSerialVoucher.codesattribute defined at extensionvoucher.Fields inherited from class de.hybris.platform.voucher.model.VoucherModel
_ORDERDISCOUNTRELATION, DESCRIPTION, FREESHIPPING, INVALIDATIONS, RESTRICTIONS, VALUESTRINGFields inherited from class de.hybris.platform.core.model.order.price.DiscountModel
ABSOLUTE, CODE, CURRENCY, DISCOUNTSTRING, GLOBAL, NAME, ORDERS, PRIORITY, VALUEFields 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.SerialVoucherModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextSerialVoucherModel(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(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
Modifier and TypeMethodDescriptiongetCodes()Generated method - Getter of theSerialVoucher.codesattribute defined at extensionvoucher.voidsetCodes(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, setRestrictionsMethods 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, setValueMethods 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:
-
CODES
Generated constant - Attribute key ofSerialVoucher.codesattribute defined at extensionvoucher.- See Also:
-
-
Constructor Details
-
SerialVoucherModel
public SerialVoucherModel()Generated constructor - Default constructor for generic creation. -
SerialVoucherModel
public SerialVoucherModel(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
-
SerialVoucherModel
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(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 Details
-
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
Generated method - Setter ofSerialVoucher.codesattribute defined at extensionvoucher.- Parameters:
value- the codes - the generated codes of this voucher.
-