Class VoucherPackVO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityVO
-
- org.cyclos.model.banking.vouchers.VoucherPackVO
-
- All Implemented Interfaces:
Serializable,IEntity
- Direct Known Subclasses:
VoucherPackWithIdsVO
public class VoucherPackVO extends EntityVO
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<BigDecimal,VoucherPackVO>AMOUNTstatic BasicProperty<UserVO,VoucherPackVO>BUYERstatic StringCLASS_NAMEstatic BasicProperty<DateTime,VoucherPackVO>CREATION_DATEstatic BasicProperty<VoucherCreationType,VoucherPackVO>CREATION_TYPEstatic BasicProperty<DateTime,VoucherPackVO>EXPIRATION_DATEstatic BasicProperty<Boolean,VoucherPackVO>GIFTstatic BasicProperty<DateTime,VoucherPackVO>REDEEM_AFTER_DATEstatic ListProperty<WeekDay,VoucherPackVO>REDEEM_ON_WEEK_DAYSstatic BasicProperty<VoucherTypeDetailedVO,VoucherPackVO>TYPE-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description VoucherPackVO()VoucherPackVO(Long id)VoucherPackVO(Property<T,? super VoucherPackVO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()BigDecimalgetAmount()UserVOgetBuyer()DateTimegetCreationDate()VoucherCreationTypegetCreationType()DateTimegetExpirationDate()BooleangetGift()DateTimegetRedeemAfterDate()List<WeekDay>getRedeemOnWeekDays()VoucherTypeDetailedVOgetType()voidsetAmount(BigDecimal amount)voidsetBuyer(UserVO buyer)voidsetCreationDate(DateTime creationDate)voidsetCreationType(VoucherCreationType creationType)voidsetExpirationDate(DateTime expirationDate)voidsetGift(Boolean gift)voidsetRedeemAfterDate(DateTime redeemAfterDate)voidsetRedeemOnWeekDays(List<WeekDay> redeemOnWeekDays)voidsetType(VoucherTypeDetailedVO type)-
Methods inherited from class org.cyclos.model.EntityModel
getId, setId, toString
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId, values
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
AMOUNT
public static final BasicProperty<BigDecimal,VoucherPackVO> AMOUNT
-
BUYER
public static final BasicProperty<UserVO,VoucherPackVO> BUYER
-
CREATION_DATE
public static final BasicProperty<DateTime,VoucherPackVO> CREATION_DATE
-
CREATION_TYPE
public static final BasicProperty<VoucherCreationType,VoucherPackVO> CREATION_TYPE
-
EXPIRATION_DATE
public static final BasicProperty<DateTime,VoucherPackVO> EXPIRATION_DATE
-
GIFT
public static final BasicProperty<Boolean,VoucherPackVO> GIFT
-
REDEEM_AFTER_DATE
public static final BasicProperty<DateTime,VoucherPackVO> REDEEM_AFTER_DATE
-
REDEEM_ON_WEEK_DAYS
public static final ListProperty<WeekDay,VoucherPackVO> REDEEM_ON_WEEK_DAYS
-
TYPE
public static final BasicProperty<VoucherTypeDetailedVO,VoucherPackVO> TYPE
-
-
Constructor Detail
-
VoucherPackVO
public VoucherPackVO()
-
VoucherPackVO
public VoucherPackVO(Long id)
-
VoucherPackVO
public VoucherPackVO(Property<T,? super VoucherPackVO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classEntityModel
-
getAmount
public BigDecimal getAmount()
-
setAmount
public void setAmount(BigDecimal amount)
-
getBuyer
public UserVO getBuyer()
-
setBuyer
public void setBuyer(UserVO buyer)
-
getCreationDate
public DateTime getCreationDate()
-
setCreationDate
public void setCreationDate(DateTime creationDate)
-
getCreationType
public VoucherCreationType getCreationType()
-
setCreationType
public void setCreationType(VoucherCreationType creationType)
-
getExpirationDate
public DateTime getExpirationDate()
-
setExpirationDate
public void setExpirationDate(DateTime expirationDate)
-
getGift
public Boolean getGift()
-
setGift
public void setGift(Boolean gift)
-
getRedeemAfterDate
public DateTime getRedeemAfterDate()
-
setRedeemAfterDate
public void setRedeemAfterDate(DateTime redeemAfterDate)
-
getType
public VoucherTypeDetailedVO getType()
-
setType
public void setType(VoucherTypeDetailedVO type)
-
-