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:
Serializable
Generated model class for type VoucherInvalidation first defined at extension voucher.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated relation code constant for relationVoucherInvalidationsRelationdefining source attributevoucherin extensionvoucher.static final StringGenerated constant - Attribute key ofVoucherInvalidation.codeattribute defined at extensionvoucher.static final StringGenerated constant - Attribute key ofVoucherInvalidation.orderattribute defined at extensionvoucher.static final StringGenerated constant - Attribute key ofVoucherInvalidation.statusattribute defined at extensionvoucher.static final StringGenerated constant - Attribute key ofVoucherInvalidation.userattribute defined at extensionvoucher.static final StringGenerated 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, 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.Generated constructor - Default constructor for creation with existing contextVoucherInvalidationModel(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(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
Modifier and TypeMethodDescriptiongetCode()Generated method - Getter of theVoucherInvalidation.codeattribute defined at extensionvoucher.getOrder()Generated method - Getter of theVoucherInvalidation.orderattribute defined at extensionvoucher.Generated method - Getter of theVoucherInvalidation.statusattribute defined at extensionvoucher.getUser()Generated method - Getter of theVoucherInvalidation.userattribute defined at extensionvoucher.Generated method - Getter of theVoucherInvalidation.voucherattribute defined at extensionvoucher.voidGenerated method - Initial setter ofVoucherInvalidation.codeattribute defined at extensionvoucher.voidsetOrder(OrderModel value) Generated method - Initial setter ofVoucherInvalidation.orderattribute defined at extensionvoucher.voidGenerated method - Setter ofVoucherInvalidation.statusattribute defined at extensionvoucher.voidGenerated 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, 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:
-
_VOUCHERINVALIDATIONSRELATION
Generated relation code constant for relationVoucherInvalidationsRelationdefining source attributevoucherin extensionvoucher.- See Also:
-
CODE
Generated constant - Attribute key ofVoucherInvalidation.codeattribute defined at extensionvoucher.- See Also:
-
USER
Generated constant - Attribute key ofVoucherInvalidation.userattribute defined at extensionvoucher.- See Also:
-
ORDER
Generated constant - Attribute key ofVoucherInvalidation.orderattribute defined at extensionvoucher.- See Also:
-
STATUS
Generated constant - Attribute key ofVoucherInvalidation.statusattribute defined at extensionvoucher.- See Also:
-
VOUCHER
Generated constant - Attribute key ofVoucherInvalidation.voucherattribute defined at extensionvoucher.- See Also:
-
-
Constructor Details
-
VoucherInvalidationModel
public VoucherInvalidationModel()Generated constructor - Default constructor for generic creation. -
VoucherInvalidationModel
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(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(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 Details
-
getCode
Generated method - Getter of theVoucherInvalidation.codeattribute defined at extensionvoucher.- Returns:
- the code - the code used redeeming the voucher.
-
getOrder
Generated method - Getter of theVoucherInvalidation.orderattribute defined at extensionvoucher.- Returns:
- the order - the order for which the voucher code was applied.
-
getStatus
Generated method - Getter of theVoucherInvalidation.statusattribute defined at extensionvoucher.- Returns:
- the status - the status of the invalidation.
-
getUser
Generated method - Getter of theVoucherInvalidation.userattribute defined at extensionvoucher.- Returns:
- the user - the user who redeemed the voucher.
-
getVoucher
Generated method - Getter of theVoucherInvalidation.voucherattribute defined at extensionvoucher.- Returns:
- the voucher
-
setCode
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
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
Generated method - Setter ofVoucherInvalidation.statusattribute defined at extensionvoucher.- Parameters:
value- the status - the status of the invalidation.
-
setUser
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
Generated method - Initial setter ofVoucherInvalidation.voucherattribute defined at extensionvoucher. Can only be used at creation of model - before first save.- Parameters:
value- the voucher
-