Package org.cyclos.entities.banking
Class VoucherPack
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.banking.VoucherPack
-
- All Implemented Interfaces:
Cloneable,HasCurrency,HasCurrencyAmount,HasNetwork,ProcessableForProxying,EntityWithCustomValues<VoucherCustomField,VoucherCustomFieldPossibleValueCategory,VoucherCustomFieldPossibleValue,VoucherPackCustomFieldValue>,IEntity,HasAmount
@Entity public class VoucherPack extends BaseEntity implements HasCurrencyAmount, EntityWithCustomValues<VoucherCustomField,VoucherCustomFieldPossibleValueCategory,VoucherCustomFieldPossibleValue,VoucherPackCustomFieldValue>
A voucher pack represents a group of vouchers that share the same definitions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description VoucherPack()
-
Method Summary
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
round, withCurrency
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrencyAmount
getCurrencyAmount
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getActivationDeadline
public Date getActivationDeadline()
-
getAmount
public BigDecimal getAmount()
-
getAmountReservation
public VoucherPackAmountReservation getAmountReservation()
-
getBuy
public Payment getBuy()
-
getBuyer
public User getBuyer()
-
getBy
public BasicUser getBy()
-
getConfiguration
public VoucherConfiguration getConfiguration()
-
getCount
public Integer getCount()
-
getCreationDate
public Date getCreationDate()
-
getCreationType
public VoucherCreationType getCreationType()
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getCustomFieldClass
public Class<VoucherCustomField> getCustomFieldClass()
Description copied from interface:EntityWithCustomValuesReturns custom field the class on this entity
-
getCustomFieldValueClass
public Class<VoucherPackCustomFieldValue> getCustomFieldValueClass()
Description copied from interface:EntityWithCustomValuesReturns the class for storing custom field values
-
getCustomValues
public Set<VoucherPackCustomFieldValue> getCustomValues()
Description copied from interface:EntityWithCustomValuesReturns all custom field values
-
getExpirationDate
public Date getExpirationDate()
-
getGift
public Boolean getGift()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getRedeemAfterDate
public Date getRedeemAfterDate()
-
getSendMessage
public String getSendMessage()
-
getSentToEmail
public String getSentToEmail()
-
getTotalAmount
public BigDecimal getTotalAmount()
-
getType
public VoucherType getType()
-
isAboutToExpireNotified
public boolean isAboutToExpireNotified()
-
isBought
public boolean isBought()
-
isExpirationNotified
public boolean isExpirationNotified()
-
isGenerated
public boolean isGenerated()
-
isSent
public boolean isSent()
-
setAboutToExpireNotified
public void setAboutToExpireNotified(boolean aboutToExpireNotified)
-
setActivationDeadline
public void setActivationDeadline(Date activationDeadline)
-
setAmount
public void setAmount(BigDecimal amount)
-
setAmountReservation
public void setAmountReservation(VoucherPackAmountReservation amountReservation)
-
setBuy
public void setBuy(Payment buy)
-
setBuyer
public void setBuyer(User buyer)
-
setBy
public void setBy(BasicUser by)
-
setCount
public void setCount(Integer count)
-
setCreationDate
public void setCreationDate(Date creationDate)
-
setCreationType
public void setCreationType(VoucherCreationType creationType)
-
setCustomValues
public void setCustomValues(Set<VoucherPackCustomFieldValue> customValues)
-
setExpirationDate
public void setExpirationDate(Date expirationDate)
-
setExpirationNotified
public void setExpirationNotified(boolean expirationNotified)
-
setGift
public void setGift(Boolean gift)
-
setRedeemAfterDate
public void setRedeemAfterDate(Date redeemAfterDate)
-
setSendMessage
public void setSendMessage(String sendMessage)
-
setType
public void setType(VoucherType type)
-
-