public class DateRestrictionModel extends RestrictionModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
ENDDATE
Generated constant - Attribute key of
DateRestriction.endDate attribute defined at extension voucher. |
static String |
STARTDATE
Generated constant - Attribute key of
DateRestriction.startDate attribute defined at extension voucher. |
_VOUCHERRESTRICTIONSRELATION, DESCRIPTION, POSITIVE, RESTRICTIONTYPE, VIOLATIONMESSAGE, VOUCHER, VOUCHERPOS_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
DateRestrictionModel()
Generated constructor - Default constructor for generic creation.
|
DateRestrictionModel(Date _endDate,
Date _startDate,
VoucherModel _voucher)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
DateRestrictionModel(Date _endDate,
ItemModel _owner,
Date _startDate,
VoucherModel _voucher)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
DateRestrictionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getEndDate()
Generated method - Getter of the
DateRestriction.endDate attribute defined at extension voucher. |
Date |
getStartDate()
Generated method - Getter of the
DateRestriction.startDate attribute defined at extension voucher. |
void |
setEndDate(Date value)
Generated method - Setter of
DateRestriction.endDate attribute defined at extension voucher. |
void |
setStartDate(Date value)
Generated method - Setter of
DateRestriction.startDate attribute defined at extension voucher. |
getDescription, getDescription, getPositive, getRestrictionType, getRestrictionType, getViolationMessage, getViolationMessage, getVoucher, setDescription, setDescription, setPositive, setViolationMessage, setViolationMessage, setVouchergetComments, getCreationtime, getModifiedtime, getOwner, setComments, setCreationtime, setModifiedtime, setOwnerequals, 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, writeReplacepublic static final String _TYPECODE
public static final String STARTDATE
DateRestriction.startDate attribute defined at extension voucher.public static final String ENDDATE
DateRestriction.endDate attribute defined at extension voucher.public DateRestrictionModel()
public DateRestrictionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public DateRestrictionModel(Date _endDate, Date _startDate, VoucherModel _voucher)
_endDate - initial attribute declared by type DateRestriction at extension voucher_startDate - initial attribute declared by type DateRestriction at extension voucher_voucher - initial attribute declared by type Restriction at extension voucher@Deprecated public DateRestrictionModel(Date _endDate, ItemModel _owner, Date _startDate, VoucherModel _voucher)
_endDate - initial attribute declared by type DateRestriction at extension voucher_owner - initial attribute declared by type Item at extension core_startDate - initial attribute declared by type DateRestriction at extension voucher_voucher - initial attribute declared by type Restriction at extension voucher@Accessor(qualifier="endDate", type=GETTER) public Date getEndDate()
DateRestriction.endDate attribute defined at extension voucher.@Accessor(qualifier="startDate", type=GETTER) public Date getStartDate()
DateRestriction.startDate attribute defined at extension voucher.@Accessor(qualifier="endDate", type=SETTER) public void setEndDate(Date value)
DateRestriction.endDate attribute defined at extension voucher.value - the endDate - the date until the given voucher is valid.Copyright © 2017 SAP SE. All Rights Reserved.