Package de.hybris.platform.voucher.model
Class VoucherInvalidationModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.voucher.model.VoucherInvalidationModel
-
- All Implemented Interfaces:
java.io.Serializable
public class VoucherInvalidationModel extends ItemModel
Generated model class for type VoucherInvalidation 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.String_VOUCHERINVALIDATIONSRELATIONGenerated relation code constant for relationVoucherInvalidationsRelationdefining source attributevoucherin extensionvoucher.static java.lang.StringCODEGenerated constant - Attribute key ofVoucherInvalidation.codeattribute defined at extensionvoucher.static java.lang.StringORDERGenerated constant - Attribute key ofVoucherInvalidation.orderattribute defined at extensionvoucher.static java.lang.StringSTATUSGenerated constant - Attribute key ofVoucherInvalidation.statusattribute defined at extensionvoucher.static java.lang.StringUSERGenerated constant - Attribute key ofVoucherInvalidation.userattribute defined at extensionvoucher.static java.lang.StringVOUCHERGenerated constant - Attribute key ofVoucherInvalidation.voucherattribute defined at extensionvoucher.-
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 VoucherInvalidationModel()Generated constructor - Default constructor for generic creation.VoucherInvalidationModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextVoucherInvalidationModel(java.lang.String _code, OrderModel _order, ItemModel _owner, UserModel _user, VoucherModel _voucher)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersVoucherInvalidationModel(java.lang.String _code, OrderModel _order, UserModel _user, VoucherModel _voucher)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 theVoucherInvalidation.codeattribute defined at extensionvoucher.OrderModelgetOrder()Generated method - Getter of theVoucherInvalidation.orderattribute defined at extensionvoucher.java.lang.StringgetStatus()Generated method - Getter of theVoucherInvalidation.statusattribute defined at extensionvoucher.UserModelgetUser()Generated method - Getter of theVoucherInvalidation.userattribute defined at extensionvoucher.VoucherModelgetVoucher()Generated method - Getter of theVoucherInvalidation.voucherattribute defined at extensionvoucher.voidsetCode(java.lang.String value)Generated method - Initial setter ofVoucherInvalidation.codeattribute defined at extensionvoucher.voidsetOrder(OrderModel value)Generated method - Initial setter ofVoucherInvalidation.orderattribute defined at extensionvoucher.voidsetStatus(java.lang.String value)Generated method - Setter ofVoucherInvalidation.statusattribute defined at extensionvoucher.voidsetUser(UserModel value)Generated method - Initial setter ofVoucherInvalidation.userattribute defined at extensionvoucher.voidsetVoucher(VoucherModel value)Generated method - Initial setter ofVoucherInvalidation.voucherattribute defined at extensionvoucher.-
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
-
_VOUCHERINVALIDATIONSRELATION
public static final java.lang.String _VOUCHERINVALIDATIONSRELATION
Generated relation code constant for relationVoucherInvalidationsRelationdefining source attributevoucherin extensionvoucher.- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofVoucherInvalidation.codeattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
Generated constant - Attribute key ofVoucherInvalidation.userattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
ORDER
public static final java.lang.String ORDER
Generated constant - Attribute key ofVoucherInvalidation.orderattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
STATUS
public static final java.lang.String STATUS
Generated constant - Attribute key ofVoucherInvalidation.statusattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
VOUCHER
public static final java.lang.String VOUCHER
Generated constant - Attribute key ofVoucherInvalidation.voucherattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VoucherInvalidationModel
public VoucherInvalidationModel()
Generated constructor - Default constructor for generic creation.
-
VoucherInvalidationModel
public VoucherInvalidationModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
VoucherInvalidationModel
@Deprecated(since="4.1.1", forRemoval=true) public VoucherInvalidationModel(java.lang.String _code, OrderModel _order, UserModel _user, VoucherModel _voucher)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 typeVoucherInvalidationat extensionvoucher_order- initial attribute declared by typeVoucherInvalidationat extensionvoucher_user- initial attribute declared by typeVoucherInvalidationat extensionvoucher_voucher- initial attribute declared by typeVoucherInvalidationat extensionvoucher
-
VoucherInvalidationModel
@Deprecated(since="4.1.1", forRemoval=true) public VoucherInvalidationModel(java.lang.String _code, OrderModel _order, ItemModel _owner, UserModel _user, VoucherModel _voucher)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 typeVoucherInvalidationat extensionvoucher_order- initial attribute declared by typeVoucherInvalidationat extensionvoucher_owner- initial attribute declared by typeItemat extensioncore_user- initial attribute declared by typeVoucherInvalidationat extensionvoucher_voucher- initial attribute declared by typeVoucherInvalidationat extensionvoucher
-
-
Method Detail
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theVoucherInvalidation.codeattribute defined at extensionvoucher.- Returns:
- the code - the code used redeeming the voucher.
-
getOrder
@Accessor(qualifier="order", type=GETTER) public OrderModel getOrder()
Generated method - Getter of theVoucherInvalidation.orderattribute defined at extensionvoucher.- Returns:
- the order - the order for which the voucher code was applied.
-
getStatus
@Accessor(qualifier="status", type=GETTER) public java.lang.String getStatus()
Generated method - Getter of theVoucherInvalidation.statusattribute defined at extensionvoucher.- Returns:
- the status - the status of the invalidation.
-
getUser
@Accessor(qualifier="user", type=GETTER) public UserModel getUser()
Generated method - Getter of theVoucherInvalidation.userattribute defined at extensionvoucher.- Returns:
- the user - the user who redeemed the voucher.
-
getVoucher
@Accessor(qualifier="voucher", type=GETTER) public VoucherModel getVoucher()
Generated method - Getter of theVoucherInvalidation.voucherattribute defined at extensionvoucher.- Returns:
- the voucher
-
setCode
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Initial setter ofVoucherInvalidation.codeattribute defined at extensionvoucher. Can only be used at creation of model - before first save.- Parameters:
value- the code - the code used redeeming the voucher.
-
setOrder
@Accessor(qualifier="order", type=SETTER) public void setOrder(OrderModel value)
Generated method - Initial setter ofVoucherInvalidation.orderattribute defined at extensionvoucher. Can only be used at creation of model - before first save.- Parameters:
value- the order - the order for which the voucher code was applied.
-
setStatus
@Accessor(qualifier="status", type=SETTER) public void setStatus(java.lang.String value)
Generated method - Setter ofVoucherInvalidation.statusattribute defined at extensionvoucher.- Parameters:
value- the status - the status of the invalidation.
-
setUser
@Accessor(qualifier="user", type=SETTER) public void setUser(UserModel value)
Generated method - Initial setter ofVoucherInvalidation.userattribute defined at extensionvoucher. Can only be used at creation of model - before first save.- Parameters:
value- the user - the user who redeemed the voucher.
-
setVoucher
@Accessor(qualifier="voucher", type=SETTER) public void setVoucher(VoucherModel value)
Generated method - Initial setter ofVoucherInvalidation.voucherattribute defined at extensionvoucher. Can only be used at creation of model - before first save.- Parameters:
value- the voucher
-
-